LibreOffice Module connectivity (master) 1
VColumn.hxx
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#ifndef INCLUDED_CONNECTIVITY_SDBCX_VCOLUMN_HXX
20#define INCLUDED_CONNECTIVITY_SDBCX_VCOLUMN_HXX
21
22#include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
23#include <com/sun/star/container/XNamed.hpp>
31#include <com/sun/star/lang/XServiceInfo.hpp>
32
33namespace connectivity::sdbcx
34 {
35 class OColumn;
36 typedef ::comphelper::OIdPropertyArrayUsageHelper<OColumn> OColumn_PROP;
37
38 typedef ::cppu::WeakComponentImplHelper< css::container::XNamed,
39 css::lang::XServiceInfo> OColumnDescriptor_BASE;
40 typedef ::cppu::ImplHelper1< css::sdbcx::XDataDescriptorFactory > OColumn_BASE;
41
42
44 public cppu::BaseMutex,
45 public OColumn_BASE,
47 public OColumn_PROP,
48 public ODescriptor
49 {
50 protected:
51 OUString m_TypeName;
52 OUString m_Description;
54
55 sal_Int32 m_IsNullable;
56 sal_Int32 m_Precision;
57 sal_Int32 m_Scale;
58 sal_Int32 m_Type;
59
63
64 OUString m_CatalogName;
65 OUString m_SchemaName;
66 OUString m_TableName;
67
68 using OColumnDescriptor_BASE::rBHelper;
69 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const override;
70 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
71
72 virtual ~OColumn() override;
73 public:
74 virtual void SAL_CALL acquire() noexcept override;
75 virtual void SAL_CALL release() noexcept override;
76
77 OColumn( bool _bCase);
78 OColumn( const OUString& Name,
79 OUString TypeName,
80 OUString DefaultValue,
81 OUString Description,
82 sal_Int32 IsNullable,
83 sal_Int32 Precision,
84 sal_Int32 Scale,
85 sal_Int32 Type,
86 bool IsAutoIncrement,
87 bool IsRowVersion,
88 bool IsCurrency,
89 bool _bCase,
90 OUString CatalogName,
91 OUString SchemaName,
92 OUString TableName);
93
95 //XInterface
96 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
97 //XTypeProvider
98 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
99 // ODescriptor
100 virtual void construct() override;
101 // ::cppu::OComponentHelper
102 virtual void SAL_CALL disposing() override;
103 // XPropertySet
104 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
105 // XNamed
106 virtual OUString SAL_CALL getName( ) override;
107 virtual void SAL_CALL setName( const OUString& aName ) override;
108 // XDataDescriptorFactory
109 virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor( ) override;
110 };
111
112}
113
114#endif // INCLUDED_CONNECTIVITY_SDBCX_VCOLUMN_HXX
115
116/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define DECLARE_SERVICE_INFO()
virtual void SAL_CALL acquire() noexcept override
virtual ~OColumn() override
#define OOO_DLLPUBLIC_DBTOOLS
Type
::cppu::WeakComponentImplHelper< css::container::XNamed, css::lang::XServiceInfo > OColumnDescriptor_BASE
Definition: VColumn.hxx:39
::comphelper::OIdPropertyArrayUsageHelper< OColumn > OColumn_PROP
Definition: VColumn.hxx:35
::cppu::ImplHelper1< css::sdbcx::XDataDescriptorFactory > OColumn_BASE
Definition: VColumn.hxx:40