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 _CONNECTIVITY_SDBCX_INDEXCOLUMN_HXX_
25 #define _CONNECTIVITY_SDBCX_INDEXCOLUMN_HXX_
26 
27 #include "connectivity/dbtoolsdllapi.hxx"
28 #include "connectivity/sdbcx/VColumn.hxx"
29 
30 namespace connectivity
31 {
32 	namespace sdbcx
33 	{
34 		class OIndexColumn;
35 		typedef ::comphelper::OIdPropertyArrayUsageHelper<OIndexColumn> OIndexColumn_PROP;
36 
37 		class OOO_DLLPUBLIC_DBTOOLS OIndexColumn :
38             public OColumn, public OIndexColumn_PROP
39 		{
40 		protected:
41 			sal_Bool	m_IsAscending;
42 			virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const;
43 			virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
44 		public:
45 			OIndexColumn(	sal_Bool _bCase);
46 			OIndexColumn(	sal_Bool _IsAscending,
47 							const ::rtl::OUString& _Name,
48 							const ::rtl::OUString& _TypeName,
49 							const ::rtl::OUString& _DefaultValue,
50 							sal_Int32		_IsNullable,
51 							sal_Int32		_Precision,
52 							sal_Int32		_Scale,
53 							sal_Int32		_Type,
54 							sal_Bool		_IsAutoIncrement,
55 							sal_Bool		_IsRowVersion,
56 							sal_Bool		_IsCurrency,
57 							sal_Bool		_bCase);
58 
59 			virtual void construct();
60 			DECLARE_SERVICE_INFO();
61 		};
62 	}
63 }
64 #endif // _CONNECTIVITY_SDBCX_INDEXCOLUMN_HXX_
65 
66