23#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
24#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
25#include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
26#include <com/sun/star/sdbcx/XIndexesSupplier.hpp>
27#include <com/sun/star/sdbcx/XKeysSupplier.hpp>
28#include <com/sun/star/sdbcx/XRename.hpp>
29#include <com/sun/star/sdbcx/XAlterTable.hpp>
30#include <com/sun/star/lang/XServiceInfo.hpp>
31#include <com/sun/star/lang/XUnoTunnel.hpp>
32#include <com/sun/star/sdbc/XConnection.hpp>
43 typedef ::cppu::WeakComponentImplHelper< css::sdbcx::XColumnsSupplier,
44 css::sdbcx::XKeysSupplier,
45 css::container::XNamed,
46 css::lang::XServiceInfo,
47 css::sdbcx::XDataDescriptorFactory,
48 css::sdbcx::XIndexesSupplier,
50 css::lang::XUnoTunnel,
65 css::uno::Reference< css::sdbcx::XColumnsSupplier >
m_xTable;
68 css::uno::Reference< css::sdbc::XDatabaseMetaData >
m_xMetaData;
75 std::unique_ptr<::connectivity::sdbcx::OCollection>
m_pColumns;
81 virtual void columnAppended(
const css::uno::Reference< css::beans::XPropertySet >& _rxSourceDescriptor )
override;
86 virtual ::cppu::IPropertyArrayHelper*
createArrayHelper(sal_Int32 _nId)
const override;
87 virtual ::cppu::IPropertyArrayHelper & SAL_CALL
getInfoHelper()
override;
91 css::uno::Any & rConvertedValue,
92 css::uno::Any & rOldValue,
94 const css::uno::Any& rValue )
override;
95 virtual void SAL_CALL
getFastPropertyValue(css::uno::Any& rValue, sal_Int32 nHandle)
const override;
98 const css::uno::Any& rValue
112 const css::uno::Reference< css::sdbc::XConnection >& _rxConn,
113 const css::uno::Reference< css::sdbcx::XColumnsSupplier >& _rxTable,
114 const css::uno::Reference< css::util::XNumberFormatsSupplier >& _rxNumberFormats,
115 const css::uno::Reference< css::container::XNameAccess >& _rxColumnDefinitions
122 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
override;
123 virtual void SAL_CALL
acquire() noexcept override;
124 virtual
void SAL_CALL
release() noexcept override;
130 virtual
void SAL_CALL
disposing() override;
137 virtual
void SAL_CALL
rename( const OUString& _rNewName ) override;
140 virtual
void SAL_CALL
alterColumnByName( const OUString& _rName, const css::
uno::Reference< css::beans::XPropertySet >& _rxDescriptor ) override;
141 virtual
void SAL_CALL
alterColumnByIndex( sal_Int32 _nIndex, const css::
uno::Reference< css::beans::XPropertySet >& _rxDescriptor ) override;
144 virtual OUString SAL_CALL
getName() override;
145 virtual
void SAL_CALL
setName( const OUString& aName ) override;
151 virtual css::
uno::Reference< css::container::XNameAccess > SAL_CALL
getColumns( ) override;
153 virtual css::
uno::Reference< css::container::XIndexAccess > SAL_CALL
getKeys( ) override;
155 virtual css::
uno::Reference< css::container::XNameAccess > SAL_CALL
getIndexes( ) override;
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper(sal_Int32 _nId) const override
virtual void SAL_CALL acquire() noexcept override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getIndexes() override
virtual void SAL_CALL setName(const OUString &aName) override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual void SAL_CALL release() noexcept override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId()
virtual css::uno::Reference< css::beans::XPropertySet > createColumnDescriptor() override
creates a column descriptor object.
css::uno::Reference< css::sdbc::XConnection > m_xConnection
virtual void refreshColumns() override
virtual void SAL_CALL rename(const OUString &_rNewName) override
virtual OUString SAL_CALL getName() override
virtual void SAL_CALL disposing() override
css::uno::Reference< css::util::XNumberFormatsSupplier > m_xNumberFormats
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
css::uno::Reference< css::container::XContainerListener > m_xColumnMediator
virtual ~ODBTableDecorator() override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns() override
css::uno::Reference< css::container::XNameAccess > m_xColumnDefinitions
ODBTableDecorator(const css::uno::Reference< css::sdbc::XConnection > &_rxConn, const css::uno::Reference< css::sdbcx::XColumnsSupplier > &_rxTable, const css::uno::Reference< css::util::XNumberFormatsSupplier > &_rxNumberFormats, const css::uno::Reference< css::container::XNameAccess > &_rxColumnDefinitions)
constructs a wrapper supporting the com.sun.star.sdb.Table service.
std::unique_ptr<::connectivity::sdbcx::OCollection > m_pColumns
virtual rtl::Reference< OColumn > createColumn(const OUString &_rName) const override
creates an OColumn object which should represent the column with a given name
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual void SAL_CALL alterColumnByIndex(sal_Int32 _nIndex, const css::uno::Reference< css::beans::XPropertySet > &_rxDescriptor) override
virtual void SAL_CALL alterColumnByName(const OUString &_rName, const css::uno::Reference< css::beans::XPropertySet > &_rxDescriptor) override
css::uno::Reference< css::sdbcx::XColumnsSupplier > m_xTable
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor() override
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &aIdentifier) override
virtual void columnAppended(const css::uno::Reference< css::beans::XPropertySet > &_rxSourceDescriptor) override
notifies that a column, created from a column descriptor, has been appended
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
virtual void columnDropped(const OUString &_sName) override
notifies that a column with a given name has been dropped
virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getKeys() override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
void fillPrivileges() const
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
::cppu::WeakComponentImplHelper< css::sdbcx::XColumnsSupplier, css::sdbcx::XKeysSupplier, css::container::XNamed, css::lang::XServiceInfo, css::sdbcx::XDataDescriptorFactory, css::sdbcx::XIndexesSupplier, css::sdbcx::XRename, css::lang::XUnoTunnel, css::sdbcx::XAlterTable > OTableDescriptor_BASE
::comphelper::OIdPropertyArrayUsageHelper< ODBTableDecorator > ODBTableDecorator_PROP