LibreOffice Module connectivity (master) 1
Tables.hxx
Go to the documentation of this file.
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.
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
10#pragma once
11
12#include <com/sun/star/sdbc/XConnection.hpp>
13#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
14
16#include <utility>
17
19 {
20
26 {
27 protected:
28 css::uno::Reference< css::sdbc::XDatabaseMetaData >
30
31 static OUString createStandardColumnPart(const css::uno::Reference< css::beans::XPropertySet >& xColProp,const css::uno::Reference< com::sun::star::sdbc::XConnection>& _xConnection);
32
33 // OCollection
34 virtual void impl_refresh() override;
36 const OUString& rName) override;
37 virtual css::uno::Reference< css::beans::XPropertySet >
38 createDescriptor() override;
40 const OUString& rName,
41 const css::uno::Reference< css::beans::XPropertySet >& rDescriptor) override;
42
43 public:
44 Tables(css::uno::Reference< css::sdbc::XDatabaseMetaData > xMetaData,
45 ::cppu::OWeakObject& rParent,
46 ::osl::Mutex& rMutex,
47 ::std::vector< OUString> const & rNames) : sdbcx::OCollection(rParent, true, rMutex, rNames), m_xMetaData(std::move(xMetaData)) {}
48
49 // TODO: we should also implement XDataDescriptorFactory, XRefreshable,
50 // XAppend, etc., but all are optional.
51
52 // XDrop
53 virtual void dropObject(sal_Int32 nPosition, const OUString& rName) override;
54
55 void appendNew(const OUString& _rsNewTable);
56
57 };
58
59} // namespace connectivity::firebird
60
61/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
This implements com.sun.star.sdbcx.Container, which seems to be also known by the name of Tables and ...
Definition: Tables.hxx:26
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override
virtual ::connectivity::sdbcx::ObjectType createObject(const OUString &rName) override
virtual ::connectivity::sdbcx::ObjectType appendObject(const OUString &rName, const css::uno::Reference< css::beans::XPropertySet > &rDescriptor) override
appends an object described by a descriptor, under a given name
void appendNew(const OUString &_rsNewTable)
Definition: Tables.cxx:212
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
Definition: Tables.hxx:29
virtual void impl_refresh() override
virtual void dropObject(sal_Int32 nPosition, const OUString &rName) override
static OUString createStandardColumnPart(const css::uno::Reference< css::beans::XPropertySet > &xColProp, const css::uno::Reference< com::sun::star::sdbc::XConnection > &_xConnection)
Definition: Tables.cxx:74
Tables(css::uno::Reference< css::sdbc::XDatabaseMetaData > xMetaData, ::cppu::OWeakObject &rParent, ::osl::Mutex &rMutex, ::std::vector< OUString > const &rNames)
Definition: Tables.hxx:44
css::uno::Reference< css::beans::XPropertySet > ObjectType
Definition: VCollection.hxx:59