21#include <com/sun/star/beans/PropertyAttribute.hpp>
41OUString SAL_CALL OTable::getImplementationName( )
44 return "com.sun.star.sdbcx.VTableDescriptor";
45 return "com.sun.star.sdbcx.Table";
49css::uno::Sequence< OUString > SAL_CALL OTable::getSupportedServiceNames( )
51 return { isNew()?OUString(
"com.sun.star.sdbcx.TableDescriptor"):OUString(
"com.sun.star.sdbcx.Table") };
54sal_Bool SAL_CALL OTable::supportsService(
const OUString& _rServiceName )
69 const OUString& Name, OUString
Type,
70 OUString Description, OUString SchemaName,
73 ,m_CatalogName(
std::move(CatalogName))
74 ,m_SchemaName(
std::move(SchemaName))
75 ,m_Description(
std::move(Description))
90 sal_Int32 nAttrib =
isNew() ? 0 : PropertyAttribute::READONLY;
100 OTableDescriptor_BASE::acquire();
105 OTableDescriptor_BASE::release();
111 Any aRet = ODescriptor::queryInterface( rType);
119 aRet = OTableDescriptor_BASE::queryInterface( rType);
133 ODescriptor::disposing();
178 Reference< XIndexAccess > xKeys;
215 pTable->setNew(
true);
249 const OUString sOldComposedName =
getName();
250 const Reference< XDatabaseMetaData> xMetaData =
getMetaData();
251 if ( xMetaData.is() )
277 return ::cppu::OPropertySetHelper::createPropertySetInfo(
getInfoHelper());
283 OSL_ENSURE(
m_CatalogName.isEmpty(),
"getName(): forgot to override getName()!");
284 OSL_ENSURE(
m_SchemaName.isEmpty(),
"getName(): forgot to override getName()!");
::cppu::IPropertyArrayHelper * getArrayHelper(sal_Int32 nId)
void registerProperty(const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
void renameObject(const OUString &_sOldName, const OUString &_sNewName)
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
::cppu::IPropertyArrayHelper * doCreateArrayHelper() const
helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper
bool isCaseSensitive() const
virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getKeys() override
std::unique_ptr< OCollection > m_xIndexes
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual void SAL_CALL alterColumnByName(const OUString &colName, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override
virtual ~OTable() override
virtual OUString SAL_CALL getName() override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns() override
std::unique_ptr< OCollection > m_xKeys
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor() override
std::unique_ptr< OCollection > m_xColumns
OTable(OCollection *_pTables, bool _bCase)
virtual void SAL_CALL rename(const OUString &newName) override
virtual void construct() override
virtual void refreshKeys()
virtual void refreshColumns() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void refreshIndexes()
virtual ::cppu::IPropertyArrayHelper * createArrayHelper(sal_Int32 _nId) const override
virtual void SAL_CALL disposing() override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getIndexes() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > getMetaData() const
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL setName(const OUString &aName) override
virtual void SAL_CALL alterColumnByIndex(sal_Int32 index, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override
mutable::osl::Mutex m_aMutex
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
::cppu::WeakComponentImplHelper< css::sdbcx::XColumnsSupplier, css::sdbcx::XKeysSupplier, css::container::XNamed, css::lang::XServiceInfo > OTableDescriptor_BASE
void checkDisposed(bool _bThrow)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
OUString newName(std::u16string_view aNewPrefix, std::u16string_view aOldPrefix, std::u16string_view old_Name)
#define PROPERTY_ID_DESCRIPTION
#define PROPERTY_ID_CATALOGNAME
#define PROPERTY_ID_SCHEMANAME