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_FDATABASEMETADATARESULTSET_HXX_
25cdf0e10cSrcweir #define _CONNECTIVITY_FDATABASEMETADATARESULTSET_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/lang/XInitialization.hpp>
34cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
35cdf0e10cSrcweir #include <com/sun/star/sdbc/XWarningsSupplier.hpp>
36cdf0e10cSrcweir #include <com/sun/star/sdbc/XResultSetUpdate.hpp>
37cdf0e10cSrcweir #include <com/sun/star/sdbc/XRowUpdate.hpp>
38cdf0e10cSrcweir #include <cppuhelper/compbase9.hxx>
39cdf0e10cSrcweir #include <comphelper/proparrhlp.hxx>
40cdf0e10cSrcweir #include "connectivity/CommonTools.hxx"
41cdf0e10cSrcweir #include <comphelper/propertycontainer.hxx>
42cdf0e10cSrcweir #include "connectivity/FValue.hxx"
43cdf0e10cSrcweir #include "connectivity/dbtoolsdllapi.hxx"
44cdf0e10cSrcweir #include <comphelper/broadcasthelper.hxx>
45cdf0e10cSrcweir #include <vos/refernce.hxx>
46cdf0e10cSrcweir 
47cdf0e10cSrcweir namespace connectivity
48cdf0e10cSrcweir {
49cdf0e10cSrcweir 	class ODatabaseMetaDataResultSetMetaData;
50cdf0e10cSrcweir     typedef ::cppu::WeakComponentImplHelper9<   ::com::sun::star::sdbc::XResultSet,
51cdf0e10cSrcweir 												::com::sun::star::sdbc::XRow,
52cdf0e10cSrcweir 												::com::sun::star::sdbc::XResultSetMetaDataSupplier,
53cdf0e10cSrcweir 												::com::sun::star::util::XCancellable,
54cdf0e10cSrcweir 												::com::sun::star::sdbc::XWarningsSupplier,
55cdf0e10cSrcweir 												::com::sun::star::sdbc::XCloseable,
56cdf0e10cSrcweir                                                 ::com::sun::star::lang::XInitialization,
57cdf0e10cSrcweir                                                 ::com::sun::star::lang::XServiceInfo,
58cdf0e10cSrcweir 												::com::sun::star::sdbc::XColumnLocate> ODatabaseMetaDataResultSet_BASE;
59cdf0e10cSrcweir 
60cdf0e10cSrcweir 	//	typedef ORefVector<ORowSetValue>	ORow;
61cdf0e10cSrcweir 	//	typedef ORefVector<ORow>			ORows;
62cdf0e10cSrcweir 
63cdf0e10cSrcweir 	class OOO_DLLPUBLIC_DBTOOLS ODatabaseMetaDataResultSet :
64cdf0e10cSrcweir                                         public comphelper::OBaseMutex,
65cdf0e10cSrcweir 										public	ODatabaseMetaDataResultSet_BASE,
66cdf0e10cSrcweir 										public	::comphelper::OPropertyContainer,
67cdf0e10cSrcweir 										public	::comphelper::OPropertyArrayUsageHelper<ODatabaseMetaDataResultSet>
68cdf0e10cSrcweir 	{
69cdf0e10cSrcweir 
70cdf0e10cSrcweir 	public:
71cdf0e10cSrcweir 		DECLARE_STL_VECTOR(ORowSetValueDecoratorRef,ORow);
72cdf0e10cSrcweir 		DECLARE_STL_VECTOR(ORow, ORows);
73cdf0e10cSrcweir 
74cdf0e10cSrcweir         enum MetaDataResultSetType
75cdf0e10cSrcweir         {
76cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getCatalogs
77cdf0e10cSrcweir             eCatalogs = 0,
78cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getSchemas
79cdf0e10cSrcweir             eSchemas = 1,
80cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getColumnPrivileges
81cdf0e10cSrcweir             eColumnPrivileges = 2,
82cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getColumns
83cdf0e10cSrcweir             eColumns = 3,
84cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getTables
85cdf0e10cSrcweir             eTables = 4,
86cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getTableTypes
87cdf0e10cSrcweir             eTableTypes = 5,
88cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getProcedureColumns
89cdf0e10cSrcweir             eProcedureColumns = 6,
90cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getProcedures
91cdf0e10cSrcweir             eProcedures = 7,
92cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getExportedKeys
93cdf0e10cSrcweir             eExportedKeys = 8,
94cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getImportedKeys
95cdf0e10cSrcweir             eImportedKeys = 9,
96cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getPrimaryKeys
97cdf0e10cSrcweir             ePrimaryKeys = 10,
98cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getIndexInfo
99cdf0e10cSrcweir             eIndexInfo = 11,
100cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getTablePrivileges
101cdf0e10cSrcweir             eTablePrivileges = 12,
102cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getCrossReference
103cdf0e10cSrcweir             eCrossReference = 13,
104cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getTypeInfo
105cdf0e10cSrcweir             eTypeInfo = 14,
106cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getBestRowIdentifier
107cdf0e10cSrcweir             eBestRowIdentifier = 15,
108cdf0e10cSrcweir             /// describes a result set as expected by XDatabaseMetaData::getVersionColumns
109cdf0e10cSrcweir             eVersionColumns = 16
110cdf0e10cSrcweir         };
111cdf0e10cSrcweir 
112cdf0e10cSrcweir 	private:
113cdf0e10cSrcweir 		ORowSetValue					m_aEmptyValue;
114cdf0e10cSrcweir         ::com::sun::star::uno::WeakReferenceHelper    m_aStatement;
115cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData>        m_xMetaData;
116cdf0e10cSrcweir 		sal_Int32						m_nColPos;
117cdf0e10cSrcweir 
118cdf0e10cSrcweir 		sal_Int32						m_nFetchSize;
119cdf0e10cSrcweir 		sal_Int32						m_nResultSetType;
120cdf0e10cSrcweir 		sal_Int32						m_nFetchDirection;
121cdf0e10cSrcweir 		sal_Int32						m_nResultSetConcurrency;
122cdf0e10cSrcweir 
123cdf0e10cSrcweir 		void construct();
124cdf0e10cSrcweir 		void checkIndex(sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException);
125cdf0e10cSrcweir         void setType(MetaDataResultSetType _eType);
126cdf0e10cSrcweir 
127cdf0e10cSrcweir 	protected:
128cdf0e10cSrcweir 		ORows							m_aRows;
129cdf0e10cSrcweir 		ORows::iterator					m_aRowsIter;
130cdf0e10cSrcweir 		sal_Bool						m_bBOF;
131cdf0e10cSrcweir         sal_Bool                        m_bEOF;
132cdf0e10cSrcweir 
133cdf0e10cSrcweir 		virtual const ORowSetValue& getValue(sal_Int32 columnIndex);
134cdf0e10cSrcweir 
135cdf0e10cSrcweir 		// OPropertyArrayUsageHelper
136cdf0e10cSrcweir 		virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
137cdf0e10cSrcweir 		// OPropertySetHelper
138cdf0e10cSrcweir 		virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
139cdf0e10cSrcweir 
140cdf0e10cSrcweir 		virtual ~ODatabaseMetaDataResultSet();
141cdf0e10cSrcweir 	public:
142cdf0e10cSrcweir 
143cdf0e10cSrcweir 		virtual void	SAL_CALL acquire() throw();
144cdf0e10cSrcweir 		virtual void	SAL_CALL release() throw();
145cdf0e10cSrcweir 
146cdf0e10cSrcweir         /// default construction
147cdf0e10cSrcweir 		ODatabaseMetaDataResultSet();
148cdf0e10cSrcweir         /// construction of a pre-defined result set type
149cdf0e10cSrcweir         ODatabaseMetaDataResultSet( MetaDataResultSetType _eType );
150cdf0e10cSrcweir 
151cdf0e10cSrcweir 		void setRows(const ORows& _rRows);
152cdf0e10cSrcweir 
153cdf0e10cSrcweir         // XServiceInfo
154cdf0e10cSrcweir 
155cdf0e10cSrcweir 		static ::rtl::OUString getImplementationName_Static(  ) throw(::com::sun::star::uno::RuntimeException);
156cdf0e10cSrcweir         static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(  ) throw (::com::sun::star::uno::RuntimeException);
157cdf0e10cSrcweir 
158cdf0e10cSrcweir     protected:
159cdf0e10cSrcweir         virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
160cdf0e10cSrcweir         virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
161cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
162cdf0e10cSrcweir 		// ::cppu::OComponentHelper
163cdf0e10cSrcweir 		virtual void SAL_CALL disposing(void);
164cdf0e10cSrcweir 		// XInterface
165cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
166cdf0e10cSrcweir 		//XTypeProvider
167cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
168cdf0e10cSrcweir 		// XPropertySet
169cdf0e10cSrcweir         virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
170cdf0e10cSrcweir 		// XResultSet
171cdf0e10cSrcweir         virtual sal_Bool SAL_CALL next(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
172cdf0e10cSrcweir         virtual sal_Bool SAL_CALL isBeforeFirst(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
173cdf0e10cSrcweir         virtual sal_Bool SAL_CALL isAfterLast(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
174cdf0e10cSrcweir         virtual sal_Bool SAL_CALL isFirst(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
175cdf0e10cSrcweir         virtual sal_Bool SAL_CALL isLast(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
176cdf0e10cSrcweir         virtual void SAL_CALL beforeFirst(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
177cdf0e10cSrcweir         virtual void SAL_CALL afterLast(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
178cdf0e10cSrcweir         virtual sal_Bool SAL_CALL first(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
179cdf0e10cSrcweir         virtual sal_Bool SAL_CALL last(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
180cdf0e10cSrcweir         virtual sal_Int32 SAL_CALL getRow(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
181cdf0e10cSrcweir         virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
182cdf0e10cSrcweir         virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
183cdf0e10cSrcweir         virtual sal_Bool SAL_CALL previous(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
184cdf0e10cSrcweir         virtual void SAL_CALL refreshRow(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
185cdf0e10cSrcweir         virtual sal_Bool SAL_CALL rowUpdated(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
186cdf0e10cSrcweir         virtual sal_Bool SAL_CALL rowInserted(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
187cdf0e10cSrcweir         virtual sal_Bool SAL_CALL rowDeleted(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
188cdf0e10cSrcweir         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);
189cdf0e10cSrcweir 		// XRow
190cdf0e10cSrcweir         virtual sal_Bool SAL_CALL wasNull(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
191cdf0e10cSrcweir         virtual ::rtl::OUString SAL_CALL getString( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
192cdf0e10cSrcweir         virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
193cdf0e10cSrcweir         virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
194cdf0e10cSrcweir         virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
195cdf0e10cSrcweir         virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
196cdf0e10cSrcweir         virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
197cdf0e10cSrcweir         virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
198cdf0e10cSrcweir         virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
199cdf0e10cSrcweir         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);
200cdf0e10cSrcweir         virtual ::com::sun::star::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
201cdf0e10cSrcweir         virtual ::com::sun::star::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
202cdf0e10cSrcweir         virtual ::com::sun::star::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
203cdf0e10cSrcweir         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);
204cdf0e10cSrcweir         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);
205cdf0e10cSrcweir         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);
206cdf0e10cSrcweir         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);
207cdf0e10cSrcweir         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);
208cdf0e10cSrcweir         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);
209cdf0e10cSrcweir         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);
210cdf0e10cSrcweir 		// XResultSetMetaDataSupplier
211cdf0e10cSrcweir         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);
212cdf0e10cSrcweir 		// XCancellable
213cdf0e10cSrcweir         virtual void SAL_CALL cancel(  ) throw(::com::sun::star::uno::RuntimeException);
214cdf0e10cSrcweir 		// XCloseable
215cdf0e10cSrcweir         virtual void SAL_CALL close(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
216cdf0e10cSrcweir 		// XWarningsSupplier
217cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL getWarnings(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
218cdf0e10cSrcweir         virtual void SAL_CALL clearWarnings(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
219cdf0e10cSrcweir 		// XColumnLocate
220cdf0e10cSrcweir         virtual sal_Int32 SAL_CALL findColumn( const ::rtl::OUString& columnName ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
221cdf0e10cSrcweir 
222cdf0e10cSrcweir         // XInitialization
223cdf0e10cSrcweir         virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
224cdf0e10cSrcweir 
225cdf0e10cSrcweir 		void setCatalogsMap();
226cdf0e10cSrcweir 		void setSchemasMap();
227cdf0e10cSrcweir 		void setColumnPrivilegesMap();
228cdf0e10cSrcweir 		void setColumnsMap();
229cdf0e10cSrcweir 		void setTablesMap();
230cdf0e10cSrcweir 		void setTableTypes();
231cdf0e10cSrcweir 		void setProcedureColumnsMap();
232cdf0e10cSrcweir 		void setProceduresMap();
233cdf0e10cSrcweir 		void setExportedKeysMap();
234cdf0e10cSrcweir 		void setImportedKeysMap();
235cdf0e10cSrcweir 		void setPrimaryKeysMap();
236cdf0e10cSrcweir 		void setIndexInfoMap();
237cdf0e10cSrcweir 		void setTablePrivilegesMap();
238cdf0e10cSrcweir 		void setCrossReferenceMap();
239cdf0e10cSrcweir 		void setTypeInfoMap();
240cdf0e10cSrcweir 		void setBestRowIdentifierMap();
241cdf0e10cSrcweir 		void setVersionColumnsMap();
242cdf0e10cSrcweir     public:
243cdf0e10cSrcweir 		// some methods to get already defined ORowSetValues
244cdf0e10cSrcweir 		// this increase the reuse of ORowSetValues
245cdf0e10cSrcweir 		/// return an empty ORowSetValueDecorator
246cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getEmptyValue();
247cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with 0 as value
248cdf0e10cSrcweir 		static ORowSetValueDecoratorRef get0Value();
249cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with 1 as value
250cdf0e10cSrcweir 		static ORowSetValueDecoratorRef get1Value();
251cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with ColumnSearch::BASIC as value
252cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getBasicValue();
253cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with string SELECT as value
254cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getSelectValue();
255cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with string INSERT as value
256cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getInsertValue();
257cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with string DELETE as value
258cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getDeleteValue();
259cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with string UPDATE as value
260cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getUpdateValue();
261cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with string CREATE as value
262cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getCreateValue();
263cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with string READ as value
264cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getReadValue();
265cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with string ALTER as value
266cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getAlterValue();
267cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with string DROP as value
268cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getDropValue();
269cdf0e10cSrcweir 		/// return an ORowSetValueDecorator with string ' as value
270cdf0e10cSrcweir 		static ORowSetValueDecoratorRef getQuoteValue();
271cdf0e10cSrcweir 
272cdf0e10cSrcweir 	};
273cdf0e10cSrcweir }
274cdf0e10cSrcweir #endif // _CONNECTIVITY_FDATABASEMETADATARESULTSET_HXX_
275cdf0e10cSrcweir 
276