Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
5 : : * This Source Code Form is subject to the terms of the Mozilla Public
6 : : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
11 : : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : : * contributor license agreements. See the NOTICE file distributed
13 : : * with this work for additional information regarding copyright
14 : : * ownership. The ASF licenses this file to you under the Apache
15 : : * License, Version 2.0 (the "License"); you may not use this file
16 : : * except in compliance with the License. You may obtain a copy of
17 : : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : : */
19 : :
20 : : #ifndef _CONNECTIVITY_ODBC_ORESULTSET_HXX_
21 : : #define _CONNECTIVITY_ODBC_ORESULTSET_HXX_
22 : :
23 : : #include <com/sun/star/sdbc/XResultSet.hpp>
24 : : #include <com/sun/star/sdbc/XRow.hpp>
25 : : #include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
26 : : #include <com/sun/star/sdbc/XCloseable.hpp>
27 : : #include <com/sun/star/sdbc/XColumnLocate.hpp>
28 : : #include <com/sun/star/util/XCancellable.hpp>
29 : : #include <com/sun/star/sdbc/XWarningsSupplier.hpp>
30 : : #include <com/sun/star/sdbc/XResultSetUpdate.hpp>
31 : : #include <com/sun/star/sdbc/XRowUpdate.hpp>
32 : : #include <com/sun/star/sdbcx/XRowLocate.hpp>
33 : : #include <com/sun/star/sdbcx/XDeleteRows.hpp>
34 : : #include <cppuhelper/compbase12.hxx>
35 : : #include <comphelper/proparrhlp.hxx>
36 : : #include "odbc/OFunctions.hxx"
37 : : #include "odbc/OStatement.hxx"
38 : : #include "odbc/odbcbasedllapi.hxx"
39 : : #include "connectivity/CommonTools.hxx"
40 : : #include "connectivity/FValue.hxx"
41 : : #include "TSkipDeletedSet.hxx"
42 : :
43 : : namespace connectivity
44 : : {
45 : : namespace odbc
46 : : {
47 : :
48 : : /*
49 : : ** java_sql_ResultSet
50 : : */
51 : : typedef ::cppu::WeakComponentImplHelper12< ::com::sun::star::sdbc::XResultSet,
52 : : ::com::sun::star::sdbc::XRow,
53 : : ::com::sun::star::sdbc::XResultSetMetaDataSupplier,
54 : : ::com::sun::star::util::XCancellable,
55 : : ::com::sun::star::sdbc::XWarningsSupplier,
56 : : ::com::sun::star::sdbc::XResultSetUpdate,
57 : : ::com::sun::star::sdbc::XRowUpdate,
58 : : ::com::sun::star::sdbcx::XRowLocate,
59 : : ::com::sun::star::sdbcx::XDeleteRows,
60 : : ::com::sun::star::sdbc::XCloseable,
61 : : ::com::sun::star::sdbc::XColumnLocate,
62 : : ::com::sun::star::lang::XServiceInfo> OResultSet_BASE;
63 : :
64 : :
65 : : typedef ::std::pair<sal_Int64,sal_Int32> TVoidPtr;
66 : : typedef ::std::allocator< TVoidPtr > TVoidAlloc;
67 : : typedef ::std::vector<TVoidPtr> TVoidVector;
68 : : // typedef ::com::sun::star::uno::Sequence<TVoidPtr> TVoidVector;
69 : : /// unary_function Functor object for class ZZ returntype is void
70 : : struct OOO_DLLPUBLIC_ODBCBASE TBookmarkPosMapCompare : ::std::binary_function< ::com::sun::star::uno::Sequence<sal_Int8>, ::com::sun::star::uno::Sequence<sal_Int8>, bool >
71 : : {
72 : 0 : inline bool operator()( const ::com::sun::star::uno::Sequence<sal_Int8>& _rLH,
73 : : const ::com::sun::star::uno::Sequence<sal_Int8>& _rRH) const
74 : : {
75 : 0 : if(_rLH.getLength() == _rRH.getLength())
76 : : {
77 : 0 : sal_Int32 nCount = _rLH.getLength();
78 : 0 : if(nCount != 4)
79 : : {
80 : 0 : const sal_Int8* pLHBack = _rLH.getConstArray() + nCount - 1;
81 : 0 : const sal_Int8* pRHBack = _rRH.getConstArray() + nCount - 1;
82 : :
83 : : sal_Int32 i;
84 : 0 : for(i=0;i < nCount;++i,--pLHBack,--pRHBack)
85 : : {
86 : 0 : if(!(*pLHBack) && *pRHBack)
87 : 0 : return sal_True;
88 : 0 : else if(*pLHBack && !(*pRHBack))
89 : 0 : return sal_False;
90 : : }
91 : 0 : for(i=0,++pLHBack,++pRHBack;i < nCount;++pLHBack,++pRHBack,++i)
92 : 0 : if(*pLHBack < *pRHBack)
93 : 0 : return sal_True;
94 : 0 : return sal_False;
95 : : }
96 : : else
97 : 0 : return *reinterpret_cast<const sal_Int32*>(_rLH.getConstArray()) < *reinterpret_cast<const sal_Int32*>(_rRH.getConstArray());
98 : :
99 : : }
100 : : else
101 : 0 : return _rLH.getLength() < _rRH.getLength();
102 : : }
103 : : };
104 : :
105 : : typedef ::std::map< ::com::sun::star::uno::Sequence<sal_Int8>, sal_Int32,TBookmarkPosMapCompare > TBookmarkPosMap;
106 : :
107 : : class OOO_DLLPUBLIC_ODBCBASE OResultSet :
108 : : public comphelper::OBaseMutex,
109 : : public ::connectivity::IResultSetHelper,
110 : : public OResultSet_BASE,
111 : : public ::cppu::OPropertySetHelper,
112 : : public ::comphelper::OPropertyArrayUsageHelper<OResultSet>
113 : : {
114 : : protected:
115 : : TBookmarkPosMap m_aPosToBookmarks;
116 : : // used top hold the information about the value and the datatype to save calls to metadata
117 : : typedef ::std::vector<ORowSetValue> TDataRow;
118 : :
119 : : TVoidVector m_aBindVector;
120 : : ::std::vector<SQLLEN> m_aLengthVector;
121 : : ::std::map<sal_Int32,SWORD> m_aODBCColumnTypes;
122 : : ::com::sun::star::uno::Sequence<sal_Int8> m_aBookmark;
123 : :
124 : : TDataRow m_aRow; // only used when SQLGetData can't be called in any order
125 : : ORowSetValue m_aEmptyValue; // needed for the getValue method when no prefetch is used
126 : : SQLHANDLE m_aStatementHandle;
127 : : SQLHANDLE m_aConnectionHandle;
128 : : OStatement_Base* m_pStatement;
129 : : OSkipDeletedSet* m_pSkipDeletedSet;
130 : : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> m_xStatement;
131 : : ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData> m_xMetaData;
132 : : SQLUSMALLINT* m_pRowStatusArray;
133 : : rtl_TextEncoding m_nTextEncoding;
134 : : sal_Int32 m_nRowPos;
135 : : sal_Int32 m_nLastColumnPos; // used for m_aRow just to know where we are
136 : : mutable sal_uInt32 m_nUseBookmarks;
137 : : SQLRETURN m_nCurrentFetchState;
138 : : sal_Bool m_bWasNull;
139 : : sal_Bool m_bEOF; // after last record
140 : : sal_Bool m_bLastRecord;
141 : : sal_Bool m_bFreeHandle;
142 : : sal_Bool m_bInserting;
143 : : sal_Bool m_bFetchData; // true when SQLGetaData can be called in any order or when fetching data for m_aRow
144 : : sal_Bool m_bRowInserted;
145 : : sal_Bool m_bRowDeleted;
146 : : sal_Bool m_bUseFetchScroll;
147 : :
148 : : sal_Bool isBookmarkable() const;
149 : : sal_Int32 getResultSetConcurrency() const;
150 : : sal_Int32 getResultSetType() const;
151 : : sal_Int32 getFetchDirection() const;
152 : : sal_Int32 getFetchSize() const;
153 : : ::rtl::OUString getCursorName() const;
154 : : template < typename T, SQLINTEGER BufferLength > T getStmtOption (SQLINTEGER fOption, T dflt = 0) const;
155 : :
156 : : void setFetchDirection(sal_Int32 _par0);
157 : : void setFetchSize(sal_Int32 _par0);
158 : : template < typename T, SQLINTEGER BufferLength > SQLRETURN setStmtOption (SQLINTEGER fOption, T value) const;
159 : :
160 : :
161 : : void fillRow(sal_Int32 _nToColumn);
162 : : void allocBuffer();
163 : : void releaseBuffer();
164 : : void updateValue(sal_Int32 columnIndex,SQLSMALLINT _nType,void* _pValue) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
165 : : void fillNeededData(SQLRETURN _nRet);
166 : : const ORowSetValue& getValue(sal_Int32 _nColumnIndex,SQLSMALLINT _nType,void* _pValue,SQLINTEGER _rSize);
167 : : sal_Bool moveImpl(IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, sal_Bool _bRetrieveData);
168 : : TVoidPtr allocBindColumn(sal_Int32 _nType,sal_Int32 _nColumnIndex);
169 : : SQLRETURN unbind(sal_Bool _bUnbindHandle = sal_True);
170 : : SWORD impl_getColumnType_nothrow(sal_Int32 columnIndex);
171 : :
172 : : // OPropertyArrayUsageHelper
173 : : virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
174 : : // OPropertySetHelper
175 : : virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
176 : :
177 : : virtual sal_Bool SAL_CALL convertFastPropertyValue(
178 : : ::com::sun::star::uno::Any & rConvertedValue,
179 : : ::com::sun::star::uno::Any & rOldValue,
180 : : sal_Int32 nHandle,
181 : : const ::com::sun::star::uno::Any& rValue )
182 : : throw (::com::sun::star::lang::IllegalArgumentException);
183 : : virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
184 : : sal_Int32 nHandle,
185 : : const ::com::sun::star::uno::Any& rValue
186 : : )
187 : : throw (::com::sun::star::uno::Exception);
188 : : virtual void SAL_CALL getFastPropertyValue(
189 : : ::com::sun::star::uno::Any& rValue,
190 : : sal_Int32 nHandle
191 : : ) const;
192 : : public:
193 : : DECLARE_SERVICE_INFO();
194 : : // A ctor that is needed for returning the object
195 : : OResultSet( SQLHANDLE _pStatementHandle,OStatement_Base* pStmt);
196 : : virtual ~OResultSet();
197 : :
198 : : void construct();
199 : :
200 : 0 : inline oslGenericFunction getOdbcFunction(sal_Int32 _nIndex) const
201 : : {
202 : 0 : return m_pStatement->getOdbcFunction(_nIndex);
203 : : }
204 : :
205 : 0 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > operator *()
206 : : {
207 : 0 : return ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(*(OResultSet_BASE*)this);
208 : : }
209 : :
210 : 0 : inline void setMetaData(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData>& _xMetaData) { m_xMetaData = _xMetaData;}
211 : :
212 : : // ::cppu::OComponentHelper
213 : : virtual void SAL_CALL disposing(void);
214 : : // XInterface
215 : : virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
216 : : virtual void SAL_CALL acquire() throw();
217 : : virtual void SAL_CALL release() throw();
218 : : //XTypeProvider
219 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
220 : : // XPropertySet
221 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
222 : : // XResultSet
223 : : virtual sal_Bool SAL_CALL next( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
224 : : virtual sal_Bool SAL_CALL isBeforeFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
225 : : virtual sal_Bool SAL_CALL isAfterLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
226 : : virtual sal_Bool SAL_CALL isFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
227 : : virtual sal_Bool SAL_CALL isLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
228 : : virtual void SAL_CALL beforeFirst( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
229 : : virtual void SAL_CALL afterLast( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
230 : : virtual sal_Bool SAL_CALL first( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
231 : : virtual sal_Bool SAL_CALL last( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
232 : : virtual sal_Int32 SAL_CALL getRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
233 : : virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
234 : : virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
235 : : virtual sal_Bool SAL_CALL previous( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
236 : : virtual void SAL_CALL refreshRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
237 : : virtual sal_Bool SAL_CALL rowUpdated( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
238 : : virtual sal_Bool SAL_CALL rowInserted( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
239 : : virtual sal_Bool SAL_CALL rowDeleted( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
240 : : 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);
241 : : // XRow
242 : : virtual sal_Bool SAL_CALL wasNull( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
243 : : virtual ::rtl::OUString SAL_CALL getString( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
244 : : virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
245 : : virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
246 : : virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
247 : : virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
248 : : virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
249 : : virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
250 : : virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
251 : : 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);
252 : : virtual ::com::sun::star::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
253 : : virtual ::com::sun::star::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
254 : : virtual ::com::sun::star::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
255 : : 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);
256 : : 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);
257 : : 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);
258 : : 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);
259 : : 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);
260 : : 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);
261 : : 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);
262 : : // XResultSetMetaDataSupplier
263 : : 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);
264 : : // XCancellable
265 : : virtual void SAL_CALL cancel( ) throw(::com::sun::star::uno::RuntimeException);
266 : : // XCloseable
267 : : virtual void SAL_CALL close( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
268 : : // XWarningsSupplier
269 : : virtual ::com::sun::star::uno::Any SAL_CALL getWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
270 : : virtual void SAL_CALL clearWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
271 : : // XResultSetUpdate
272 : : virtual void SAL_CALL insertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
273 : : virtual void SAL_CALL updateRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
274 : : virtual void SAL_CALL deleteRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
275 : : virtual void SAL_CALL cancelRowUpdates( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
276 : : virtual void SAL_CALL moveToInsertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
277 : : virtual void SAL_CALL moveToCurrentRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
278 : : // XRowUpdate
279 : : virtual void SAL_CALL updateNull( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
280 : : virtual void SAL_CALL updateBoolean( sal_Int32 columnIndex, sal_Bool x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
281 : : virtual void SAL_CALL updateByte( sal_Int32 columnIndex, sal_Int8 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
282 : : virtual void SAL_CALL updateShort( sal_Int32 columnIndex, sal_Int16 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
283 : : virtual void SAL_CALL updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
284 : : virtual void SAL_CALL updateLong( sal_Int32 columnIndex, sal_Int64 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
285 : : virtual void SAL_CALL updateFloat( sal_Int32 columnIndex, float x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
286 : : virtual void SAL_CALL updateDouble( sal_Int32 columnIndex, double x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
287 : : virtual void SAL_CALL updateString( sal_Int32 columnIndex, const ::rtl::OUString& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
288 : : 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);
289 : : 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);
290 : : 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);
291 : : 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);
292 : : 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);
293 : : 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);
294 : : 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);
295 : : 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);
296 : : // XColumnLocate
297 : : virtual sal_Int32 SAL_CALL findColumn( const ::rtl::OUString& columnName ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
298 : : // XRowLocate
299 : : virtual ::com::sun::star::uno::Any SAL_CALL getBookmark( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
300 : : virtual sal_Bool SAL_CALL moveToBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
301 : : 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);
302 : : 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);
303 : : virtual sal_Bool SAL_CALL hasOrderedBookmarks( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
304 : : virtual sal_Int32 SAL_CALL hashBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
305 : : // XDeleteRows
306 : : 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);
307 : :
308 : : // IResultSetHelper
309 : : virtual sal_Bool move(IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, sal_Bool _bRetrieveData);
310 : : virtual sal_Int32 getDriverPos() const;
311 : : virtual sal_Bool deletedVisible() const;
312 : : virtual sal_Bool isRowDeleted() const;
313 : :
314 : : protected:
315 : : using OPropertySetHelper::getFastPropertyValue;
316 : : };
317 : : }
318 : : }
319 : : #endif // _CONNECTIVITY_ODBC_ORESULTSET_HXX_
320 : :
321 : :
322 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|