1*2e2212a7SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*2e2212a7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2e2212a7SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2e2212a7SAndrew Rist * distributed with this work for additional information 6*2e2212a7SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2e2212a7SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2e2212a7SAndrew Rist * "License"); you may not use this file except in compliance 9*2e2212a7SAndrew Rist * with the License. You may obtain a copy of the License at 10*2e2212a7SAndrew Rist * 11*2e2212a7SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*2e2212a7SAndrew Rist * 13*2e2212a7SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2e2212a7SAndrew Rist * software distributed under the License is distributed on an 15*2e2212a7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2e2212a7SAndrew Rist * KIND, either express or implied. See the License for the 17*2e2212a7SAndrew Rist * specific language governing permissions and limitations 18*2e2212a7SAndrew Rist * under the License. 19*2e2212a7SAndrew Rist * 20*2e2212a7SAndrew Rist *************************************************************/ 21*2e2212a7SAndrew Rist 22*2e2212a7SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef DBACCESS_CORE_API_KEYSET_HXX 25cdf0e10cSrcweir #define DBACCESS_CORE_API_KEYSET_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #ifndef DBACCESS_CORE_API_CACHESET_HXX 28cdf0e10cSrcweir #include "CacheSet.hxx" 29cdf0e10cSrcweir #endif 30cdf0e10cSrcweir 31cdf0e10cSrcweir #ifndef _CPPUHELPER_IMPLBASE1_HXX_ 32cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx> 33cdf0e10cSrcweir #endif 34cdf0e10cSrcweir #include <memory> 35cdf0e10cSrcweir #include <map> 36cdf0e10cSrcweir 37cdf0e10cSrcweir #ifndef _COM_SUN_STAR_LANG_XUNOTUNNEL_HPP_ 38cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp> 39cdf0e10cSrcweir #endif 40cdf0e10cSrcweir #include <com/sun/star/sdb/XSingleSelectQueryAnalyzer.hpp> 41cdf0e10cSrcweir #include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp> 42cdf0e10cSrcweir #ifndef _COMPHELPER_STLTYPES_HXX_ 43cdf0e10cSrcweir #include <comphelper/stl_types.hxx> 44cdf0e10cSrcweir #endif 45cdf0e10cSrcweir 46cdf0e10cSrcweir namespace dbaccess 47cdf0e10cSrcweir { 48cdf0e10cSrcweir struct SelectColumnDescription 49cdf0e10cSrcweir { 50cdf0e10cSrcweir ::rtl::OUString sRealName; // may be empty 51cdf0e10cSrcweir ::rtl::OUString sTableName; // may be empty 52cdf0e10cSrcweir ::rtl::OUString sDefaultValue; 53cdf0e10cSrcweir sal_Int32 nPosition; 54cdf0e10cSrcweir sal_Int32 nType; 55cdf0e10cSrcweir sal_Int32 nScale; 56cdf0e10cSrcweir sal_Bool bNullable; 57cdf0e10cSrcweir 58cdf0e10cSrcweir 59cdf0e10cSrcweir SelectColumnDescriptiondbaccess::SelectColumnDescription60cdf0e10cSrcweir SelectColumnDescription() 61cdf0e10cSrcweir :nPosition( 0 ) 62cdf0e10cSrcweir ,nType( 0 ) 63cdf0e10cSrcweir ,nScale( 0 ) 64cdf0e10cSrcweir ,bNullable(sal_False) 65cdf0e10cSrcweir { 66cdf0e10cSrcweir } 67cdf0e10cSrcweir SelectColumnDescriptiondbaccess::SelectColumnDescription68cdf0e10cSrcweir SelectColumnDescription( sal_Int32 _nPosition, sal_Int32 _nType, sal_Int32 _nScale,sal_Bool _bNullable, const ::rtl::OUString& _rDefaultValue ) 69cdf0e10cSrcweir :sDefaultValue( _rDefaultValue ) 70cdf0e10cSrcweir ,nPosition( _nPosition ) 71cdf0e10cSrcweir ,nType( _nType ) 72cdf0e10cSrcweir ,nScale( _nScale ) 73cdf0e10cSrcweir ,bNullable(_bNullable) 74cdf0e10cSrcweir { 75cdf0e10cSrcweir } 76cdf0e10cSrcweir }; 77cdf0e10cSrcweir typedef ::std::map< ::rtl::OUString, SelectColumnDescription, ::comphelper::UStringMixLess > SelectColumnsMetaData; 78cdf0e10cSrcweir 79cdf0e10cSrcweir // the elements of _rxQueryColumns must have the properties PROPERTY_REALNAME and PROPERTY_TABLENAME 80cdf0e10cSrcweir void getColumnPositions(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxQueryColumns, 81cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rColumnNames, 82cdf0e10cSrcweir const ::rtl::OUString& _rsUpdateTableName, 83cdf0e10cSrcweir SelectColumnsMetaData& o_rColumnNames /* out */, 84cdf0e10cSrcweir bool i_bAppendTableName = false); 85cdf0e10cSrcweir 86cdf0e10cSrcweir typedef ::std::pair<ORowSetRow,::std::pair<sal_Int32,::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow> > > OKeySetValue; 87cdf0e10cSrcweir typedef ::std::map<sal_Int32,OKeySetValue > OKeySetMatrix; 88cdf0e10cSrcweir typedef ::std::map<sal_Int32,ORowSetValueVector > OUpdatedParameter; 89cdf0e10cSrcweir // is used when the source supports keys 90cdf0e10cSrcweir class OKeySet : public OCacheSet 91cdf0e10cSrcweir { 92cdf0e10cSrcweir protected: 93cdf0e10cSrcweir OKeySetMatrix m_aKeyMap; 94cdf0e10cSrcweir OKeySetMatrix::iterator m_aKeyIter; 95cdf0e10cSrcweir 96cdf0e10cSrcweir ::std::vector< ::rtl::OUString > m_aAutoColumns; // contains all columns which are autoincrement ones 97cdf0e10cSrcweir 98cdf0e10cSrcweir OUpdatedParameter m_aUpdatedParameter; // contains all parameter which have been updated and are needed for refetching 99cdf0e10cSrcweir ORowSetValueVector m_aParameterValueForCache; 100cdf0e10cSrcweir ::std::auto_ptr<SelectColumnsMetaData> m_pKeyColumnNames; // contains all key column names 101cdf0e10cSrcweir ::std::auto_ptr<SelectColumnsMetaData> m_pColumnNames; // contains all column names 102cdf0e10cSrcweir ::std::auto_ptr<SelectColumnsMetaData> m_pParameterNames; // contains all parameter names 103cdf0e10cSrcweir ::std::auto_ptr<SelectColumnsMetaData> m_pForeignColumnNames; // contains all column names of the rest 104cdf0e10cSrcweir connectivity::OSQLTable m_xTable; // reference to our table 105cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess> m_xTableKeys; 106cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XPreparedStatement> m_xStatement; 107cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> m_xSet; 108cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow> m_xRow; 109cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryAnalyzer > m_xComposer; 110cdf0e10cSrcweir ::rtl::OUString m_sUpdateTableName; 111cdf0e10cSrcweir ::std::vector< ::rtl::OUString > m_aFilterColumns; 112cdf0e10cSrcweir sal_Int32& m_rRowCount; 113cdf0e10cSrcweir 114cdf0e10cSrcweir sal_Bool m_bRowCountFinal; 115cdf0e10cSrcweir 116cdf0e10cSrcweir /** 117cdf0e10cSrcweir getComposedTableName return the composed table name for the query 118cdf0e10cSrcweir @param _sCatalog the catalogname may be empty 119cdf0e10cSrcweir @param _sSchema the schemaname may be empty 120cdf0e10cSrcweir @param _sTable the tablename 121cdf0e10cSrcweir 122cdf0e10cSrcweir @return the composed name 123cdf0e10cSrcweir */ 124cdf0e10cSrcweir ::rtl::OUString getComposedTableName( const ::rtl::OUString& _sCatalog, 125cdf0e10cSrcweir const ::rtl::OUString& _sSchema, 126cdf0e10cSrcweir const ::rtl::OUString& _sTable); 127cdf0e10cSrcweir 128cdf0e10cSrcweir /** copies the values from the insert row into the key row 129cdf0e10cSrcweir * 130cdf0e10cSrcweir * \param _rInsertRow the row which was inserted 131cdf0e10cSrcweir * \param _rKeyRow The current key row of the row set. 132cdf0e10cSrcweir + \param i_nBookmark The bookmark is used to update the parameter 133cdf0e10cSrcweir */ 134cdf0e10cSrcweir void copyRowValue(const ORowSetRow& _rInsertRow,ORowSetRow& _rKeyRow,sal_Int32 i_nBookmark); 135cdf0e10cSrcweir 136cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > getKeyColumns() const; 137cdf0e10cSrcweir void fillAllRows(); 138cdf0e10cSrcweir sal_Bool fetchRow(); 139cdf0e10cSrcweir 140cdf0e10cSrcweir void impl_convertValue_throw(const ORowSetRow& _rInsertRow,const SelectColumnDescription& i_aMetaData); 141cdf0e10cSrcweir void initColumns(); 142cdf0e10cSrcweir void findTableColumnsMatching_throw( const ::com::sun::star::uno::Any& i_aTable, 143cdf0e10cSrcweir const ::rtl::OUString& i_rUpdateTableName, 144cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData>& i_xMeta, 145cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>& i_xQueryColumns, 146cdf0e10cSrcweir ::std::auto_ptr<SelectColumnsMetaData>& o_pKeyColumnNames); 147cdf0e10cSrcweir ::rtl::OUStringBuffer createKeyFilter(); 148cdf0e10cSrcweir void tryRefetch(const ORowSetRow& _rInsertRow,bool bRefetch); 149cdf0e10cSrcweir void executeUpdate(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rOrginalRow,const ::rtl::OUString& i_sSQL,const ::rtl::OUString& i_sTableName,const ::std::vector<sal_Int32>& _aIndexColumnPositions = ::std::vector<sal_Int32>()); 150cdf0e10cSrcweir void executeInsert( const ORowSetRow& _rInsertRow,const ::rtl::OUString& i_sSQL,const ::rtl::OUString& i_sTableName = ::rtl::OUString(),bool bRefetch = false); 151cdf0e10cSrcweir void executeStatement(::rtl::OUStringBuffer& io_aFilter,const ::rtl::OUString& i_sRowSetFilter,::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer>& io_xAnalyzer); 152cdf0e10cSrcweir 153cdf0e10cSrcweir virtual ~OKeySet(); 154cdf0e10cSrcweir public: 155cdf0e10cSrcweir OKeySet(const connectivity::OSQLTable& _xTable, 156cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& _xTableKeys, 157cdf0e10cSrcweir const ::rtl::OUString& _rUpdateTableName, 158cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryAnalyzer >& _xComposer, 159cdf0e10cSrcweir const ORowSetValueVector& _aParameterValueForCache, 160cdf0e10cSrcweir sal_Int32 i_nMaxRows, 161cdf0e10cSrcweir sal_Int32& o_nRowCount); 162cdf0e10cSrcweir 163cdf0e10cSrcweir // late ctor which can throw exceptions 164cdf0e10cSrcweir virtual void construct(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet>& _xDriverSet,const ::rtl::OUString& i_sRowSetFilter); 165cdf0e10cSrcweir 166cdf0e10cSrcweir // ::com::sun::star::sdbc::XRow 167cdf0e10cSrcweir virtual sal_Bool SAL_CALL wasNull( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 168cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getString( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 169cdf0e10cSrcweir virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 170cdf0e10cSrcweir virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 171cdf0e10cSrcweir virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 172cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 173cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 174cdf0e10cSrcweir virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 175cdf0e10cSrcweir virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 176cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 177cdf0e10cSrcweir virtual ::com::sun::star::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 178cdf0e10cSrcweir virtual ::com::sun::star::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 179cdf0e10cSrcweir virtual ::com::sun::star::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 180cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 181cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 182cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& typeMap ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 183cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 184cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 185cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 186cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 187cdf0e10cSrcweir 188cdf0e10cSrcweir 189cdf0e10cSrcweir virtual sal_Bool SAL_CALL rowUpdated( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 190cdf0e10cSrcweir virtual sal_Bool SAL_CALL rowInserted( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 191cdf0e10cSrcweir virtual sal_Bool SAL_CALL rowDeleted( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 192cdf0e10cSrcweir // ::com::sun::star::sdbc::XResultSet 193cdf0e10cSrcweir virtual sal_Bool SAL_CALL next( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 194cdf0e10cSrcweir virtual sal_Bool SAL_CALL isBeforeFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 195cdf0e10cSrcweir virtual sal_Bool SAL_CALL isAfterLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 196cdf0e10cSrcweir virtual sal_Bool SAL_CALL isFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 197cdf0e10cSrcweir virtual sal_Bool SAL_CALL isLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 198cdf0e10cSrcweir virtual void SAL_CALL beforeFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 199cdf0e10cSrcweir virtual void SAL_CALL afterLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 200cdf0e10cSrcweir virtual sal_Bool SAL_CALL first( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 201cdf0e10cSrcweir virtual sal_Bool SAL_CALL last( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 202cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 203cdf0e10cSrcweir virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 204cdf0e10cSrcweir virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 205cdf0e10cSrcweir virtual sal_Bool SAL_CALL previous( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 206cdf0e10cSrcweir virtual void SAL_CALL refreshRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 207cdf0e10cSrcweir // ::com::sun::star::sdbcx::XRowLocate 208cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getBookmark() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 209cdf0e10cSrcweir // ------------------------------------------------------------------------- 210cdf0e10cSrcweir virtual sal_Bool SAL_CALL moveToBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 211cdf0e10cSrcweir // ------------------------------------------------------------------------- 212cdf0e10cSrcweir virtual sal_Bool SAL_CALL moveRelativeToBookmark( const ::com::sun::star::uno::Any& bookmark, sal_Int32 rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 213cdf0e10cSrcweir // ------------------------------------------------------------------------- 214cdf0e10cSrcweir virtual sal_Int32 SAL_CALL compareBookmarks( const ::com::sun::star::uno::Any& first, const ::com::sun::star::uno::Any& second ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 215cdf0e10cSrcweir // ------------------------------------------------------------------------- 216cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasOrderedBookmarks( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 217cdf0e10cSrcweir // ------------------------------------------------------------------------- 218cdf0e10cSrcweir virtual sal_Int32 SAL_CALL hashBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 219cdf0e10cSrcweir // ------------------------------------------------------------------------- 220cdf0e10cSrcweir // ::com::sun::star::sdbcx::XDeleteRows 221cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL deleteRows( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rows ,const connectivity::OSQLTable& _xTable) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 222cdf0e10cSrcweir // ::com::sun::star::sdbc::XResultSetUpdate 223cdf0e10cSrcweir virtual void SAL_CALL updateRow(const ORowSetRow& _rInsertRow,const ORowSetRow& _rOrginalRow,const connectivity::OSQLTable& _xTable ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 224cdf0e10cSrcweir virtual void SAL_CALL deleteRow(const ORowSetRow& _rInsertRow,const connectivity::OSQLTable& _xTable ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 225cdf0e10cSrcweir virtual void SAL_CALL insertRow( const ORowSetRow& _rInsertRow,const connectivity::OSQLTable& _xTable ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 226cdf0e10cSrcweir virtual void SAL_CALL cancelRowUpdates( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 227cdf0e10cSrcweir virtual void SAL_CALL moveToInsertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 228cdf0e10cSrcweir virtual void SAL_CALL moveToCurrentRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); 229cdf0e10cSrcweir 230cdf0e10cSrcweir 231cdf0e10cSrcweir virtual sal_Bool previous_checked( sal_Bool i_bFetchRow ); 232cdf0e10cSrcweir virtual sal_Bool absolute_checked( sal_Int32 row,sal_Bool i_bFetchRow ); 233cdf0e10cSrcweir virtual sal_Bool last_checked( sal_Bool i_bFetchRow); 234cdf0e10cSrcweir }; 235cdf0e10cSrcweir } 236cdf0e10cSrcweir #endif // DBACCESS_CORE_API_KEYSET_HXX 237cdf0e10cSrcweir 238