LibreOffice Module connectivity (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
connectivity::sdbcx::OCatalog Class Referenceabstract

#include <VCatalog.hxx>

Inheritance diagram for connectivity::sdbcx::OCatalog:
[legend]
Collaboration diagram for connectivity::sdbcx::OCatalog:
[legend]

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< 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 53 of file VCatalog.hxx.

Constructor & Destructor Documentation

◆ OCatalog()

connectivity::sdbcx::OCatalog::OCatalog ( const css::uno::Reference< css::sdbc::XConnection > &  _xConnection)

◆ ~OCatalog()

OCatalog::~OCatalog ( )
overridevirtual

Reimplemented in connectivity::ado::OCatalog.

Definition at line 52 of file VCatalog.cxx.

Member Function Documentation

◆ buildName()

OUString OCatalog::buildName ( const css::uno::Reference< css::sdbc::XRow > &  _xRow)
protectedvirtual

builds the name which should be used to access the object later on in the collection.

Will only be called in fillNames.

Parameters
_xRowThe 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().

◆ DECLARE_SERVICE_INFO()

connectivity::sdbcx::OCatalog::DECLARE_SERVICE_INFO ( )

◆ disposing()

void SAL_CALL OCatalog::disposing ( )
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.

◆ fillNames()

void OCatalog::fillNames ( css::uno::Reference< css::sdbc::XResultSet > &  _xResult,
::std::vector< OUString > &  _rNames 
)
protected

fills a vector with the necessary names which can be used in combination with the collections.

For each row buildName will be called.

Parameters
_xResultThe resultset which should be used to fill the names. Will be disposed after return and set to NULL.
_rNamesThe 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().

◆ getGroups()

Reference< XNameAccess > SAL_CALL OCatalog::getGroups ( )
overridevirtual

◆ getTables()

Reference< XNameAccess > SAL_CALL OCatalog::getTables ( )
overridevirtual

◆ getUsers()

Reference< XNameAccess > SAL_CALL OCatalog::getUsers ( )
overridevirtual

◆ getViews()

Reference< XNameAccess > SAL_CALL OCatalog::getViews ( )
overridevirtual

Definition at line 97 of file VCatalog.cxx.

References connectivity::checkDisposed(), Exception, m_aMutex, m_pViews, and refreshViews().

◆ refreshTables()

virtual void connectivity::sdbcx::OCatalog::refreshTables ( )
pure virtual

◆ refreshViews()

virtual void connectivity::sdbcx::OCatalog::refreshViews ( )
pure virtual

Member Data Documentation

◆ m_aMutex

::osl::Mutex connectivity::sdbcx::OCatalog::m_aMutex
protected

◆ m_pGroups

std::unique_ptr<OCollection> connectivity::sdbcx::OCatalog::m_pGroups
protected

Definition at line 66 of file VCatalog.hxx.

Referenced by disposing(), getGroups(), and connectivity::ado::OCatalog::refreshGroups().

◆ m_pTables

std::unique_ptr<OCollection> connectivity::sdbcx::OCatalog::m_pTables
protected

◆ m_pUsers

std::unique_ptr<OCollection> connectivity::sdbcx::OCatalog::m_pUsers
protected

◆ m_pViews

std::unique_ptr<OCollection> connectivity::sdbcx::OCatalog::m_pViews
protected

◆ m_xMetaData

css::uno::Reference< css::sdbc::XDatabaseMetaData > connectivity::sdbcx::OCatalog::m_xMetaData
protected

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