1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3*cdf0e10cSrcweir *
4*cdf0e10cSrcweir * Copyright 2008 by Sun Microsystems, Inc.
5*cdf0e10cSrcweir *
6*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
7*cdf0e10cSrcweir *
8*cdf0e10cSrcweir * $RCSfile: mysqlc_resultset.hxx,v $
9*cdf0e10cSrcweir *
10*cdf0e10cSrcweir * $Revision: 1.1.2.4 $
11*cdf0e10cSrcweir *
12*cdf0e10cSrcweir * This file is part of OpenOffice.org.
13*cdf0e10cSrcweir *
14*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
15*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
16*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
17*cdf0e10cSrcweir *
18*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
19*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
20*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
22*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
23*cdf0e10cSrcweir *
24*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
25*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
26*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
27*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
28*cdf0e10cSrcweir ************************************************************************/
29*cdf0e10cSrcweir 
30*cdf0e10cSrcweir #ifndef MYSQLC_SRESULTSET_HXX
31*cdf0e10cSrcweir #define MYSQLC_SRESULTSET_HXX
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir #include "mysqlc_preparedstatement.hxx"
34*cdf0e10cSrcweir #include "mysqlc_statement.hxx"
35*cdf0e10cSrcweir #include "mysqlc_subcomponent.hxx"
36*cdf0e10cSrcweir 
37*cdf0e10cSrcweir #include <com/sun/star/sdbc/XCloseable.hpp>
38*cdf0e10cSrcweir #include <com/sun/star/sdbc/XColumnLocate.hpp>
39*cdf0e10cSrcweir #include <com/sun/star/sdbc/XResultSet.hpp>
40*cdf0e10cSrcweir #include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
41*cdf0e10cSrcweir #include <com/sun/star/sdbc/XResultSetUpdate.hpp>
42*cdf0e10cSrcweir #include <com/sun/star/sdbc/XRow.hpp>
43*cdf0e10cSrcweir #include <com/sun/star/sdbc/XRowUpdate.hpp>
44*cdf0e10cSrcweir #include <com/sun/star/sdbc/XWarningsSupplier.hpp>
45*cdf0e10cSrcweir #include <com/sun/star/sdbcx/XDeleteRows.hpp>
46*cdf0e10cSrcweir #include <com/sun/star/sdbcx/XRowLocate.hpp>
47*cdf0e10cSrcweir #include <com/sun/star/util/XCancellable.hpp>
48*cdf0e10cSrcweir 
49*cdf0e10cSrcweir #include <cppuhelper/compbase12.hxx>
50*cdf0e10cSrcweir 
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir namespace connectivity
53*cdf0e10cSrcweir {
54*cdf0e10cSrcweir 	namespace mysqlc
55*cdf0e10cSrcweir 	{
56*cdf0e10cSrcweir 		using ::rtl::OUString;
57*cdf0e10cSrcweir 		using ::com::sun::star::sdbc::SQLException;
58*cdf0e10cSrcweir 		using ::com::sun::star::uno::RuntimeException;
59*cdf0e10cSrcweir 		using ::com::sun::star::uno::Any;
60*cdf0e10cSrcweir 		typedef ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > my_XInputStreamRef;
61*cdf0e10cSrcweir 		typedef my_XNameAccessRef my_XNameAccessRef;
62*cdf0e10cSrcweir 
63*cdf0e10cSrcweir 		/*
64*cdf0e10cSrcweir 		**	OResultSet
65*cdf0e10cSrcweir 		*/
66*cdf0e10cSrcweir         typedef ::cppu::WeakComponentImplHelper12<	::com::sun::star::sdbc::XResultSet,
67*cdf0e10cSrcweir 													::com::sun::star::sdbc::XRow,
68*cdf0e10cSrcweir 													::com::sun::star::sdbc::XResultSetMetaDataSupplier,
69*cdf0e10cSrcweir 													::com::sun::star::util::XCancellable,
70*cdf0e10cSrcweir 													::com::sun::star::sdbc::XWarningsSupplier,
71*cdf0e10cSrcweir 													::com::sun::star::sdbc::XResultSetUpdate,
72*cdf0e10cSrcweir 													::com::sun::star::sdbc::XRowUpdate,
73*cdf0e10cSrcweir 													::com::sun::star::sdbcx::XRowLocate,
74*cdf0e10cSrcweir 													::com::sun::star::sdbcx::XDeleteRows,
75*cdf0e10cSrcweir 													::com::sun::star::sdbc::XCloseable,
76*cdf0e10cSrcweir 													::com::sun::star::sdbc::XColumnLocate,
77*cdf0e10cSrcweir 													::com::sun::star::lang::XServiceInfo> OResultSet_BASE;
78*cdf0e10cSrcweir 
79*cdf0e10cSrcweir 		class OResultSet :	public	OBase_Mutex,
80*cdf0e10cSrcweir 							public	OResultSet_BASE,
81*cdf0e10cSrcweir 							public	::cppu::OPropertySetHelper,
82*cdf0e10cSrcweir 							public	OPropertyArrayUsageHelper<OResultSet>
83*cdf0e10cSrcweir 		{
84*cdf0e10cSrcweir 		protected:
85*cdf0e10cSrcweir 			::com::sun::star::uno::WeakReferenceHelper	m_aStatement;
86*cdf0e10cSrcweir 			::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData> m_xMetaData;
87*cdf0e10cSrcweir 			sql::ResultSet		*m_result;
88*cdf0e10cSrcweir 			unsigned int		fieldCount;
89*cdf0e10cSrcweir             rtl_TextEncoding    m_encoding;
90*cdf0e10cSrcweir 			// OPropertyArrayUsageHelper
91*cdf0e10cSrcweir 			::cppu::IPropertyArrayHelper* createArrayHelper() const;
92*cdf0e10cSrcweir 			// OPropertySetHelper
93*cdf0e10cSrcweir 			::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir 			sal_Bool SAL_CALL convertFastPropertyValue(Any & rConvertedValue, Any & rOldValue, sal_Int32 nHandle, const Any& rValue)
96*cdf0e10cSrcweir 						throw (::com::sun::star::lang::IllegalArgumentException);
97*cdf0e10cSrcweir 
98*cdf0e10cSrcweir 			void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const Any& rValue)
99*cdf0e10cSrcweir 						throw (::com::sun::star::uno::Exception);
100*cdf0e10cSrcweir 
101*cdf0e10cSrcweir 			void SAL_CALL getFastPropertyValue(Any& rValue, sal_Int32 nHandle) const;
102*cdf0e10cSrcweir 
103*cdf0e10cSrcweir 			// you can't delete objects of this type
104*cdf0e10cSrcweir 			virtual ~OResultSet();
105*cdf0e10cSrcweir 
106*cdf0e10cSrcweir 		public:
107*cdf0e10cSrcweir 			DECLARE_SERVICE_INFO();
108*cdf0e10cSrcweir 
109*cdf0e10cSrcweir 			OResultSet( OCommonStatement* pStmt, sql::ResultSet *result, rtl_TextEncoding _encoding );
110*cdf0e10cSrcweir 
111*cdf0e10cSrcweir 			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > operator *()
112*cdf0e10cSrcweir 			{
113*cdf0e10cSrcweir 				return ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(*(OResultSet_BASE*)this);
114*cdf0e10cSrcweir 			}
115*cdf0e10cSrcweir 
116*cdf0e10cSrcweir 			// ::cppu::OComponentHelper
117*cdf0e10cSrcweir 			void SAL_CALL disposing();
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir 			// XInterface
120*cdf0e10cSrcweir 			Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type & rType)
121*cdf0e10cSrcweir 																		throw(RuntimeException);
122*cdf0e10cSrcweir 
123*cdf0e10cSrcweir 			void SAL_CALL acquire()										throw();
124*cdf0e10cSrcweir 
125*cdf0e10cSrcweir 			void SAL_CALL release()										throw();
126*cdf0e10cSrcweir 
127*cdf0e10cSrcweir 			//XTypeProvider
128*cdf0e10cSrcweir 			::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
129*cdf0e10cSrcweir 																		throw(RuntimeException);
130*cdf0e10cSrcweir 
131*cdf0e10cSrcweir 			// XPropertySet
132*cdf0e10cSrcweir 			::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo()
133*cdf0e10cSrcweir 																		throw(RuntimeException);
134*cdf0e10cSrcweir 
135*cdf0e10cSrcweir 			// XResultSet
136*cdf0e10cSrcweir 			sal_Bool SAL_CALL next()									throw(SQLException, RuntimeException);
137*cdf0e10cSrcweir 
138*cdf0e10cSrcweir 			sal_Bool SAL_CALL isBeforeFirst()							throw(SQLException, RuntimeException);
139*cdf0e10cSrcweir 
140*cdf0e10cSrcweir 			sal_Bool SAL_CALL isAfterLast()								throw(SQLException, RuntimeException);
141*cdf0e10cSrcweir 
142*cdf0e10cSrcweir 			sal_Bool SAL_CALL isFirst()									throw(SQLException, RuntimeException);
143*cdf0e10cSrcweir 
144*cdf0e10cSrcweir 			sal_Bool SAL_CALL isLast()									throw(SQLException, RuntimeException);
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir 			void SAL_CALL beforeFirst()									throw(SQLException, RuntimeException);
147*cdf0e10cSrcweir 
148*cdf0e10cSrcweir 			void SAL_CALL afterLast()									throw(SQLException, RuntimeException);
149*cdf0e10cSrcweir 
150*cdf0e10cSrcweir 			sal_Bool SAL_CALL first()									throw(SQLException, RuntimeException);
151*cdf0e10cSrcweir 
152*cdf0e10cSrcweir 			sal_Bool SAL_CALL last()									throw(SQLException, RuntimeException);
153*cdf0e10cSrcweir 
154*cdf0e10cSrcweir 			sal_Int32 SAL_CALL getRow()									throw(SQLException, RuntimeException);
155*cdf0e10cSrcweir 
156*cdf0e10cSrcweir 			sal_Bool SAL_CALL absolute(sal_Int32 row)					throw(SQLException, RuntimeException);
157*cdf0e10cSrcweir 
158*cdf0e10cSrcweir 			sal_Bool SAL_CALL relative(sal_Int32 rows)					throw(SQLException, RuntimeException);
159*cdf0e10cSrcweir 
160*cdf0e10cSrcweir 			sal_Bool SAL_CALL previous()								throw(SQLException, RuntimeException);
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir 			void SAL_CALL refreshRow()									throw(SQLException, RuntimeException);
163*cdf0e10cSrcweir 
164*cdf0e10cSrcweir 			sal_Bool SAL_CALL rowUpdated()								throw(SQLException, RuntimeException);
165*cdf0e10cSrcweir 
166*cdf0e10cSrcweir 			sal_Bool SAL_CALL rowInserted()								throw(SQLException, RuntimeException);
167*cdf0e10cSrcweir 
168*cdf0e10cSrcweir 			sal_Bool SAL_CALL rowDeleted()								throw(SQLException, RuntimeException);
169*cdf0e10cSrcweir 
170*cdf0e10cSrcweir 			::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getStatement()
171*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
172*cdf0e10cSrcweir 			// XRow
173*cdf0e10cSrcweir 			sal_Bool SAL_CALL wasNull() throw(SQLException, RuntimeException);
174*cdf0e10cSrcweir 
175*cdf0e10cSrcweir 			OUString SAL_CALL getString(sal_Int32 column)		throw(SQLException, RuntimeException);
176*cdf0e10cSrcweir 
177*cdf0e10cSrcweir 			sal_Bool SAL_CALL getBoolean(sal_Int32 column)				throw(SQLException, RuntimeException);
178*cdf0e10cSrcweir 
179*cdf0e10cSrcweir 			sal_Int8 SAL_CALL getByte(sal_Int32 column)					throw(SQLException, RuntimeException);
180*cdf0e10cSrcweir 
181*cdf0e10cSrcweir 			sal_Int16 SAL_CALL getShort(sal_Int32 column)				throw(SQLException, RuntimeException);
182*cdf0e10cSrcweir 
183*cdf0e10cSrcweir 			sal_Int32 SAL_CALL getInt(sal_Int32 column)					throw(SQLException, RuntimeException);
184*cdf0e10cSrcweir 
185*cdf0e10cSrcweir 			sal_Int64 SAL_CALL getLong(sal_Int32 column)				throw(SQLException, RuntimeException);
186*cdf0e10cSrcweir 
187*cdf0e10cSrcweir 			float SAL_CALL getFloat(sal_Int32 column)					throw(SQLException, RuntimeException);
188*cdf0e10cSrcweir 
189*cdf0e10cSrcweir 			double SAL_CALL getDouble(sal_Int32 column)					throw(SQLException, RuntimeException);
190*cdf0e10cSrcweir 
191*cdf0e10cSrcweir 			::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getBytes(sal_Int32 column)
192*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
193*cdf0e10cSrcweir 
194*cdf0e10cSrcweir 			::com::sun::star::util::Date SAL_CALL getDate(sal_Int32 column)
195*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
196*cdf0e10cSrcweir 
197*cdf0e10cSrcweir 			::com::sun::star::util::Time SAL_CALL getTime(sal_Int32 column)
198*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
199*cdf0e10cSrcweir 
200*cdf0e10cSrcweir 			::com::sun::star::util::DateTime SAL_CALL getTimestamp(sal_Int32 column)
201*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
202*cdf0e10cSrcweir 
203*cdf0e10cSrcweir 			my_XInputStreamRef SAL_CALL getBinaryStream(sal_Int32 column)
204*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
205*cdf0e10cSrcweir 
206*cdf0e10cSrcweir 			my_XInputStreamRef SAL_CALL getCharacterStream(sal_Int32 column)
207*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
208*cdf0e10cSrcweir 
209*cdf0e10cSrcweir 			Any SAL_CALL getObject(sal_Int32 column, const my_XNameAccessRef& typeMap)
210*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir 			::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRef > SAL_CALL getRef(sal_Int32 column)
213*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
214*cdf0e10cSrcweir 
215*cdf0e10cSrcweir 			::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XBlob > SAL_CALL getBlob(sal_Int32 column)
216*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
217*cdf0e10cSrcweir 
218*cdf0e10cSrcweir 			::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XClob > SAL_CALL getClob(sal_Int32 column)
219*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
220*cdf0e10cSrcweir 
221*cdf0e10cSrcweir 			::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XArray > SAL_CALL getArray(sal_Int32 column)
222*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
223*cdf0e10cSrcweir 
224*cdf0e10cSrcweir 			// XResultSetMetaDataSupplier
225*cdf0e10cSrcweir 			::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > SAL_CALL getMetaData()
226*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
227*cdf0e10cSrcweir 
228*cdf0e10cSrcweir 			// XCancellable
229*cdf0e10cSrcweir 			void SAL_CALL cancel()										throw(RuntimeException);
230*cdf0e10cSrcweir 
231*cdf0e10cSrcweir 			// XCloseable
232*cdf0e10cSrcweir 			void SAL_CALL close()										throw(SQLException, RuntimeException);
233*cdf0e10cSrcweir 
234*cdf0e10cSrcweir 			// XWarningsSupplier
235*cdf0e10cSrcweir 			Any SAL_CALL getWarnings()									throw(SQLException, RuntimeException);
236*cdf0e10cSrcweir 
237*cdf0e10cSrcweir 			void SAL_CALL clearWarnings()								throw(SQLException, RuntimeException);
238*cdf0e10cSrcweir 
239*cdf0e10cSrcweir 			// XResultSetUpdate
240*cdf0e10cSrcweir 			void SAL_CALL insertRow()									throw(SQLException, RuntimeException);
241*cdf0e10cSrcweir 
242*cdf0e10cSrcweir 			void SAL_CALL updateRow()									throw(SQLException, RuntimeException);
243*cdf0e10cSrcweir 
244*cdf0e10cSrcweir 			void SAL_CALL deleteRow()									throw(SQLException, RuntimeException);
245*cdf0e10cSrcweir 
246*cdf0e10cSrcweir 			void SAL_CALL cancelRowUpdates()							throw(SQLException, RuntimeException);
247*cdf0e10cSrcweir 
248*cdf0e10cSrcweir 			void SAL_CALL moveToInsertRow()								throw(SQLException, RuntimeException);
249*cdf0e10cSrcweir 
250*cdf0e10cSrcweir 			void SAL_CALL moveToCurrentRow()							throw(SQLException, RuntimeException);
251*cdf0e10cSrcweir 
252*cdf0e10cSrcweir 			// XRowUpdate
253*cdf0e10cSrcweir 			void SAL_CALL updateNull(sal_Int32 column)					throw(SQLException, RuntimeException);
254*cdf0e10cSrcweir 
255*cdf0e10cSrcweir 			void SAL_CALL updateBoolean(sal_Int32 column, sal_Bool x)	throw(SQLException, RuntimeException);
256*cdf0e10cSrcweir 
257*cdf0e10cSrcweir 			void SAL_CALL updateByte(sal_Int32 column, sal_Int8 x)		throw(SQLException, RuntimeException);
258*cdf0e10cSrcweir 
259*cdf0e10cSrcweir 			void SAL_CALL updateShort(sal_Int32 column, sal_Int16 x)	throw(SQLException, RuntimeException);
260*cdf0e10cSrcweir 
261*cdf0e10cSrcweir 			void SAL_CALL updateInt(sal_Int32 column, sal_Int32 x)		throw(SQLException, RuntimeException);
262*cdf0e10cSrcweir 
263*cdf0e10cSrcweir 			void SAL_CALL updateLong(sal_Int32 column, sal_Int64 x)		throw(SQLException, RuntimeException);
264*cdf0e10cSrcweir 
265*cdf0e10cSrcweir 			void SAL_CALL updateFloat(sal_Int32 column, float x)		throw(SQLException, RuntimeException);
266*cdf0e10cSrcweir 
267*cdf0e10cSrcweir 			void SAL_CALL updateDouble(sal_Int32 column, double x)		throw(SQLException, RuntimeException);
268*cdf0e10cSrcweir 
269*cdf0e10cSrcweir 			void SAL_CALL updateString(sal_Int32 column, const OUString& x)
270*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
271*cdf0e10cSrcweir 
272*cdf0e10cSrcweir 			void SAL_CALL updateBytes(sal_Int32 column, const ::com::sun::star::uno::Sequence< sal_Int8 >& x)
273*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
274*cdf0e10cSrcweir 
275*cdf0e10cSrcweir 			void SAL_CALL updateDate(sal_Int32 column, const ::com::sun::star::util::Date& x)
276*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
277*cdf0e10cSrcweir 
278*cdf0e10cSrcweir 			void SAL_CALL updateTime(sal_Int32 column, const ::com::sun::star::util::Time& x)
279*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
280*cdf0e10cSrcweir 
281*cdf0e10cSrcweir 			void SAL_CALL updateTimestamp(sal_Int32 column, const ::com::sun::star::util::DateTime& x)
282*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
283*cdf0e10cSrcweir 
284*cdf0e10cSrcweir 			void SAL_CALL updateBinaryStream(sal_Int32 column, const my_XInputStreamRef& x, sal_Int32 length)
285*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
286*cdf0e10cSrcweir 
287*cdf0e10cSrcweir 			void SAL_CALL updateCharacterStream(sal_Int32 column, const my_XInputStreamRef& x, sal_Int32 length)
288*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
289*cdf0e10cSrcweir 
290*cdf0e10cSrcweir 			void SAL_CALL updateObject(sal_Int32 column, const Any& x)
291*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
292*cdf0e10cSrcweir 
293*cdf0e10cSrcweir 			void SAL_CALL updateNumericObject(sal_Int32 column, const Any& x, sal_Int32 scale)
294*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
295*cdf0e10cSrcweir 
296*cdf0e10cSrcweir 			// XColumnLocate
297*cdf0e10cSrcweir 			sal_Int32 SAL_CALL findColumn(const OUString& columnName)
298*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
299*cdf0e10cSrcweir 
300*cdf0e10cSrcweir 			// XRowLocate
301*cdf0e10cSrcweir 			Any SAL_CALL getBookmark()									throw(SQLException, RuntimeException);
302*cdf0e10cSrcweir 
303*cdf0e10cSrcweir 			sal_Bool SAL_CALL moveToBookmark(const Any& bookmark)
304*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
305*cdf0e10cSrcweir 
306*cdf0e10cSrcweir 			sal_Bool SAL_CALL moveRelativeToBookmark(const Any& bookmark, sal_Int32 rows)
307*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
308*cdf0e10cSrcweir 
309*cdf0e10cSrcweir 			sal_Int32 SAL_CALL compareBookmarks(const Any& first, const Any& second)
310*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
311*cdf0e10cSrcweir 
312*cdf0e10cSrcweir 			sal_Bool SAL_CALL hasOrderedBookmarks()						throw(SQLException, RuntimeException);
313*cdf0e10cSrcweir 
314*cdf0e10cSrcweir 			sal_Int32 SAL_CALL hashBookmark(const Any& bookmark)
315*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
316*cdf0e10cSrcweir 
317*cdf0e10cSrcweir 			// XDeleteRows
318*cdf0e10cSrcweir 			::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL deleteRows(const ::com::sun::star::uno::Sequence< Any >& rows)
319*cdf0e10cSrcweir 																		throw(SQLException, RuntimeException);
320*cdf0e10cSrcweir 
321*cdf0e10cSrcweir 			void checkColumnIndex(sal_Int32 index) throw(SQLException, RuntimeException);
322*cdf0e10cSrcweir 
323*cdf0e10cSrcweir 		private:
324*cdf0e10cSrcweir 			using ::cppu::OPropertySetHelper::getFastPropertyValue;
325*cdf0e10cSrcweir 		};
326*cdf0e10cSrcweir 	} /* mysqlc */
327*cdf0e10cSrcweir } /* connectivity */
328*cdf0e10cSrcweir #endif // CONNECTIVITY_SRESULTSET_HXX
329*cdf0e10cSrcweir 
330*cdf0e10cSrcweir /*
331*cdf0e10cSrcweir  * Local variables:
332*cdf0e10cSrcweir  * tab-width: 4
333*cdf0e10cSrcweir  * c-basic-offset: 4
334*cdf0e10cSrcweir  * End:
335*cdf0e10cSrcweir  * vim600: noet sw=4 ts=4 fdm=marker
336*cdf0e10cSrcweir  * vim<600: noet sw=4 ts=4
337*cdf0e10cSrcweir  */
338