bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / connectivity / sdbcx / VIndex.hxx
blobecfced63e18aee8904674466af2b685310648ab0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_CONNECTIVITY_SDBCX_VINDEX_HXX
21 #define INCLUDED_CONNECTIVITY_SDBCX_VINDEX_HXX
23 #include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
24 #include <comphelper/IdPropArrayHelper.hxx>
25 #include <cppuhelper/basemutex.hxx>
26 #include <connectivity/CommonTools.hxx>
27 #include <connectivity/sdbcx/VTypeDef.hxx>
28 #include <connectivity/sdbcx/IRefreshable.hxx>
29 #include <connectivity/sdbcx/VDescriptor.hxx>
30 #include <connectivity/dbtoolsdllapi.hxx>
31 #include <cppuhelper/implbase1.hxx>
33 namespace connectivity
35 namespace sdbcx
37 class OCollection;
38 class OIndex;
39 typedef ::cppu::ImplHelper1< css::sdbcx::XDataDescriptorFactory > OIndex_BASE;
40 typedef ::comphelper::OIdPropertyArrayUsageHelper<OIndex> OIndex_PROP;
42 class OOO_DLLPUBLIC_DBTOOLS OIndex :
43 public cppu::BaseMutex,
44 public ODescriptor_BASE,
45 public IRefreshableColumns,
46 public OIndex_PROP,
47 public ODescriptor,
48 public OIndex_BASE
50 protected:
51 OUString m_Catalog;
52 bool m_IsUnique;
53 bool m_IsPrimaryKeyIndex;
54 bool m_IsClustered;
56 // no Reference! see OCollection::acquire
57 std::unique_ptr<OCollection> m_pColumns;
59 using ODescriptor_BASE::rBHelper;
60 virtual void refreshColumns() override;
61 // OPropertyArrayUsageHelper
62 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const override;
63 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
64 public:
65 OIndex(bool _bCase);
66 OIndex( const OUString& Name,
67 const OUString& Catalog,
68 bool _isUnique,
69 bool _isPrimaryKeyIndex,
70 bool _isClustered,
71 bool _bCase);
73 virtual ~OIndex( ) override;
75 DECLARE_SERVICE_INFO();
77 //XInterface
78 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
79 virtual void SAL_CALL acquire() throw() override;
80 virtual void SAL_CALL release() throw() override;
81 //XTypeProvider
82 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
83 // ODescriptor
84 virtual void construct() override;
85 // ::cppu::OComponentHelper
86 virtual void SAL_CALL disposing() override;
87 // XPropertySet
88 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
89 // XColumnsSupplier
90 virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns( ) override;
92 // XNamed
93 virtual OUString SAL_CALL getName( ) override;
94 virtual void SAL_CALL setName( const OUString& aName ) override;
95 // XDataDescriptorFactory
96 virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor( ) override;
101 #endif // INCLUDED_CONNECTIVITY_SDBCX_VINDEX_HXX
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */