1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #include "Columns.hxx"
13 #include "TConnection.hxx"
15 using namespace connectivity
;
16 using namespace connectivity::firebird
;
17 using namespace connectivity::sdbcx
;
20 : OColumn( true ) // case sensitive
25 void Column::construct()
28 m_sAutoIncrement
= "GENERATED BY DEFAULT AS IDENTITY";
29 registerProperty(OMetaConnection::getPropMap().getNameByIndex(
30 PROPERTY_ID_AUTOINCREMENTCREATION
),
31 PROPERTY_ID_AUTOINCREMENTCREATION
,
34 cppu::UnoType
<decltype(m_sAutoIncrement
)>::get()
38 ::cppu::IPropertyArrayHelper
* Column::createArrayHelper( sal_Int32
/*_nId*/ ) const
40 return doCreateArrayHelper();
43 ::cppu::IPropertyArrayHelper
& SAL_CALL
Column::getInfoHelper()
45 return *Column_PROP::getArrayHelper(isNew() ? 1 : 0);
48 css::uno::Sequence
< OUString
> SAL_CALL
Column::getSupportedServiceNames( ) throw(css::uno::RuntimeException
, std::exception
)
50 css::uno::Sequence
< OUString
> aSupported
{ "com.sun.star.sdbc.Firebird" };
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */