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_KEYCOLUMN_HXX_
25 #define _CONNECTIVITY_SDBCX_KEYCOLUMN_HXX_
26 
27 #include "connectivity/dbtoolsdllapi.hxx"
28 #include "connectivity/sdbcx/VColumn.hxx"
29 
30 namespace connectivity
31 {
32 	namespace sdbcx
33 	{
34 		class OKeyColumn;
35 		typedef ::comphelper::OIdPropertyArrayUsageHelper<OKeyColumn> OKeyColumn_PROP;
36 
37 		class OOO_DLLPUBLIC_DBTOOLS OKeyColumn :
38             public OColumn, public OKeyColumn_PROP
39 		{
40 		protected:
41 			::rtl::OUString	m_ReferencedColumn;
42 			virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const;
43 			virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
44 		public:
45 			OKeyColumn(sal_Bool _bCase);
46 			OKeyColumn(	const ::rtl::OUString& _ReferencedColumn,
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 			// just to make it not inline
59 			virtual ~OKeyColumn();
60 
61 			virtual void construct();
62 			DECLARE_SERVICE_INFO();
63 		};
64 	}
65 }
66 #endif // _CONNECTIVITY_SDBCX_KEYCOLUMN_HXX_
67 
68