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

#include <TDatabaseMetaDataBase.hxx>

Inheritance diagram for connectivity::ODatabaseMetaDataBase:
[legend]
Collaboration diagram for connectivity::ODatabaseMetaDataBase:
[legend]

Public Member Functions

 ODatabaseMetaDataBase (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Sequence< css::beans::PropertyValue > &_rInfo)
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getConnectionInfo () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTypeInfo () override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getProcedures (const css::uno::Any &catalog, const OUString &schemaPattern, const OUString &procedureNamePattern) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getProcedureColumns (const css::uno::Any &catalog, const OUString &schemaPattern, const OUString &procedureNamePattern, const OUString &columnNamePattern) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getSchemas () override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getCatalogs () override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getColumnPrivileges (const css::uno::Any &catalog, const OUString &schema, const OUString &table, const OUString &columnNamePattern) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTablePrivileges (const css::uno::Any &catalog, const OUString &schemaPattern, const OUString &tableNamePattern) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getBestRowIdentifier (const css::uno::Any &catalog, const OUString &schema, const OUString &table, sal_Int32 scope, sal_Bool nullable) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getVersionColumns (const css::uno::Any &catalog, const OUString &schema, const OUString &table) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getPrimaryKeys (const css::uno::Any &catalog, const OUString &schema, const OUString &table) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getImportedKeys (const css::uno::Any &catalog, const OUString &schema, const OUString &table) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getExportedKeys (const css::uno::Any &catalog, const OUString &schema, const OUString &table) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getCrossReference (const css::uno::Any &primaryCatalog, const OUString &primarySchema, const OUString &primaryTable, const css::uno::Any &foreignCatalog, const OUString &foreignSchema, const OUString &foreignTable) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getIndexInfo (const css::uno::Any &catalog, const OUString &schema, const OUString &table, sal_Bool unique, sal_Bool approximate) override
 
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection () override
 
virtual OUString SAL_CALL getIdentifierQuoteString () override
 
virtual sal_Bool SAL_CALL isCatalogAtStart () override
 
virtual OUString SAL_CALL getCatalogSeparator () override
 
virtual sal_Bool SAL_CALL supportsCatalogsInTableDefinitions () override
 
virtual sal_Bool SAL_CALL supportsSchemasInTableDefinitions () override
 
virtual sal_Bool SAL_CALL supportsCatalogsInDataManipulation () override
 
virtual sal_Bool SAL_CALL supportsSchemasInDataManipulation () override
 
virtual sal_Bool SAL_CALL supportsMixedCaseQuotedIdentifiers () override
 
virtual sal_Bool SAL_CALL supportsAlterTableWithAddColumn () override
 
virtual sal_Bool SAL_CALL supportsAlterTableWithDropColumn () override
 
virtual sal_Int32 SAL_CALL getMaxStatements () override
 
virtual sal_Int32 SAL_CALL getMaxTablesInSelect () override
 
virtual sal_Bool SAL_CALL storesMixedCaseQuotedIdentifiers () override
 

Protected Member Functions

virtual ~ODatabaseMetaDataBase () override
 
virtual css::uno::Reference< css::sdbc::XResultSet > impl_getTypeInfo_throw ()=0
 
virtual OUString impl_getIdentifierQuoteString_throw ()=0
 
virtual bool impl_isCatalogAtStart_throw ()=0
 
virtual OUString impl_getCatalogSeparator_throw ()=0
 
virtual bool impl_supportsCatalogsInTableDefinitions_throw ()=0
 
virtual bool impl_supportsSchemasInTableDefinitions_throw ()=0
 
virtual bool impl_supportsCatalogsInDataManipulation_throw ()=0
 
virtual bool impl_supportsSchemasInDataManipulation_throw ()=0
 
virtual bool impl_supportsMixedCaseQuotedIdentifiers_throw ()=0
 
virtual bool impl_supportsAlterTableWithAddColumn_throw ()=0
 
