LibreOffice Module connectivity (master) 1
|
#include <VCatalog.hxx>
Public Member Functions | |
OCatalog (const css::uno::Reference< css::sdbc::XConnection > &_xConnection) | |
virtual | ~OCatalog () override |
DECLARE_SERVICE_INFO () | |
virtual void | refreshTables ()=0 |
virtual void | refreshViews ()=0 |
virtual void SAL_CALL | disposing () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getTables () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getViews () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getUsers () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getGroups () override |
Public Member Functions inherited from connectivity::sdbcx::IRefreshableGroups | |
virtual void | refreshGroups ()=0 |
Public Member Functions inherited from connectivity::sdbcx::IRefreshableUsers | |
virtual void | refreshUsers ()=0 |
Protected Member Functions | |
virtual OUString | buildName (const css::uno::Reference< css::sdbc::XRow > &_xRow) |
builds the name which should be used to access the object later on in the collection. More... | |
void | fillNames (css::uno::Reference< css::sdbc::XResultSet > &_xResult,::std::vector< OUString > &_rNames) |
fills a vector with the necessary names which can be used in combination with the collections. More... | |
Protected Member Functions inherited from connectivity::sdbcx::IRefreshableGroups | |
~IRefreshableGroups () | |
Protected Member Functions inherited from connectivity::sdbcx::IRefreshableUsers | |
~IRefreshableUsers () | |
Protected Attributes | |
::osl::Mutex | m_aMutex |
std::unique_ptr< OCollection > | m_pTables |
std::unique_ptr< OCollection > | m_pViews |
std::unique_ptr< OCollection > | m_pGroups |
std::unique_ptr< OCollection > | m_pUsers |
css::uno::Reference< css::sdbc::XDatabaseMetaData > | m_xMetaData |
Definition at line 53 of file VCatalog.hxx.
connectivity::sdbcx::OCatalog::OCatalog | ( | const css::uno::Reference< css::sdbc::XConnection > & | _xConnection | ) |
|
overridevirtual |
Reimplemented in connectivity::ado::OCatalog.
Definition at line 52 of file VCatalog.cxx.
|
protectedvirtual |
builds the name which should be used to access the object later on in the collection.
Will only be called in fillNames.
_xRow | The current row from the resultset given to fillNames. |
Reimplemented in connectivity::file::OFileCatalog.
Definition at line 168 of file VCatalog.cxx.
References dbtools::composeTableName(), m_xMetaData, sCatalog, sComposedName, and sSchema.
Referenced by fillNames().
connectivity::sdbcx::OCatalog::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Reimplemented in connectivity::file::OFileCatalog.
Definition at line 56 of file VCatalog.cxx.
References m_aMutex, m_pGroups, m_pTables, m_pUsers, and m_pViews.
|
protected |
fills a vector with the necessary names which can be used in combination with the collections.
For each row buildName will be called.
_xResult | The resultset which should be used to fill the names. Will be disposed after return and set to NULL. |
_rNames | The vector who will be filled. |
Definition at line 185 of file VCatalog.cxx.
References buildName().
Referenced by connectivity::hsqldb::OHCatalog::refreshObjects(), connectivity::mysql::OMySQLCatalog::refreshObjects(), and connectivity::file::OFileCatalog::refreshTables().
|
overridevirtual |
Definition at line 145 of file VCatalog.cxx.
References connectivity::checkDisposed(), Exception, m_aMutex, m_pGroups, and connectivity::sdbcx::IRefreshableGroups::refreshGroups().
|
overridevirtual |
Reimplemented in connectivity::evoab::OEvoabCatalog, and connectivity::macab::MacabCatalog.
Definition at line 73 of file VCatalog.cxx.
References connectivity::checkDisposed(), Exception, m_aMutex, m_pTables, and refreshTables().
|
overridevirtual |
Definition at line 121 of file VCatalog.cxx.
References connectivity::checkDisposed(), Exception, m_aMutex, m_pUsers, and connectivity::sdbcx::IRefreshableUsers::refreshUsers().
|
overridevirtual |
Definition at line 97 of file VCatalog.cxx.
References connectivity::checkDisposed(), Exception, m_aMutex, m_pViews, and refreshViews().
|
pure virtual |
Implemented in connectivity::evoab::OEvoabCatalog, connectivity::firebird::Catalog, connectivity::macab::MacabCatalog, connectivity::mysqlc::Catalog, connectivity::ado::OCatalog, connectivity::calc::OCalcCatalog, connectivity::dbase::ODbaseCatalog, connectivity::file::OFileCatalog, connectivity::flat::OFlatCatalog, connectivity::hsqldb::OHCatalog, connectivity::mysql::OMySQLCatalog, and connectivity::writer::OWriterCatalog.
Referenced by getTables().
|
pure virtual |
Implemented in connectivity::evoab::OEvoabCatalog, connectivity::firebird::Catalog, connectivity::macab::MacabCatalog, connectivity::mysqlc::Catalog, connectivity::ado::OCatalog, connectivity::file::OFileCatalog, connectivity::hsqldb::OHCatalog, and connectivity::mysql::OMySQLCatalog.
Referenced by getViews().
|
protected |
Definition at line 60 of file VCatalog.hxx.
Referenced by disposing(), connectivity::file::OFileCatalog::disposing(), getGroups(), getTables(), connectivity::evoab::OEvoabCatalog::getTables(), connectivity::macab::MacabCatalog::getTables(), getUsers(), getViews(), connectivity::ado::OCatalog::refreshGroups(), connectivity::evoab::OEvoabCatalog::refreshTables(), connectivity::macab::MacabCatalog::refreshTables(), connectivity::ado::OCatalog::refreshTables(), connectivity::calc::OCalcCatalog::refreshTables(), connectivity::dbase::ODbaseCatalog::refreshTables(), connectivity::file::OFileCatalog::refreshTables(), connectivity::flat::OFlatCatalog::refreshTables(), connectivity::hsqldb::OHCatalog::refreshTables(), connectivity::mysql::OMySQLCatalog::refreshTables(), connectivity::writer::OWriterCatalog::refreshTables(), connectivity::ado::OCatalog::refreshUsers(), connectivity::hsqldb::OHCatalog::refreshUsers(), connectivity::mysql::OMySQLCatalog::refreshUsers(), connectivity::ado::OCatalog::refreshViews(), connectivity::hsqldb::OHCatalog::refreshViews(), and connectivity::mysql::OMySQLCatalog::refreshViews().
|
protected |
Definition at line 66 of file VCatalog.hxx.
Referenced by disposing(), getGroups(), and connectivity::ado::OCatalog::refreshGroups().
|
protected |
Definition at line 64 of file VCatalog.hxx.
Referenced by disposing(), connectivity::firebird::Catalog::getPrivateTables(), connectivity::mysqlc::Catalog::getPrivateTables(), connectivity::ado::OCatalog::getPrivateTables(), connectivity::hsqldb::OHCatalog::getPrivateTables(), connectivity::mysql::OMySQLCatalog::getPrivateTables(), getTables(), connectivity::evoab::OEvoabCatalog::getTables(), connectivity::macab::MacabCatalog::getTables(), connectivity::evoab::OEvoabCatalog::refreshTables(), connectivity::macab::MacabCatalog::refreshTables(), connectivity::ado::OCatalog::refreshTables(), connectivity::calc::OCalcCatalog::refreshTables(), connectivity::dbase::ODbaseCatalog::refreshTables(), connectivity::file::OFileCatalog::refreshTables(), connectivity::flat::OFlatCatalog::refreshTables(), connectivity::hsqldb::OHCatalog::refreshTables(), connectivity::mysql::OMySQLCatalog::refreshTables(), and connectivity::writer::OWriterCatalog::refreshTables().
|
protected |
Definition at line 67 of file VCatalog.hxx.
Referenced by disposing(), getUsers(), connectivity::ado::OCatalog::refreshUsers(), connectivity::hsqldb::OHCatalog::refreshUsers(), and connectivity::mysql::OMySQLCatalog::refreshUsers().
|
protected |
Definition at line 65 of file VCatalog.hxx.
Referenced by disposing(), connectivity::firebird::Catalog::getPrivateViews(), connectivity::hsqldb::OHCatalog::getPrivateViews(), connectivity::mysql::OMySQLCatalog::getPrivateViews(), getViews(), connectivity::ado::OCatalog::refreshViews(), connectivity::hsqldb::OHCatalog::refreshViews(), and connectivity::mysql::OMySQLCatalog::refreshViews().
|
protected |
Definition at line 69 of file VCatalog.hxx.
Referenced by buildName(), connectivity::file::OFileCatalog::disposing(), connectivity::hsqldb::OHCatalog::refreshObjects(), connectivity::mysql::OMySQLCatalog::refreshObjects(), connectivity::evoab::OEvoabCatalog::refreshTables(), connectivity::macab::MacabCatalog::refreshTables(), connectivity::calc::OCalcCatalog::refreshTables(), connectivity::dbase::ODbaseCatalog::refreshTables(), connectivity::file::OFileCatalog::refreshTables(), connectivity::flat::OFlatCatalog::refreshTables(), connectivity::hsqldb::OHCatalog::refreshTables(), connectivity::mysql::OMySQLCatalog::refreshTables(), connectivity::writer::OWriterCatalog::refreshTables(), connectivity::hsqldb::OHCatalog::refreshViews(), and connectivity::mysql::OMySQLCatalog::refreshViews().