LibreOffice Module connectivity (master) 1
|
#include <VTable.hxx>
Public Member Functions | |
OTable (OCollection *_pTables, bool _bCase) | |
OTable (OCollection *_pTables, bool _bCase, const OUString &Name, OUString Type, OUString Description=OUString(), OUString SchemaName=OUString(), OUString CatalogName=OUString()) | |
virtual | ~OTable () override |
DECLARE_SERVICE_INFO () | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual void | construct () override |
virtual void | refreshColumns () override |
virtual void | refreshKeys () |
virtual void | refreshIndexes () |
virtual void SAL_CALL | disposing () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getColumns () override |
virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL | getKeys () override |
virtual OUString SAL_CALL | getName () override |
virtual void SAL_CALL | setName (const OUString &aName) override |
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL | createDataDescriptor () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getIndexes () override |
virtual void SAL_CALL | rename (const OUString &newName) override |
virtual void SAL_CALL | alterColumnByName (const OUString &colName, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override |
virtual void SAL_CALL | alterColumnByIndex (sal_Int32 index, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override |
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > | getMetaData () const |
Public Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 > | |
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 |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
virtual void | refreshColumns ()=0 |
Public Member Functions inherited from comphelper::OIdPropertyArrayUsageHelper< class TYPE > | |
OIdPropertyArrayUsageHelper () | |
virtual | ~OIdPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper (sal_Int32 nId) |
Public Member Functions inherited from connectivity::sdbcx::ODescriptor | |
ODescriptor (::cppu::OBroadcastHelper &_rBHelper, bool _bCase, bool _bNew=false) | |
virtual | ~ODescriptor () override |
bool | isNew () const |
void | setNew (bool _bNew) |
bool | isCaseSensitive () const |
virtual void | construct () |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Protected Member Functions | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper (sal_Int32 _nId) const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
Protected Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 > | |
~ImplHelper4 () SAL_NOEXCEPT | |
Protected Member Functions inherited from connectivity::sdbcx::IRefreshableColumns | |
~IRefreshableColumns () | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper (sal_Int32 nId) const=0 |
Protected Member Functions inherited from connectivity::sdbcx::ODescriptor | |
::cppu::IPropertyArrayHelper * | doCreateArrayHelper () const |
helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper More... | |
Protected Member Functions inherited from comphelper::OPropertyContainer | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0 |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Protected Member Functions inherited from comphelper::OPropertyContainerHelper | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
void | revokeProperty (sal_Int32 _nHandle) |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
bool | isRegisteredProperty (const OUString &_rName) const |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
const css::beans::Property & | getProperty (const OUString &_rName) const |
Protected Attributes | |
OUString | m_CatalogName |
OUString | m_SchemaName |
OUString | m_Description |
OUString | m_Type |
std::unique_ptr< OCollection > | m_xKeys |
std::unique_ptr< OCollection > | m_xColumns |
std::unique_ptr< OCollection > | m_xIndexes |
OCollection * | m_pTables |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Protected Attributes inherited from connectivity::sdbcx::ODescriptor | |
OUString | m_Name |
Additional Inherited Members | |
Static Public Member Functions inherited from connectivity::sdbcx::ODescriptor | |
static bool | isNew (const css::uno::Reference< css::uno::XInterface > &_rxDescriptor) |
Static Protected Member Functions inherited from comphelper::OPropertyContainer | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
Definition at line 61 of file VTable.hxx.
OTable::OTable | ( | OCollection * | _pTables, |
bool | _bCase | ||
) |
Definition at line 59 of file VTable.cxx.
References m_aMutex.
Referenced by createDataDescriptor().
connectivity::sdbcx::OTable::OTable | ( | OCollection * | _pTables, |
bool | _bCase, | ||
const OUString & | Name, | ||
OUString | Type, | ||
OUString | Description = OUString() , |
||
OUString | SchemaName = OUString() , |
||
OUString | CatalogName = OUString() |
||
) |
|
overridevirtual |
Definition at line 82 of file VTable.cxx.
|
overridevirtualnoexcept |
Definition at line 98 of file VTable.cxx.
|
overridevirtual |
Reimplemented in connectivity::mysqlc::Table, connectivity::ado::OAdoTable, connectivity::dbase::ODbaseTable, and connectivity::OTableHelper.
Definition at line 270 of file VTable.cxx.
References dbtools::throwFeatureNotImplementedSQLException().
|
overridevirtual |
Reimplemented in connectivity::ado::OAdoTable, connectivity::dbase::ODbaseTable, connectivity::hsqldb::OHSQLTable, connectivity::mysql::OMySQLTable, connectivity::firebird::Table, and connectivity::mysqlc::Table.
Definition at line 265 of file VTable.cxx.
References dbtools::throwFeatureNotImplementedSQLException().
Referenced by connectivity::OTableHelper::alterColumnByIndex().
|
overridevirtual |
Reimplemented from connectivity::sdbcx::ODescriptor.
Reimplemented in connectivity::firebird::Table, connectivity::mysqlc::Table, connectivity::calc::OCalcTable, connectivity::dbase::ODbaseTable, connectivity::flat::OFlatTable, connectivity::hsqldb::OHSQLTable, connectivity::mysql::OMySQLTable, and connectivity::writer::OWriterTable.
Definition at line 86 of file VTable.cxx.
References connectivity::sdbcx::ODescriptor::construct(), connectivity::OMetaConnection::getPropMap(), connectivity::sdbcx::ODescriptor::isNew(), m_CatalogName, m_Description, m_SchemaName, m_Type, PROPERTY_ID_CATALOGNAME, PROPERTY_ID_DESCRIPTION, PROPERTY_ID_SCHEMANAME, PROPERTY_ID_TYPE, and comphelper::OPropertyContainerHelper::registerProperty().
Referenced by connectivity::mysqlc::Table::construct(), connectivity::hsqldb::OHSQLTable::construct(), connectivity::mysql::OMySQLTable::construct(), connectivity::macab::MacabTable::MacabTable(), connectivity::ado::OAdoTable::OAdoTable(), connectivity::evoab::OEvoabTable::OEvoabTable(), and connectivity::file::OFileTable::OFileTable().
|
overrideprotectedvirtual |
Implements comphelper::OIdPropertyArrayUsageHelper< class TYPE >.
Definition at line 199 of file VTable.cxx.
References connectivity::sdbcx::ODescriptor::doCreateArrayHelper().
|
overridevirtual |
Definition at line 209 of file VTable.cxx.
References connectivity::checkDisposed(), connectivity::sdbcx::ODescriptor::isCaseSensitive(), cppu::BaseMutex::m_aMutex, m_CatalogName, m_Description, connectivity::sdbcx::ODescriptor::m_Name, m_pTables, m_SchemaName, m_Type, and OTable().
connectivity::sdbcx::OTable::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Reimplemented in connectivity::ado::OAdoTable, connectivity::calc::OCalcTable, connectivity::dbase::ODbaseTable, connectivity::file::OFileTable, connectivity::flat::OFlatTable, connectivity::writer::OWriterTable, and connectivity::OTableHelper.
Definition at line 131 of file VTable.cxx.
References cppu::BaseMutex::m_aMutex, m_pTables, m_xColumns, m_xIndexes, and m_xKeys.
Referenced by connectivity::ado::OAdoTable::disposing(), connectivity::file::OFileTable::disposing(), and connectivity::OTableHelper::disposing().
|
overridevirtual |
Definition at line 148 of file VTable.cxx.
References connectivity::checkDisposed(), Exception, cppu::BaseMutex::m_aMutex, m_xColumns, and refreshColumns().
Referenced by connectivity::OTableHelper::refreshColumns().
|
overridevirtual |
Definition at line 220 of file VTable.cxx.
References connectivity::checkDisposed(), Exception, cppu::BaseMutex::m_aMutex, m_xIndexes, and refreshIndexes().
|
overrideprotected |
Definition at line 204 of file VTable.cxx.
References comphelper::OIdPropertyArrayUsageHelper< class TYPE >::getArrayHelper(), and connectivity::sdbcx::ODescriptor::isNew().
Referenced by getPropertySetInfo().
|
overridevirtual |
Definition at line 173 of file VTable.cxx.
References connectivity::checkDisposed(), Exception, cppu::BaseMutex::m_aMutex, m_xKeys, and refreshKeys().
|
virtual |
Reimplemented in connectivity::ado::OAdoTable, connectivity::dbase::ODbaseTable, and connectivity::OTableHelper.
Definition at line 259 of file VTable.cxx.
Referenced by rename().
|
overridevirtual |
Reimplemented in connectivity::ado::OAdoTable, connectivity::file::OFileTable, and connectivity::OTableHelper.
Definition at line 280 of file VTable.cxx.
References m_CatalogName, connectivity::sdbcx::ODescriptor::m_Name, and m_SchemaName.
Referenced by rename().
|
overridevirtual |
Definition at line 275 of file VTable.cxx.
References getInfoHelper().
|
overridevirtual |
Reimplemented from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >.
Reimplemented in connectivity::component::OComponentTable, connectivity::dbase::ODbaseTable, connectivity::flat::OFlatTable, and connectivity::hsqldb::OHSQLTable.
Definition at line 124 of file VTable.cxx.
References connectivity::sdbcx::ODescriptor::getTypes(), cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >::getTypes(), and connectivity::sdbcx::ODescriptor::isNew().
Referenced by connectivity::component::OComponentTable::getTypes(), connectivity::dbase::ODbaseTable::getTypes(), connectivity::flat::OFlatTable::getTypes(), and connectivity::hsqldb::OHSQLTable::getTypes().
|
overridevirtual |
Reimplemented from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >.
Reimplemented in connectivity::firebird::Table, connectivity::component::OComponentTable, connectivity::dbase::ODbaseTable, connectivity::file::OFileTable, connectivity::flat::OFlatTable, and connectivity::hsqldb::OHSQLTable.
Definition at line 109 of file VTable.cxx.
References Any, connectivity::sdbcx::ODescriptor::isNew(), and cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >::queryInterface().
Referenced by connectivity::component::OComponentTable::queryInterface(), connectivity::dbase::ODbaseTable::queryInterface(), connectivity::file::OFileTable::queryInterface(), connectivity::flat::OFlatTable::queryInterface(), and connectivity::hsqldb::OHSQLTable::queryInterface().
|
overridevirtual |
Implements connectivity::sdbcx::IRefreshableColumns.
Reimplemented in connectivity::evoab::OEvoabTable, connectivity::macab::MacabTable, connectivity::ado::OAdoTable, connectivity::component::OComponentTable, connectivity::dbase::ODbaseTable, connectivity::file::OFileTable, connectivity::flat::OFlatTable, and connectivity::OTableHelper.
Definition at line 292 of file VTable.cxx.
Referenced by getColumns().
|
virtual |
Reimplemented in connectivity::ado::OAdoTable, connectivity::component::OComponentTable, connectivity::dbase::ODbaseTable, connectivity::file::OFileTable, and connectivity::OTableHelper.
Definition at line 300 of file VTable.cxx.
Referenced by getIndexes().
|
virtual |
Reimplemented in connectivity::ado::OAdoTable, connectivity::file::OFileTable, and connectivity::OTableHelper.
Definition at line 296 of file VTable.cxx.
Referenced by getKeys().
|
overridevirtualnoexcept |
Definition at line 103 of file VTable.cxx.
|
overridevirtual |
Reimplemented in connectivity::ado::OAdoTable, connectivity::dbase::ODbaseTable, connectivity::hsqldb::OHSQLTable, connectivity::OTableHelper, and connectivity::firebird::Table.
Definition at line 244 of file VTable.cxx.
References connectivity::checkDisposed(), getMetaData(), getName(), cppu::BaseMutex::m_aMutex, m_CatalogName, connectivity::sdbcx::ODescriptor::m_Name, m_pTables, m_SchemaName, newName(), dbtools::qualifiedNameComponents(), and connectivity::sdbcx::OCollection::renameObject().
Referenced by connectivity::ado::OAdoTable::rename(), connectivity::hsqldb::OHSQLTable::rename(), and connectivity::OTableHelper::rename().
|
overridevirtual |
Definition at line 288 of file VTable.cxx.
|
protected |
Definition at line 70 of file VTable.hxx.
Referenced by construct(), createDataDescriptor(), connectivity::calc::OCalcTable::fillColumns(), connectivity::dbase::ODbaseTable::fillColumns(), connectivity::writer::OWriterTable::fillColumns(), connectivity::flat::OFlatTable::fillColumns(), connectivity::ado::OAdoTable::fillPropertyValues(), connectivity::hsqldb::OHSQLTable::getAlterTableColumnPart(), connectivity::mysql::OMySQLTable::getAlterTableColumnPart(), getName(), connectivity::OTableHelper::getName(), connectivity::OTableHelper::refreshColumns(), connectivity::OTableHelper::refreshForeignKeys(), connectivity::OTableHelper::refreshIndexes(), connectivity::OTableHelper::refreshPrimaryKeys(), connectivity::hsqldb::OHSQLTable::rename(), rename(), and connectivity::OTableHelper::rename().
|
protected |
Definition at line 72 of file VTable.hxx.
Referenced by construct(), createDataDescriptor(), and connectivity::ado::OAdoTable::fillPropertyValues().
|
protected |
Definition at line 79 of file VTable.hxx.
Referenced by connectivity::mysql::OMySQLTable::alterColumnByName(), connectivity::mysql::OMySQLTable::alterColumnType(), createDataDescriptor(), disposing(), connectivity::OTableHelper::disposing(), connectivity::OTableHelper::refreshForeignKeys(), and rename().
|
protected |
Definition at line 71 of file VTable.hxx.
Referenced by construct(), createDataDescriptor(), connectivity::hsqldb::OHSQLTable::getAlterTableColumnPart(), connectivity::mysql::OMySQLTable::getAlterTableColumnPart(), getName(), connectivity::OTableHelper::getName(), connectivity::evoab::OEvoabTable::getSchema(), connectivity::macab::MacabTable::getSchema(), connectivity::ado::OAdoTable::getSchema(), connectivity::evoab::OEvoabTable::refreshColumns(), connectivity::macab::MacabTable::refreshColumns(), connectivity::file::OFileTable::refreshColumns(), connectivity::OTableHelper::refreshColumns(), connectivity::OTableHelper::refreshForeignKeys(), connectivity::OTableHelper::refreshIndexes(), connectivity::OTableHelper::refreshPrimaryKeys(), connectivity::hsqldb::OHSQLTable::rename(), rename(), and connectivity::OTableHelper::rename().
|
protected |
Definition at line 73 of file VTable.hxx.
Referenced by construct(), createDataDescriptor(), connectivity::ado::OAdoTable::fillPropertyValues(), connectivity::OTableHelper::getRenameStart(), connectivity::hsqldb::OHSQLTable::getTypes(), connectivity::hsqldb::OHSQLTable::queryInterface(), and connectivity::hsqldb::OHSQLTable::rename().
|
protected |
Definition at line 77 of file VTable.hxx.
Referenced by connectivity::ado::OAdoTable::alterColumnByIndex(), connectivity::OTableHelper::alterColumnByIndex(), connectivity::ado::OAdoTable::alterColumnByName(), connectivity::hsqldb::OHSQLTable::alterColumnByName(), connectivity::mysql::OMySQLTable::alterColumnByName(), disposing(), getColumns(), connectivity::evoab::OEvoabTable::refreshColumns(), connectivity::macab::MacabTable::refreshColumns(), connectivity::ado::OAdoTable::refreshColumns(), connectivity::component::OComponentTable::refreshColumns(), connectivity::dbase::ODbaseTable::refreshColumns(), connectivity::file::OFileTable::refreshColumns(), connectivity::flat::OFlatTable::refreshColumns(), and connectivity::OTableHelper::refreshColumns().
|
protected |
Definition at line 78 of file VTable.hxx.
Referenced by disposing(), getIndexes(), connectivity::ado::OAdoTable::refreshIndexes(), connectivity::dbase::ODbaseTable::refreshIndexes(), and connectivity::OTableHelper::refreshIndexes().
|
protected |
Definition at line 76 of file VTable.hxx.
Referenced by disposing(), getKeys(), connectivity::ado::OAdoTable::refreshKeys(), and connectivity::OTableHelper::refreshKeys().