virtual bool impl_supportsAlterTableWithDropColumn_throw ()=0
 
virtual sal_Int32 impl_getMaxStatements_throw ()=0
 
virtual sal_Int32 impl_getMaxTablesInSelect_throw ()=0
 
virtual bool impl_storesMixedCaseQuotedIdentifiers_throw ()=0
 

Protected Attributes

css::uno::Reference< css::sdbc::XConnection > m_xConnection
 
css::uno::Reference< css::lang::XEventListener > m_xListenerHelper
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Private Member Functions

template<typename T >
callImplMethod (std::pair< bool, T > &_rCache, const std::function< T(ODatabaseMetaDataBase *)> &_pImplMethod)
 

Private Attributes

css::uno::Sequence< css::beans::PropertyValue > m_aConnectionInfo
 
::connectivity::ODatabaseMetaDataResultSet::ORows m_aTypeInfoRows
 
std::pair< bool, bool > m_isCatalogAtStart
 
std::pair< bool, OUString > m_sCatalogSeparator
 
std::pair< bool, OUString > m_sIdentifierQuoteString
 
std::pair< bool, bool > m_supportsCatalogsInTableDefinitions
 
std::pair< bool, bool > m_supportsSchemasInTableDefinitions
 
std::pair< bool, bool > m_supportsCatalogsInDataManipulation
 
std::pair< bool, bool > m_supportsSchemasInDataManipulation
 
std::pair< bool, bool > m_supportsMixedCaseQuotedIdentifiers
 
std::pair< bool, bool > m_supportsAlterTableWithAddColumn
 
std::pair< bool, bool > m_supportsAlterTableWithDropColumn
 
std::pair< bool, sal_Int32 > m_MaxStatements
 
std::pair< bool, sal_Int32 > m_MaxTablesInSelect
 
std::pair< bool, bool > m_storesMixedCaseQuotedIdentifiers
 

Detailed Description

Definition at line 32 of file TDatabaseMetaDataBase.hxx.

Constructor & Destructor Documentation

◆ ~ODatabaseMetaDataBase()

ODatabaseMetaDataBase::~ODatabaseMetaDataBase ( )
overrideprotectedvirtual

Definition at line 71 of file TDatabaseMetaDataBase.cxx.

◆ ODatabaseMetaDataBase()

ODatabaseMetaDataBase::ODatabaseMetaDataBase ( const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection,
const css::uno::Sequence< css::beans::PropertyValue > &  _rInfo 
)

Definition at line 44 of file TDatabaseMetaDataBase.cxx.

References m_refCount, m_xConnection, m_xConnection, and m_xListenerHelper.

Member Function Documentation

◆ callImplMethod()

template<typename T >
T connectivity::ODatabaseMetaDataBase::callImplMethod ( std::pair< bool, T > &  _rCache,
const std::function< T(ODatabaseMetaDataBase *)> &  _pImplMethod 
)
inlineprivate

◆ disposing()

void SAL_CALL ODatabaseMetaDataBase::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 82 of file TDatabaseMetaDataBase.cxx.

References m_xConnection, and m_xListenerHelper.

◆ getBestRowIdentifier()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getBestRowIdentifier ( const css::uno::Any &  catalog,
const OUString &  schema,
const OUString &  table,
sal_Int32  scope,
sal_Bool  nullable 
)
overridevirtual

◆ getCatalogs()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getCatalogs ( )
overridevirtual

◆ getCatalogSeparator()

OUString SAL_CALL ODatabaseMetaDataBase::getCatalogSeparator ( )
overridevirtual

◆ getColumnPrivileges()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getColumnPrivileges ( const css::uno::Any &  catalog,
const OUString &  schema,
const OUString &  table,
const OUString &  columnNamePattern 
)
overridevirtual

◆ getConnection()

Reference< XConnection > SAL_CALL ODatabaseMetaDataBase::getConnection ( )
overridevirtual

Definition at line 215 of file TDatabaseMetaDataBase.cxx.

