Bump for 3.6-28
[LibreOffice.git] / connectivity / source / inc / odbc / OResultSet.hxx
blobc74407aae9a5ea60c676bde8661e90bbbff45664
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _CONNECTIVITY_ODBC_ORESULTSET_HXX_
30 #define _CONNECTIVITY_ODBC_ORESULTSET_HXX_
32 #include <com/sun/star/sdbc/XResultSet.hpp>
33 #include <com/sun/star/sdbc/XRow.hpp>
34 #include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
35 #include <com/sun/star/sdbc/XCloseable.hpp>
36 #include <com/sun/star/sdbc/XColumnLocate.hpp>
37 #include <com/sun/star/util/XCancellable.hpp>
38 #include <com/sun/star/sdbc/XWarningsSupplier.hpp>
39 #include <com/sun/star/sdbc/XResultSetUpdate.hpp>
40 #include <com/sun/star/sdbc/XRowUpdate.hpp>
41 #include <com/sun/star/sdbcx/XRowLocate.hpp>
42 #include <com/sun/star/sdbcx/XDeleteRows.hpp>
43 #include <cppuhelper/compbase12.hxx>
44 #include <comphelper/proparrhlp.hxx>
45 #include "odbc/OFunctions.hxx"
46 #include "odbc/OStatement.hxx"
47 #include "odbc/odbcbasedllapi.hxx"
48 #include "connectivity/CommonTools.hxx"
49 #include "connectivity/FValue.hxx"
50 #include "TSkipDeletedSet.hxx"
52 namespace connectivity
54 namespace odbc
58 ** java_sql_ResultSet
60 typedef ::cppu::WeakComponentImplHelper12< ::com::sun::star::sdbc::XResultSet,
61 ::com::sun::star::sdbc::XRow,
62 ::com::sun::star::sdbc::XResultSetMetaDataSupplier,
63 ::com::sun::star::util::XCancellable,
64 ::com::sun::star::sdbc::XWarningsSupplier,
65 ::com::sun::star::sdbc::XResultSetUpdate,
66 ::com::sun::star::sdbc::XRowUpdate,
67 ::com::sun::star::sdbcx::XRowLocate,
68 ::com::sun::star::sdbcx::XDeleteRows,
69 ::com::sun::star::sdbc::XCloseable,
70 ::com::sun::star::sdbc::XColumnLocate,
71 ::com::sun::star::lang::XServiceInfo> OResultSet_BASE;
74 typedef ::std::pair<sal_Int64,sal_Int32> TVoidPtr;
75 typedef ::std::allocator< TVoidPtr > TVoidAlloc;
76 typedef ::std::vector<TVoidPtr> TVoidVector;
77 // typedef ::com::sun::star::uno::Sequence<TVoidPtr> TVoidVector;
78 /// unary_function Functor object for class ZZ returntype is void
79 struct OOO_DLLPUBLIC_ODBCBASE TBookmarkPosMapCompare : ::std::binary_function< ::com::sun::star::uno::Sequence<sal_Int8>, ::com::sun::star::uno::Sequence<sal_Int8>, bool >
81 inline bool operator()( const ::com::sun::star::uno::Sequence<sal_Int8>& _rLH,
82 const ::com::sun::star::uno::Sequence<sal_Int8>& _rRH) const
84 if(_rLH.getLength() == _rRH.getLength())
86 sal_Int32 nCount = _rLH.getLength();
87 if(nCount != 4)
89 const sal_Int8* pLHBack = _rLH.getConstArray() + nCount - 1;
90 const sal_Int8* pRHBack = _rRH.getConstArray() + nCount - 1;
92 sal_Int32 i;
93 for(i=0;i < nCount;++i,--pLHBack,--pRHBack)
95 if(!(*pLHBack) && *pRHBack)
96 return sal_True;
97 else if(*pLHBack && !(*pRHBack))
98 return sal_False;
100 for(i=0,++pLHBack,++pRHBack;i < nCount;++pLHBack,++pRHBack,++i)
101 if(*pLHBack < *pRHBack)
102 return sal_True;
103 return sal_False;
105 else
106 return *reinterpret_cast<const sal_Int32*>(_rLH.getConstArray()) < *reinterpret_cast<const sal_Int32*>(_rRH.getConstArray());
109 else
110 return _rLH.getLength() < _rRH.getLength();
114 typedef ::std::map< ::com::sun::star::uno::Sequence<sal_Int8>, sal_Int32,TBookmarkPosMapCompare > TBookmarkPosMap;
116 class OOO_DLLPUBLIC_ODBCBASE OResultSet :
117 public comphelper::OBaseMutex,
118 public ::connectivity::IResultSetHelper,
119 public OResultSet_BASE,
120 public ::cppu::OPropertySetHelper,
121 public ::comphelper::OPropertyArrayUsageHelper<OResultSet>
123 protected:
124 TBookmarkPosMap m_aPosToBookmarks;
125 // used top hold the information about the value and the datatype to save calls to metadata
126 typedef ::std::vector<ORowSetValue> TDataRow;
128 TVoidVector m_aBindVector;
129 ::std::vector<SQLLEN> m_aLengthVector;
130 ::std::map<sal_Int32,SWORD> m_aODBCColumnTypes;
131 ::com::sun::star::uno::Sequence<sal_Int8> m_aBookmark;
133 TDataRow m_aRow; // only used when SQLGetData can't be called in any order
134 ORowSetValue m_aEmptyValue; // needed for the getValue method when no prefetch is used
135 SQLHANDLE m_aStatementHandle;
136 SQLHANDLE m_aConnectionHandle;
137 OStatement_Base* m_pStatement;
138 OSkipDeletedSet* m_pSkipDeletedSet;
139 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> m_xStatement;
140 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData> m_xMetaData;
141 SQLUSMALLINT* m_pRowStatusArray;
142 rtl_TextEncoding m_nTextEncoding;
143 sal_Int32 m_nRowPos;
144 sal_Int32 m_nLastColumnPos; // used for m_aRow just to know where we are
145 mutable sal_uInt32 m_nUseBookmarks;
146 SQLRETURN m_nCurrentFetchState;
147 sal_Bool m_bWasNull;
148 sal_Bool m_bEOF; // after last record
149 sal_Bool m_bLastRecord;
150 sal_Bool m_bFreeHandle;
151 sal_Bool m_bInserting;
152 sal_Bool m_bFetchData; // true when SQLGetaData can be called in any order or when fetching data for m_aRow
153 sal_Bool m_bRowInserted;
154 sal_Bool m_bRowDeleted;
155 sal_Bool m_bUseFetchScroll;
157 sal_Bool isBookmarkable() const;
158 sal_Int32 getResultSetConcurrency() const;
159 sal_Int32 getResultSetType() const;
160 sal_Int32 getFetchDirection() const;
161 sal_Int32 getFetchSize() const;
162 ::rtl::OUString getCursorName() const;
163 template < typename T, SQLINTEGER BufferLength > T getStmtOption (SQLINTEGER fOption, T dflt = 0) const;
165 void setFetchDirection(sal_Int32 _par0);
166 void setFetchSize(sal_Int32 _par0);
167 template < typename T, SQLINTEGER BufferLength > SQLRETURN setStmtOption (SQLINTEGER fOption, T value) const;
170 void fillRow(sal_Int32 _nToColumn);
171 void allocBuffer();
172 void releaseBuffer();
173 void updateValue(sal_Int32 columnIndex,SQLSMALLINT _nType,void* _pValue) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
174 void fillNeededData(SQLRETURN _nRet);
175 const ORowSetValue& getValue(sal_Int32 _nColumnIndex,SQLSMALLINT _nType,void* _pValue,SQLINTEGER _rSize);
176 sal_Bool moveImpl(IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, sal_Bool _bRetrieveData);
177 TVoidPtr allocBindColumn(sal_Int32 _nType,sal_Int32 _nColumnIndex);
178 SQLRETURN unbind(sal_Bool _bUnbindHandle = sal_True);
179 SWORD impl_getColumnType_nothrow(sal_Int32 columnIndex);
181 // OPropertyArrayUsageHelper
182 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
183 // OPropertySetHelper
184 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
186 virtual sal_Bool SAL_CALL convertFastPropertyValue(
187 ::com::sun::star::uno::Any & rConvertedValue,
188 ::com::sun::star::uno::Any & rOldValue,
189 sal_Int32 nHandle,
190 const ::com::sun::star::uno::Any& rValue )
191 throw (::com::sun::star::lang::IllegalArgumentException);
192 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
193 sal_Int32 nHandle,
194 const ::com::sun::star::uno::Any& rValue
196 throw (::com::sun::star::uno::Exception);
197 virtual void SAL_CALL getFastPropertyValue(
198 ::com::sun::star::uno::Any& rValue,
199 sal_Int32 nHandle
200 ) const;
201 public:
202 DECLARE_SERVICE_INFO();
203 // A ctor that is needed for returning the object
204 OResultSet( SQLHANDLE _pStatementHandle,OStatement_Base* pStmt);
205 virtual ~OResultSet();
207 void construct();
209 inline oslGenericFunction getOdbcFunction(sal_Int32 _nIndex) const
211 return m_pStatement->getOdbcFunction(_nIndex);
214 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > operator *()
216 return ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(*(OResultSet_BASE*)this);
219 inline void setMetaData(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData>& _xMetaData) { m_xMetaData = _xMetaData;}
221 // ::cppu::OComponentHelper
222 virtual void SAL_CALL disposing(void);
223 // XInterface
224 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
225 virtual void SAL_CALL acquire() throw();
226 virtual void SAL_CALL release() throw();
227 //XTypeProvider
228 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
229 // XPropertySet
230 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
231 // XResultSet
232 virtual sal_Bool SAL_CALL next( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
233 virtual sal_Bool SAL_CALL isBeforeFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
234 virtual sal_Bool SAL_CALL isAfterLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
235 virtual sal_Bool SAL_CALL isFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
236 virtual sal_Bool SAL_CALL isLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
237 virtual void SAL_CALL beforeFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
238 virtual void SAL_CALL afterLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
239 virtual sal_Bool SAL_CALL first( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
240 virtual sal_Bool SAL_CALL last( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
241 virtual sal_Int32 SAL_CALL getRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
242 virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
243 virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
244 virtual sal_Bool SAL_CALL previous( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
245 virtual void SAL_CALL refreshRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
246 virtual sal_Bool SAL_CALL rowUpdated( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
247 virtual sal_Bool SAL_CALL rowInserted( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
248 virtual sal_Bool SAL_CALL rowDeleted( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
249 virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getStatement( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
250 // XRow
251 virtual sal_Bool SAL_CALL wasNull( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
252 virtual ::rtl::OUString SAL_CALL getString( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
253 virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
254 virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
255 virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
256 virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
257 virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
258 virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
259 virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
260 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);
261 virtual ::com::sun::star::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
262 virtual ::com::sun::star::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
263 virtual ::com::sun::star::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
264 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);
265 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);
266 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);
267 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);
268 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);
269 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);
270 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);
271 // XResultSetMetaDataSupplier
272 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
273 // XCancellable
274 virtual void SAL_CALL cancel( ) throw(::com::sun::star::uno::RuntimeException);
275 // XCloseable
276 virtual void SAL_CALL close( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
277 // XWarningsSupplier
278 virtual ::com::sun::star::uno::Any SAL_CALL getWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
279 virtual void SAL_CALL clearWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
280 // XResultSetUpdate
281 virtual void SAL_CALL insertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
282 virtual void SAL_CALL updateRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
283 virtual void SAL_CALL deleteRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
284 virtual void SAL_CALL cancelRowUpdates( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
285 virtual void SAL_CALL moveToInsertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
286 virtual void SAL_CALL moveToCurrentRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
287 // XRowUpdate
288 virtual void SAL_CALL updateNull( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
289 virtual void SAL_CALL updateBoolean( sal_Int32 columnIndex, sal_Bool x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
290 virtual void SAL_CALL updateByte( sal_Int32 columnIndex, sal_Int8 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
291 virtual void SAL_CALL updateShort( sal_Int32 columnIndex, sal_Int16 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
292 virtual void SAL_CALL updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
293 virtual void SAL_CALL updateLong( sal_Int32 columnIndex, sal_Int64 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
294 virtual void SAL_CALL updateFloat( sal_Int32 columnIndex, float x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
295 virtual void SAL_CALL updateDouble( sal_Int32 columnIndex, double x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
296 virtual void SAL_CALL updateString( sal_Int32 columnIndex, const ::rtl::OUString& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
297 virtual void SAL_CALL updateBytes( sal_Int32 columnIndex, const ::com::sun::star::uno::Sequence< sal_Int8 >& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
298 virtual void SAL_CALL updateDate( sal_Int32 columnIndex, const ::com::sun::star::util::Date& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
299 virtual void SAL_CALL updateTime( sal_Int32 columnIndex, const ::com::sun::star::util::Time& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
300 virtual void SAL_CALL updateTimestamp( sal_Int32 columnIndex, const ::com::sun::star::util::DateTime& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
301 virtual void SAL_CALL updateBinaryStream( sal_Int32 columnIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
302 virtual void SAL_CALL updateCharacterStream( sal_Int32 columnIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
303 virtual void SAL_CALL updateObject( sal_Int32 columnIndex, const ::com::sun::star::uno::Any& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
304 virtual void SAL_CALL updateNumericObject( sal_Int32 columnIndex, const ::com::sun::star::uno::Any& x, sal_Int32 scale ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
305 // XColumnLocate
306 virtual sal_Int32 SAL_CALL findColumn( const ::rtl::OUString& columnName ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
307 // XRowLocate
308 virtual ::com::sun::star::uno::Any SAL_CALL getBookmark( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
309 virtual sal_Bool SAL_CALL moveToBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
310 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);
311 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);
312 virtual sal_Bool SAL_CALL hasOrderedBookmarks( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
313 virtual sal_Int32 SAL_CALL hashBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
314 // XDeleteRows
315 virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL deleteRows( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
317 // IResultSetHelper
318 virtual sal_Bool move(IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, sal_Bool _bRetrieveData);
319 virtual sal_Int32 getDriverPos() const;
320 virtual sal_Bool deletedVisible() const;
321 virtual sal_Bool isRowDeleted() const;
323 protected:
324 using OPropertySetHelper::getFastPropertyValue;
328 #endif // _CONNECTIVITY_ODBC_ORESULTSET_HXX_
331 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */