LibreOffice Module connectivity (master) 1
Column.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#include "Column.hxx"
11
12#include <TConnection.hxx>
13
14using namespace connectivity;
15using namespace connectivity::firebird;
16using namespace connectivity::sdbcx;
17
19 : OColumn( true ) // case sensitive
20{
21 construct();
22}
23
25{
26 m_sAutoIncrement = "GENERATED BY DEFAULT AS IDENTITY";
30 0,
32 cppu::UnoType<decltype(m_sAutoIncrement)>::get()
33 );
34}
35
37{
38 return doCreateArrayHelper();
39}
40
42{
43 return *Column_PROP::getArrayHelper(isNew() ? 1 : 0);
44}
45
46css::uno::Sequence< OUString > SAL_CALL Column::getSupportedServiceNames( )
47{
48 return { "com.sun.star.sdbc.Firebird" };
49}
50
51/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
struct _ADOColumn Column
Definition: Awrapadox.hxx:40
::cppu::IPropertyArrayHelper * getArrayHelper(sal_Int32 nId)
void registerProperty(const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
::dbtools::OPropertyMap & getPropMap()
Definition: TConnection.cxx:68
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
Definition: Column.cxx:41
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: Column.cxx:46
virtual void construct() override
Definition: Column.cxx:24
virtual ::cppu::IPropertyArrayHelper * createArrayHelper(sal_Int32 _nId) const override
Definition: Column.cxx:36
::cppu::IPropertyArrayHelper * doCreateArrayHelper() const
helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper
Definition: VDescriptor.cxx:66
#define PROPERTY_ID_AUTOINCREMENTCREATION
Definition: propertyids.hxx:92