bump product version to 4.1.6.2
[LibreOffice.git] / connectivity / source / drivers / hsqldb / HColumns.cxx
blob07e3fb47aecf2cd9ed6642841953f6a2a470130c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "hsqldb/HColumns.hxx"
21 #include "TConnection.hxx"
24 using namespace ::comphelper;
25 using namespace connectivity::hsqldb;
26 using namespace connectivity::sdbcx;
27 using namespace connectivity;
28 using namespace ::com::sun::star::uno;
29 using namespace ::com::sun::star::beans;
30 using namespace ::com::sun::star::sdbcx;
31 using namespace ::com::sun::star::sdbc;
32 using namespace ::com::sun::star::container;
33 using namespace ::com::sun::star::lang;
35 OHSQLColumns::OHSQLColumns( ::cppu::OWeakObject& _rParent
36 ,sal_Bool _bCase
37 ,::osl::Mutex& _rMutex
38 ,const TStringVector &_rVector
39 ,sal_Bool _bUseHardRef
40 ) : OColumnsHelper(_rParent,_bCase,_rMutex,_rVector,_bUseHardRef)
43 // -----------------------------------------------------------------------------
44 Reference< XPropertySet > OHSQLColumns::createDescriptor()
46 return new OHSQLColumn(sal_True);
48 // -----------------------------------------------------------------------------
49 // -----------------------------------------------------------------------------
50 OHSQLColumn::OHSQLColumn( sal_Bool _bCase)
51 : connectivity::sdbcx::OColumn( _bCase )
53 construct();
55 // -------------------------------------------------------------------------
56 void OHSQLColumn::construct()
58 m_sAutoIncrement = OUString("IDENTITY");
59 registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_AUTOINCREMENTCREATION),PROPERTY_ID_AUTOINCREMENTCREATION,0,&m_sAutoIncrement, ::getCppuType(&m_sAutoIncrement));
61 // -----------------------------------------------------------------------------
62 ::cppu::IPropertyArrayHelper* OHSQLColumn::createArrayHelper( sal_Int32 /*_nId*/ ) const
64 return doCreateArrayHelper();
66 // -----------------------------------------------------------------------------
67 ::cppu::IPropertyArrayHelper & SAL_CALL OHSQLColumn::getInfoHelper()
69 return *OHSQLColumn_PROP::getArrayHelper(isNew() ? 1 : 0);
71 // -----------------------------------------------------------------------------
72 Sequence< OUString > SAL_CALL OHSQLColumn::getSupportedServiceNames( ) throw(RuntimeException)
74 Sequence< OUString > aSupported(1);
75 aSupported[0] = OUString("com.sun.star.sdbcx.Column");
77 return aSupported;
79 // -----------------------------------------------------------------------------
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */