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 <sal/config.h>
14 #include <string_view>
18 #include <connectivity/TTableHelper.hxx>
20 namespace connectivity::firebird
24 * Implements sdbcx.Table. We don't support table renaming (XRename)
25 * hence the appropriate methods are overridden.
27 class Table
: public OTableHelper
30 ::osl::Mutex
& m_rMutex
;
31 sal_Int32 m_nPrivileges
;
34 * Get the ALTER TABLE [TABLE] ALTER [COLUMN] String.
35 * Includes a trailing space.
37 OUString
getAlterTableColumn(std::u16string_view rColumn
);
40 void construct() override
;
43 Table(Tables
* pTables
,
45 const css::uno::Reference
< css::sdbc::XConnection
>& _xConnection
);
46 Table(Tables
* pTables
,
48 const css::uno::Reference
< css::sdbc::XConnection
>& _xConnection
,
49 const OUString
& rName
,
50 const OUString
& rType
,
51 const OUString
& rDescription
);
54 virtual ::connectivity::sdbcx::OCollection
* createColumns(
55 const ::std::vector
< OUString
>& rNames
) override
;
56 virtual ::connectivity::sdbcx::OCollection
* createKeys(
57 const ::std::vector
< OUString
>& rNames
) override
;
58 virtual ::connectivity::sdbcx::OCollection
* createIndexes(
59 const ::std::vector
< OUString
>& rNames
) override
;
63 * See css::sdbcx::ColumnDescriptor for details of
66 virtual void SAL_CALL
alterColumnByName(
67 const OUString
& rColName
,
68 const css::uno::Reference
< css::beans::XPropertySet
>& rDescriptor
) override
;
70 // XRename -- UNSUPPORTED
71 virtual void SAL_CALL
rename(const OUString
& sName
) override
;
75 SAL_CALL
queryInterface(const css::uno::Type
& rType
) override
;
78 virtual css::uno::Sequence
< css::uno::Type
>
79 SAL_CALL
getTypes() override
;
83 } // namespace connectivity::firebird
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */