LibreOffice Module connectivity (master) 1
|
#include <HCatalog.hxx>
Public Member Functions | |
virtual void | refreshTables () override |
virtual void | refreshViews () override |
virtual void | refreshGroups () override |
virtual void | refreshUsers () override |
OHCatalog (const css::uno::Reference< css::sdbc::XConnection > &_xConnection) | |
sdbcx::OCollection * | getPrivateTables () const |
sdbcx::OCollection * | getPrivateViews () const |
const css::uno::Reference< css::sdbc::XConnection > & | getConnection () const |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
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 Member Functions | |
void | refreshObjects (const css::uno::Sequence< OUString > &_sKindOfObject,::std::vector< OUString > &_rNames) |
calls XDatabaseMetaData::getTables. More... | |
Private Attributes | |
css::uno::Reference< css::sdbc::XConnection > | m_xConnection |
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 27 of file HCatalog.hxx.
OHCatalog::OHCatalog | ( | const css::uno::Reference< css::sdbc::XConnection > & | _xConnection | ) |
Definition at line 39 of file HCatalog.cxx.
References m_xConnection.
|
inline |
Definition at line 51 of file HCatalog.hxx.
References m_xConnection.
|
inline |
Definition at line 49 of file HCatalog.hxx.
References connectivity::sdbcx::OCatalog::m_pTables.
|
inline |
Definition at line 50 of file HCatalog.hxx.
References connectivity::sdbcx::OCatalog::m_pViews.
|
overridevirtual |
Definition at line 130 of file HCatalog.cxx.
References aTypes.
|
overridevirtual |
Definition at line 122 of file HCatalog.cxx.
References Any.
|
overridevirtual |
Implements connectivity::sdbcx::IRefreshableGroups.
Definition at line 98 of file HCatalog.cxx.
|
private |
calls XDatabaseMetaData::getTables.
_sKindOfObject | The type of tables to be fetched. |
_rNames | The container for the names to be filled. |
Definition at line 44 of file HCatalog.cxx.
References Any, connectivity::sdbcx::OCatalog::fillNames(), and connectivity::sdbcx::OCatalog::m_xMetaData.
Referenced by refreshTables(), and refreshViews().
|
overridevirtual |
Implements connectivity::sdbcx::OCatalog.
Definition at line 53 of file HCatalog.cxx.
References connectivity::sdbcx::OCatalog::m_aMutex, connectivity::sdbcx::OCatalog::m_pTables, connectivity::sdbcx::OCatalog::m_xMetaData, and refreshObjects().
|
overridevirtual |
Implements connectivity::sdbcx::IRefreshableUsers.
Definition at line 102 of file HCatalog.cxx.
References connectivity::sdbcx::OCatalog::m_aMutex, connectivity::sdbcx::OCatalog::m_pUsers, and m_xConnection.
|
overridevirtual |
Implements connectivity::sdbcx::OCatalog.
Definition at line 67 of file HCatalog.cxx.
References aTypes, connectivity::sdbcx::OCatalog::m_aMutex, connectivity::sdbcx::OCatalog::m_pViews, m_xConnection, connectivity::sdbcx::OCatalog::m_xMetaData, and refreshObjects().
|
private |
Definition at line 29 of file HCatalog.hxx.
Referenced by getConnection(), refreshUsers(), and refreshViews().