LibreOffice Module connectivity (master) 1
VIndexColumn.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
21#include <com/sun/star/beans/PropertyAttribute.hpp>
23#include <TConnection.hxx>
24
25using namespace connectivity;
26using namespace connectivity::sdbcx;
27using namespace ::com::sun::star::beans;
28using namespace ::com::sun::star::uno;
29
30OUString SAL_CALL OIndexColumn::getImplementationName( )
31{
32 if(isNew())
33 return "com.sun.star.sdbcx.VIndexColumnDescriptor";
34 return "com.sun.star.sdbcx.VIndexColumn";
35}
36
37css::uno::Sequence< OUString > SAL_CALL OIndexColumn::getSupportedServiceNames( )
38{
39 return { isNew()?OUString("com.sun.star.sdbcx.IndexColumnDescriptor"):OUString("com.sun.star.sdbcx.IndexColumn") };
40}
41
42sal_Bool SAL_CALL OIndexColumn::supportsService( const OUString& _rServiceName )
43{
44 return cppu::supportsService(this, _rServiceName);
45}
46
48{
49 construct();
50}
51
52
54 const OUString& Name,
55 const OUString& TypeName,
56 const OUString& DefaultValue,
57 sal_Int32 IsNullable,
58 sal_Int32 Precision,
59 sal_Int32 Scale,
60 sal_Int32 Type,
61 bool _bCase,
62 const OUString& CatalogName,
63 const OUString& SchemaName,
64 const OUString& TableName
65 ) : OColumn(Name,
66 TypeName,
67 DefaultValue,
68 OUString(),
69 IsNullable,
70 Precision,
71 Scale,
72 Type,
73 false/*IsAutoIncrement*/,
74 false/*IsRowVersion*/,
75 false/*IsCurrency*/,
76 _bCase,
77 CatalogName,
78 SchemaName,
79 TableName)
80 , m_IsAscending(IsAscending)
81{
82 construct();
83}
84
86{
87 return doCreateArrayHelper();
88}
89
91{
93}
94
96{
97 sal_Int32 nAttrib = isNew() ? 0 : PropertyAttribute::READONLY;
99}
100
101
102/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::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
::cppu::IPropertyArrayHelper * doCreateArrayHelper() const
helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper
Definition: VDescriptor.cxx:66
virtual ::cppu::IPropertyArrayHelper * createArrayHelper(sal_Int32 _nId) const override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual void construct() override
Type
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
#define PROPERTY_ID_ISASCENDING
Definition: propertyids.hxx:68
OUString Name
unsigned char sal_Bool