References m_xConnection.

◆ getConnectionInfo()

Sequence< PropertyValue > SAL_CALL ODatabaseMetaDataBase::getConnectionInfo ( )
overridevirtual

Definition at line 76 of file TDatabaseMetaDataBase.cxx.

References m_aConnectionInfo.

◆ getCrossReference()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getCrossReference ( const css::uno::Any &  primaryCatalog,
const OUString &  primarySchema,
const OUString &  primaryTable,
const css::uno::Any &  foreignCatalog,
const OUString &  foreignSchema,
const OUString &  foreignTable 
)
overridevirtual

◆ getExportedKeys()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getExportedKeys ( const css::uno::Any &  catalog,
const OUString &  schema,
const OUString &  table 
)
overridevirtual

◆ getIdentifierQuoteString()

OUString SAL_CALL ODatabaseMetaDataBase::getIdentifierQuoteString ( )
overridevirtual

◆ getImportedKeys()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getImportedKeys ( const css::uno::Any &  catalog,
const OUString &  schema,
const OUString &  table 
)
overridevirtual

◆ getIndexInfo()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getIndexInfo ( const css::uno::Any &  catalog,
const OUString &  schema,
const OUString &  table,
sal_Bool  unique,
sal_Bool  approximate 
)
overridevirtual

◆ getMaxStatements()

sal_Int32 SAL_CALL ODatabaseMetaDataBase::getMaxStatements ( )
overridevirtual

◆ getMaxTablesInSelect()

sal_Int32 SAL_CALL ODatabaseMetaDataBase::getMaxTablesInSelect ( )
overridevirtual

◆ getPrimaryKeys()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getPrimaryKeys ( const css::uno::Any &  catalog,
const OUString &  schema,
const OUString &  table 
)
overridevirtual

◆ getProcedureColumns()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getProcedureColumns ( const css::uno::Any &  catalog,
const OUString &  schemaPattern,
const OUString &  procedureNamePattern,
const OUString &  columnNamePattern 
)
overridevirtual

◆ getProcedures()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getProcedures ( const css::uno::Any &  catalog,
const OUString &  schemaPattern,
const OUString &  procedureNamePattern 
)
overridevirtual

◆ getSchemas()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getSchemas ( )
overridevirtual

◆ getTablePrivileges()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getTablePrivileges ( const css::uno::Any &  catalog,
const OUString &  schemaPattern,
const OUString &  tableNamePattern 
)
overridevirtual

◆ getTypeInfo()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getTypeInfo ( )
overridevirtual

◆ getVersionColumns()

Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getVersionColumns ( const css::uno::Any &  catalog,
const OUString &  schema,
const OUString &  table 
)
overridevirtual

◆ impl_getCatalogSeparator_throw()

virtual OUString connectivity::ODatabaseMetaDataBase::impl_getCatalogSeparator_throw ( )
protectedpure virtual

◆ impl_getIdentifierQuoteString_throw()

virtual OUString connectivity::ODatabaseMetaDataBase::impl_getIdentifierQuoteString_throw ( )
protectedpure virtual

◆ impl_getMaxStatements_throw()

virtual sal_Int32 connectivity::ODatabaseMetaDataBase::impl_getMaxStatements_throw ( )
protectedpure virtual

◆ impl_getMaxTablesInSelect_throw()

virtual sal_Int32 connectivity::ODatabaseMetaDataBase::impl_getMaxTablesInSelect_throw ( )
protectedpure virtual

◆ impl_getTypeInfo_throw()

virtual css::uno::Reference< css::sdbc::XResultSet > connectivity::ODatabaseMetaDataBase::impl_getTypeInfo_throw ( )
protectedpure virtual

◆ impl_isCatalogAtStart_throw()

virtual bool connectivity::ODatabaseMetaDataBase::impl_isCatalogAtStart_throw ( )
protectedpure virtual

◆ impl_storesMixedCaseQuotedIdentifiers_throw()

virtual bool connectivity::ODatabaseMetaDataBase::impl_storesMixedCaseQuotedIdentifiers_throw ( )
protectedpure virtual

◆ impl_supportsAlterTableWithAddColumn_throw()

virtual bool connectivity::ODatabaseMetaDataBase::impl_supportsAlterTableWithAddColumn_throw ( )
protectedpure virtual

◆ impl_supportsAlterTableWithDropColumn_throw()

virtual bool connectivity::ODatabaseMetaDataBase::impl_supportsAlterTableWithDropColumn_throw ( )
protectedpure virtual

◆ impl_supportsCatalogsInDataManipulation_throw()

virtual bool connectivity::ODatabaseMetaDataBase::impl_supportsCatalogsInDataManipulation_throw ( )
protectedpure virtual

◆ impl_supportsCatalogsInTableDefinitions_throw()

virtual bool connectivity::ODatabaseMetaDataBase::impl_supportsCatalogsInTableDefinitions_throw ( )
protectedpure virtual

◆ impl_supportsMixedCaseQuotedIdentifiers_throw()

virtual bool connectivity::ODatabaseMetaDataBase::impl_supportsMixedCaseQuotedIdentifiers_throw ( )
protectedpure virtual

◆ impl_supportsSchemasInDataManipulation_throw()

virtual bool connectivity::ODatabaseMetaDataBase::impl_supportsSchemasInDataManipulation_throw ( )
protectedpure virtual

◆ impl_supportsSchemasInTableDefinitions_throw()

virtual bool connectivity::ODatabaseMetaDataBase::impl_supportsSchemasInTableDefinitions_throw ( )
protectedpure virtual

◆ isCatalogAtStart()

sal_Bool SAL_CALL ODatabaseMetaDataBase::isCatalogAtStart ( )
overridevirtual

◆ storesMixedCaseQuotedIdentifiers()

sal_Bool SAL_CALL ODatabaseMetaDataBase::storesMixedCaseQuotedIdentifiers ( )
overridevirtual

◆ supportsAlterTableWithAddColumn()

sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsAlterTableWithAddColumn ( )
overridevirtual

◆ supportsAlterTableWithDropColumn()

sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsAlterTableWithDropColumn ( )
overridevirtual

◆ supportsCatalogsInDataManipulation()

sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsCatalogsInDataManipulation ( )
overridevirtual

◆ supportsCatalogsInTableDefinitions()

sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsCatalogsInTableDefinitions ( )
overridevirtual

◆ supportsMixedCaseQuotedIdentifiers()

sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsMixedCaseQuotedIdentifiers ( )
overridevirtual

◆ supportsSchemasInDataManipulation()

sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsSchemasInDataManipulation ( )
overridevirtual

◆ supportsSchemasInTableDefinitions()

sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsSchemasInTableDefinitions ( )
overridevirtual

Member Data Documentation

◆ m_aConnectionInfo

css::uno::Sequence< css::beans::PropertyValue > connectivity::ODatabaseMetaDataBase::m_aConnectionInfo
private

Definition at line 38 of file TDatabaseMetaDataBase.hxx.

Referenced by getConnectionInfo(), and getTypeInfo().

◆ m_aTypeInfoRows

::connectivity::ODatabaseMetaDataResultSet::ORows connectivity::ODatabaseMetaDataBase::m_aTypeInfoRows
private

Definition at line 39 of file TDatabaseMetaDataBase.hxx.

Referenced by getTypeInfo().

◆ m_isCatalogAtStart

std::pair<bool,bool> connectivity::ODatabaseMetaDataBase::m_isCatalogAtStart
private

Definition at line 42 of file TDatabaseMetaDataBase.hxx.

Referenced by isCatalogAtStart().

◆ m_MaxStatements

std::pair<bool,sal_Int32> connectivity::ODatabaseMetaDataBase::m_MaxStatements
private

Definition at line 52 of file TDatabaseMetaDataBase.hxx.

Referenced by getMaxStatements().

◆ m_MaxTablesInSelect

std::pair<bool,sal_Int32> connectivity::ODatabaseMetaDataBase::m_MaxTablesInSelect
private

Definition at line 53 of file TDatabaseMetaDataBase.hxx.

Referenced by getMaxTablesInSelect().

◆ m_sCatalogSeparator

std::pair<bool,OUString> connectivity::ODatabaseMetaDataBase::m_sCatalogSeparator
private

Definition at line 43 of file TDatabaseMetaDataBase.hxx.

Referenced by getCatalogSeparator().

◆ m_sIdentifierQuoteString

std::pair<bool,OUString> connectivity::ODatabaseMetaDataBase::m_sIdentifierQuoteString
private

Definition at line 44 of file TDatabaseMetaDataBase.hxx.

Referenced by getIdentifierQuoteString().

◆ m_storesMixedCaseQuotedIdentifiers

std::pair<bool,bool> connectivity::ODatabaseMetaDataBase::m_storesMixedCaseQuotedIdentifiers
private

Definition at line 54 of file TDatabaseMetaDataBase.hxx.

Referenced by storesMixedCaseQuotedIdentifiers().

◆ m_supportsAlterTableWithAddColumn

std::pair<bool,bool> connectivity::ODatabaseMetaDataBase::m_supportsAlterTableWithAddColumn
private

Definition at line 50 of file TDatabaseMetaDataBase.hxx.

Referenced by supportsAlterTableWithAddColumn().

◆ m_supportsAlterTableWithDropColumn

std::pair<bool,bool> connectivity::ODatabaseMetaDataBase::m_supportsAlterTableWithDropColumn
private

Definition at line 51 of file TDatabaseMetaDataBase.hxx.

Referenced by supportsAlterTableWithDropColumn().

◆ m_supportsCatalogsInDataManipulation

std::pair<bool,bool> connectivity::ODatabaseMetaDataBase::m_supportsCatalogsInDataManipulation
private

Definition at line 47 of file TDatabaseMetaDataBase.hxx.

Referenced by supportsCatalogsInDataManipulation().

◆ m_supportsCatalogsInTableDefinitions

std::pair<bool,bool> connectivity::ODatabaseMetaDataBase::m_supportsCatalogsInTableDefinitions
private

Definition at line 45 of file TDatabaseMetaDataBase.hxx.

Referenced by supportsCatalogsInTableDefinitions().

◆ m_supportsMixedCaseQuotedIdentifiers

std::pair<bool,bool> connectivity::ODatabaseMetaDataBase::m_supportsMixedCaseQuotedIdentifiers
private

Definition at line 49 of file TDatabaseMetaDataBase.hxx.

Referenced by supportsMixedCaseQuotedIdentifiers().

◆ m_supportsSchemasInDataManipulation

std::pair<bool,bool> connectivity::ODatabaseMetaDataBase::m_supportsSchemasInDataManipulation
private

Definition at line 48 of file TDatabaseMetaDataBase.hxx.

Referenced by supportsSchemasInDataManipulation().

◆ m_supportsSchemasInTableDefinitions

std::pair<bool,bool> connectivity::ODatabaseMetaDataBase::m_supportsSchemasInTableDefinitions
private

Definition at line 46 of file TDatabaseMetaDataBase.hxx.

Referenced by supportsSchemasInTableDefinitions().

◆ m_xConnection

css::uno::Reference< css::sdbc::XConnection > connectivity::ODatabaseMetaDataBase::m_xConnection
protected

Definition at line 67 of file TDatabaseMetaDataBase.hxx.

Referenced by disposing(), getConnection(), and ODatabaseMetaDataBase().

◆ m_xListenerHelper

css::uno::Reference< css::lang::XEventListener> connectivity::ODatabaseMetaDataBase::m_xListenerHelper
protected

Definition at line 68 of file TDatabaseMetaDataBase.hxx.

Referenced by disposing(), and ODatabaseMetaDataBase().


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