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 #ifndef CONNECTIVITY_HSQLDB_COLUMN_HXX 24 #define CONNECTIVITY_HSQLDB_COLUMN_HXX 25 #include "connectivity/TColumnsHelper.hxx" 26 #include "connectivity/sdbcx/VColumn.hxx" 27 28 namespace connectivity 29 { 30 namespace hsqldb 31 { 32 class OHSQLColumns : public OColumnsHelper 33 { 34 protected: 35 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createDescriptor(); 36 public: 37 OHSQLColumns( ::cppu::OWeakObject& _rParent 38 ,sal_Bool _bCase 39 ,::osl::Mutex& _rMutex 40 ,const TStringVector &_rVector 41 ,sal_Bool _bUseHardRef = sal_True 42 ); 43 }; 44 45 class OHSQLColumn; 46 typedef sdbcx::OColumn OHSQLColumn_BASE; 47 typedef ::comphelper::OIdPropertyArrayUsageHelper<OHSQLColumn> OHSQLColumn_PROP; 48 49 class OHSQLColumn : public OHSQLColumn_BASE, 50 public OHSQLColumn_PROP 51 { 52 ::rtl::OUString m_sAutoIncrement; 53 protected: 54 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const; 55 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper(); 56 57 public: 58 OHSQLColumn(sal_Bool _bCase); 59 virtual void construct(); 60 61 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException); 62 }; 63 } 64 } 65 #endif // CONNECTIVITY_HSQLDB_COLUMN_HXX 66 67