build fix
[LibreOffice.git] / connectivity / source / drivers / firebird / Column.cxx
blob38c367cfcc43969fc64a2201d8235a936a03b170
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/.
8 */
10 #include "Columns.hxx"
11 #include "Column.hxx"
13 #include "TConnection.hxx"
15 using namespace connectivity;
16 using namespace connectivity::firebird;
17 using namespace connectivity::sdbcx;
19 Column::Column()
20 : OColumn( true ) // case sensitive
22 construct();
25 void Column::construct()
27 OColumn::construct();
28 m_sAutoIncrement = "GENERATED BY DEFAULT AS IDENTITY";
29 registerProperty(OMetaConnection::getPropMap().getNameByIndex(
30 PROPERTY_ID_AUTOINCREMENTCREATION),
31 PROPERTY_ID_AUTOINCREMENTCREATION,
33 &m_sAutoIncrement,
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" };
52 return aSupported;
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */