LibreOffice Module connectivity (master) 1
mysqlc_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 "mysqlc_column.hxx"
11
12#include <TConnection.hxx>
13
15 : OColumn(true) // case sensitive
16{
17 construct();
18}
19
21{
22 m_sAutoIncrement = "auto_increment";
23 registerProperty(
25 PROPERTY_ID_AUTOINCREMENTCREATION, 0, &m_sAutoIncrement,
26 cppu::UnoType<decltype(m_sAutoIncrement)>::get());
27}
28
31{
32 return doCreateArrayHelper();
33}
34
36{
37 return *Column_PROP::getArrayHelper(isNew() ? 1 : 0);
38}
39
40css::uno::Sequence<OUString> SAL_CALL connectivity::mysqlc::Column::getSupportedServiceNames()
41{
42 return { "com.sun.star.sdbcx.Column" };
43}
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
::cppu::IPropertyArrayHelper * getArrayHelper(sal_Int32 nId)
::dbtools::OPropertyMap & getPropMap()
Definition: TConnection.cxx:68
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void construct() override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper(sal_Int32 _nId) const override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
#define PROPERTY_ID_AUTOINCREMENTCREATION
Definition: propertyids.hxx:92