bump product version to 7.2.5.1
[LibreOffice.git] / connectivity / source / drivers / firebird / Tables.hxx
blobd7fe019ef2a66139121ebc8ac952b0210e2553d1
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.
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 */
10 #pragma once
12 #include <com/sun/star/sdbc/XConnection.hpp>
13 #include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
15 #include <connectivity/sdbcx/VCollection.hxx>
17 namespace connectivity::firebird
20 /**
21 * This implements com.sun.star.sdbcx.Container, which seems to be
22 * also known by the name of Tables and Collection.
24 class Tables: public ::connectivity::sdbcx::OCollection
26 protected:
27 css::uno::Reference< css::sdbc::XDatabaseMetaData >
28 m_xMetaData;
30 static OUString createStandardColumnPart(const css::uno::Reference< css::beans::XPropertySet >& xColProp,const css::uno::Reference< com::sun::star::sdbc::XConnection>& _xConnection);
32 // OCollection
33 virtual void impl_refresh() override;
34 virtual ::connectivity::sdbcx::ObjectType createObject(
35 const OUString& rName) override;
36 virtual css::uno::Reference< css::beans::XPropertySet >
37 createDescriptor() override;
38 virtual ::connectivity::sdbcx::ObjectType appendObject(
39 const OUString& rName,
40 const css::uno::Reference< css::beans::XPropertySet >& rDescriptor) override;
42 public:
43 Tables(const css::uno::Reference< css::sdbc::XDatabaseMetaData >& rMetaData,
44 ::cppu::OWeakObject& rParent,
45 ::osl::Mutex& rMutex,
46 ::std::vector< OUString> const & rNames) : sdbcx::OCollection(rParent, true, rMutex, rNames), m_xMetaData(rMetaData) {}
48 // TODO: we should also implement XDataDescriptorFactory, XRefreshable,
49 // XAppend, etc., but all are optional.
51 // XDrop
52 virtual void dropObject(sal_Int32 nPosition, const OUString& rName) override;
56 } // namespace connectivity::firebird
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */