LibreOffice Module connectivity (master) 1
VIndex.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
20#pragma once
21
22#include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
26#include <sdbcx/VTypeDef.hxx>
31
32namespace connectivity::sdbcx
33 {
34 class OCollection;
35 class OIndex;
36 typedef ::cppu::ImplHelper1< css::sdbcx::XDataDescriptorFactory > OIndex_BASE;
37 typedef ::comphelper::OIdPropertyArrayUsageHelper<OIndex> OIndex_PROP;
38
40 public cppu::BaseMutex,
41 public ODescriptor_BASE,
43 public OIndex_PROP,
44 public ODescriptor,
45 public OIndex_BASE
46 {
47 protected:
48 OUString m_Catalog;
52
53 // no Reference! see OCollection::acquire
54 std::unique_ptr<OCollection> m_pColumns;
55
56 using ODescriptor_BASE::rBHelper;
57 virtual void refreshColumns() override;
58 // OPropertyArrayUsageHelper
59 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const override;
60 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
61 public:
62 OIndex(bool _bCase);
63 OIndex( const OUString& Name,
64 OUString Catalog,
65 bool _isUnique,
66 bool _isPrimaryKeyIndex,
67 bool _isClustered,
68 bool _bCase);
69
70 virtual ~OIndex( ) override;
71
73
74 //XInterface
75 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
76 virtual void SAL_CALL acquire() noexcept override;
77 virtual void SAL_CALL release() noexcept override;
78 //XTypeProvider
79 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
80 // ODescriptor
81 virtual void construct() override;
82 // ::cppu::OComponentHelper
83 virtual void SAL_CALL disposing() override;
84 // XPropertySet
85 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
86 // XColumnsSupplier
87 virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns( ) override;
88
89 // XNamed
90 virtual OUString SAL_CALL getName( ) override;
91 virtual void SAL_CALL setName( const OUString& aName ) override;
92 // XDataDescriptorFactory
93 virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor( ) override;
94 };
95
96}
97
98/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< OCollection > m_pColumns
Definition: VIndex.hxx:54
#define OOO_DLLPUBLIC_DBTOOLS
Type
::cppu::ImplHelper1< css::sdbcx::XDataDescriptorFactory > OIndex_BASE
Definition: VIndex.hxx:35
cppu::WeakComponentImplHelper< css::sdbcx::XColumnsSupplier, css::container::XNamed, css::lang::XServiceInfo > ODescriptor_BASE
Definition: VTypeDef.hxx:31
::comphelper::OIdPropertyArrayUsageHelper< OIndex > OIndex_PROP
Definition: VIndex.hxx:37
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)