LibreOffice Module connectivity (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
connectivity::mysql::OMySQLCatalog Class Reference

#include <YCatalog.hxx>

Inheritance diagram for connectivity::mysql::OMySQLCatalog:
[legend]
Collaboration diagram for connectivity::mysql::OMySQLCatalog:
[legend]

Public Member Functions

virtual void refreshTables () override
 
virtual void refreshViews () override
 
virtual void refreshGroups () override
 
virtual void refreshUsers () override
 
 OMySQLCatalog (const css::uno::Reference< css::sdbc::XConnection > &_xConnection)
 
sdbcx::OCollectiongetPrivateTables () const
 
sdbcx::OCollectiongetPrivateViews () 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< OCollectionm_pTables
 
std::unique_ptr< OCollectionm_pViews
 
std::unique_ptr< OCollectionm_pGroups
 
std::unique_ptr< OCollectionm_pUsers
 
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
 

Detailed Description

Definition at line 27 of file YCatalog.hxx.

Constructor & Destructor Documentation

◆ OMySQLCatalog()

OMySQLCatalog::OMySQLCatalog ( const css::uno::Reference< css::sdbc::XConnection > &  _xConnection)

Definition at line 38 of file YCatalog.cxx.

References m_xConnection.

Member Function Documentation

◆ getConnection()

const css::uno::Reference< css::sdbc::XConnection > & connectivity::mysql::OMySQLCatalog::getConnection ( ) const
inline

Definition at line 51 of file YCatalog.hxx.

References m_xConnection.

◆ getPrivateTables()

sdbcx::OCollection * connectivity::mysql::OMySQLCatalog::getPrivateTables ( ) const
inline

Definition at line 49 of file YCatalog.hxx.

References connectivity::sdbcx::OCatalog::m_pTables.

◆ getPrivateViews()

sdbcx::OCollection * connectivity::mysql::OMySQLCatalog::getPrivateViews ( ) const
inline

Definition at line 50 of file YCatalog.hxx.

References connectivity::sdbcx::OCatalog::m_pViews.

◆ getTypes()

Sequence< Type > SAL_CALL OMySQLCatalog::getTypes ( )
overridevirtual

Definition at line 115 of file YCatalog.cxx.

References aTypes.

◆ queryInterface()

Any SAL_CALL OMySQLCatalog::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Definition at line 107 of file YCatalog.cxx.

References Any.

◆ refreshGroups()

void OMySQLCatalog::refreshGroups ( )
overridevirtual

Implements connectivity::sdbcx::IRefreshableGroups.

Definition at line 84 of file YCatalog.cxx.

◆ refreshObjects()

void OMySQLCatalog::refreshObjects ( const css::uno::Sequence< OUString > &  _sKindOfObject,
::std::vector< OUString > &  _rNames 
)
private

calls XDatabaseMetaData::getTables.

Parameters
_sKindOfObjectThe type of tables to be fetched.
_rNamesThe container for the names to be filled. <OUT>

Definition at line 44 of file YCatalog.cxx.

References Any, connectivity::sdbcx::OCatalog::fillNames(), and connectivity::sdbcx::OCatalog::m_xMetaData.

Referenced by refreshTables(), and refreshViews().

◆ refreshTables()

void OMySQLCatalog::refreshTables ( )
overridevirtual

◆ refreshUsers()

void OMySQLCatalog::refreshUsers ( )
overridevirtual

◆ refreshViews()

void OMySQLCatalog::refreshViews ( )
overridevirtual

Member Data Documentation

◆ m_xConnection

css::uno::Reference< css::sdbc::XConnection > connectivity::mysql::OMySQLCatalog::m_xConnection
private

Definition at line 29 of file YCatalog.hxx.

Referenced by getConnection(), and refreshUsers().


The documentation for this class was generated from the following files: