LibreOffice Module connectivity (master) 1
|
#include <ACatalog.hxx>
Public Member Functions | |
virtual void | refreshTables () override |
virtual void | refreshViews () override |
virtual void | refreshGroups () override |
virtual void | refreshUsers () override |
OCatalog (_ADOCatalog *_pCatalog, OConnection *_pCon) | |
~OCatalog () override | |
OConnection * | getConnection () const |
sdbcx::OCollection * | getPrivateTables () const |
WpADOCatalog | getCatalog () const |
Public Member Functions inherited from connectivity::sdbcx::OCatalog | |
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 |
virtual void | refreshGroups ()=0 |
virtual void | refreshUsers ()=0 |
Private Attributes | |
WpADOCatalog | m_aCatalog |
OConnection * | m_pConnection |
Additional Inherited Members | |
Protected Member Functions inherited from connectivity::sdbcx::OCatalog | |
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 inherited from connectivity::sdbcx::OCatalog | |
::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 28 of file ACatalog.hxx.
OCatalog::OCatalog | ( | _ADOCatalog * | _pCatalog, |
OConnection * | _pCon | ||
) |
Definition at line 33 of file ACatalog.cxx.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OCatalog.
Definition at line 39 of file ACatalog.cxx.
References connectivity::ado::WpOLEBase< T >::clear(), connectivity::ado::WpOLEBase< T >::IsValid(), m_aCatalog, and connectivity::ado::WpADOCatalog::putref_ActiveConnection().
|
inline |
Definition at line 45 of file ACatalog.hxx.
References m_aCatalog.
Referenced by connectivity::ado::OAdoColumn::OAdoColumn(), and connectivity::ado::OAdoTable::OAdoTable().
|
inline |
Definition at line 43 of file ACatalog.hxx.
References m_pConnection.
Referenced by connectivity::ado::OAdoTable::alterColumnByName(), connectivity::ado::OGroups::appendObject(), connectivity::ado::OAdoUser::changePassword(), connectivity::ado::OTables::dropObject(), connectivity::ado::OViews::dropObject(), connectivity::ado::OAdoUser::getGrantablePrivileges(), connectivity::ado::OAdoTable::getMetaData(), connectivity::ado::OAdoUser::grantPrivileges(), connectivity::ado::OAdoTable::refreshColumns(), connectivity::ado::OAdoTable::refreshIndexes(), connectivity::ado::OAdoTable::refreshKeys(), connectivity::ado::OAdoTable::rename(), and connectivity::ado::OAdoUser::revokePrivileges().
|
inline |
Definition at line 44 of file ACatalog.hxx.
References connectivity::sdbcx::OCatalog::m_pTables.
|
overridevirtual |
Implements connectivity::sdbcx::IRefreshableGroups.
Definition at line 88 of file ACatalog.cxx.
References connectivity::ado::WpOLECollection< Ts, WrapT >::fillElementNames(), connectivity::ado::WpADOCatalog::get_Groups(), connectivity::ado::OConnection::getMetaData(), m_aCatalog, connectivity::sdbcx::OCatalog::m_aMutex, m_pConnection, and connectivity::sdbcx::OCatalog::m_pGroups.
|
overridevirtual |
Implements connectivity::sdbcx::OCatalog.
Definition at line 46 of file ACatalog.cxx.
References connectivity::ado::WpADOTable::get_Name(), connectivity::ado::WpADOCatalog::get_Tables(), connectivity::ado::WpADOTable::get_Type(), connectivity::ado::WpOLECollection< Ts, WrapT >::GetItem(), connectivity::ado::WpOLECollection< Ts, WrapT >::GetItemCount(), connectivity::ado::OConnection::getMetaData(), i, connectivity::ado::WpOLEBase< T >::IsValid(), m_aCatalog, connectivity::sdbcx::OCatalog::m_aMutex, m_pConnection, connectivity::sdbcx::OCatalog::m_pTables, nCount, and connectivity::ado::WpOLECollection< Ts, WrapT >::Refresh().
Referenced by connectivity::ado::OTables::impl_refresh().
|
overridevirtual |
Implements connectivity::sdbcx::IRefreshableUsers.
Definition at line 101 of file ACatalog.cxx.
References connectivity::ado::WpOLECollection< Ts, WrapT >::fillElementNames(), connectivity::ado::WpADOCatalog::get_Users(), connectivity::ado::OConnection::getMetaData(), m_aCatalog, connectivity::sdbcx::OCatalog::m_aMutex, m_pConnection, and connectivity::sdbcx::OCatalog::m_pUsers.
|
overridevirtual |
Implements connectivity::sdbcx::OCatalog.
Definition at line 75 of file ACatalog.cxx.
References connectivity::ado::WpOLECollection< Ts, WrapT >::fillElementNames(), connectivity::ado::WpADOCatalog::get_Views(), connectivity::ado::OConnection::getMetaData(), m_aCatalog, connectivity::sdbcx::OCatalog::m_aMutex, m_pConnection, and connectivity::sdbcx::OCatalog::m_pViews.
|
private |
Definition at line 30 of file ACatalog.hxx.
Referenced by getCatalog(), refreshGroups(), refreshTables(), refreshUsers(), refreshViews(), and ~OCatalog().
|
private |
Definition at line 31 of file ACatalog.hxx.
Referenced by getConnection(), refreshGroups(), refreshTables(), refreshUsers(), and refreshViews().