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