xref: /trunk/main/dbaccess/source/core/api/CIndexes.hxx (revision 2e2212a7)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef DBACCESS_INDEXES_HXX_
25 #define DBACCESS_INDEXES_HXX_
26 
27 #ifndef CONNECTIVITY_INDEXESHELPER_HXX
28 #include "connectivity/TIndexes.hxx"
29 #endif
30 
31 namespace dbaccess
32 {
33 	class OIndexes : public connectivity::OIndexesHelper
34 	{
35 		::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xIndexes;
36 	protected:
37         virtual connectivity::sdbcx::ObjectType createObject(const ::rtl::OUString& _rName);
38         virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createDescriptor();
39         virtual connectivity::sdbcx::ObjectType appendObject( const ::rtl::OUString& _rForName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor );
40 		virtual void dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName);
41 	public:
OIndexes(connectivity::OTableHelper * _pTable,::osl::Mutex & _rMutex,const::std::vector<::rtl::OUString> & _rVector,const::com::sun::star::uno::Reference<::com::sun::star::container::XNameAccess> & _rxIndexes)42 		OIndexes(connectivity::OTableHelper* _pTable,
43 				 ::osl::Mutex& _rMutex,
44 				 const ::std::vector< ::rtl::OUString> &_rVector,
45 				 const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxIndexes
46 				 ) : connectivity::OIndexesHelper(_pTable,_rMutex,_rVector)
47 			,m_xIndexes(_rxIndexes)
48 		{}
49 
50 		virtual void SAL_CALL disposing(void);
51 	};
52 }
53 
54 #endif // DBACCESS_INDEXES_HXX_
55