1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
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
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
27 css::uno::Reference
< css::sdbc::XDatabaseMetaData
>
30 static OUString
createStandardColumnPart(const css::uno::Reference
< css::beans::XPropertySet
>& xColProp
,const css::uno::Reference
< com::sun::star::sdbc::XConnection
>& _xConnection
);
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
;
43 Tables(const css::uno::Reference
< css::sdbc::XDatabaseMetaData
>& rMetaData
,
44 ::cppu::OWeakObject
& rParent
,
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.
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: */