LibreOffice Module connectivity (master) 1
|
#include <TDatabaseMetaDataBase.hxx>
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 > | |
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 |
Definition at line 32 of file TDatabaseMetaDataBase.hxx.
|
overrideprotectedvirtual |
Definition at line 71 of file TDatabaseMetaDataBase.cxx.
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.
|
inlineprivate |
Definition at line 56 of file TDatabaseMetaDataBase.hxx.
References m_aMutex.
Referenced by getCatalogSeparator(), getIdentifierQuoteString(), getMaxStatements(), getMaxTablesInSelect(), isCatalogAtStart(), storesMixedCaseQuotedIdentifiers(), supportsAlterTableWithAddColumn(), supportsAlterTableWithDropColumn(), supportsCatalogsInDataManipulation(), supportsCatalogsInTableDefinitions(), supportsMixedCaseQuotedIdentifiers(), supportsSchemasInDataManipulation(), and supportsSchemasInTableDefinitions().
|
overridevirtual |
Definition at line 82 of file TDatabaseMetaDataBase.cxx.
References m_xConnection, and m_xListenerHelper.
|
overridevirtual |
Reimplemented in connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 200 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eBestRowIdentifier.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 258 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eCatalogs.
|
overridevirtual |
Definition at line 273 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_getCatalogSeparator_throw(), and m_sCatalogSeparator.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 245 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eColumnPrivileges.
|
overridevirtual |
Definition at line 215 of file TDatabaseMetaDataBase.cxx.
References m_xConnection.
|
overridevirtual |
Definition at line 76 of file TDatabaseMetaDataBase.cxx.
References m_aConnectionInfo.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 207 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eCrossReference.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 175 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eExportedKeys.
|
overridevirtual |
Definition at line 263 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_getIdentifierQuoteString_throw(), and m_sIdentifierQuoteString.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 181 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eImportedKeys.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::dbase::ODbaseDatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 193 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eIndexInfo.
|
overridevirtual |
Definition at line 313 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_getMaxStatements_throw(), and m_MaxStatements.
|
overridevirtual |
Definition at line 318 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_getMaxTablesInSelect_throw(), and m_MaxTablesInSelect.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 187 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::ePrimaryKeys.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 220 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eProcedureColumns.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 227 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eProcedures.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 240 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eSchemas.
|
overridevirtual |
Reimplemented in connectivity::ado::ODatabaseMetaData, connectivity::file::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 252 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eTablePrivileges.
|
overridevirtual |
Definition at line 89 of file TDatabaseMetaDataBase.cxx.
References aMap, Any, connectivity::ODatabaseMetaDataResultSet::eTypeInfo, connectivity::ORowSetValue::fill(), connectivity::ODatabaseMetaDataResultSet::getEmptyValue(), connectivity::SharedResources::getResourceString(), i, impl_getTypeInfo_throw(), m_aConnectionInfo, cppu::BaseMutex::m_aMutex, m_aTypeInfoRows, connectivity::FunctionParser::parseFunction(), and dbtools::throwGenericSQLException().
|
overridevirtual |
Reimplemented in connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Definition at line 234 of file TDatabaseMetaDataBase.cxx.
References connectivity::ODatabaseMetaDataResultSet::eVersionColumns.
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
Implemented in connectivity::evoab::OEvoabDatabaseMetaData, connectivity::ado::ODatabaseMetaData, connectivity::component::OComponentDatabaseMetaData, connectivity::dbase::ODbaseDatabaseMetaData, connectivity::file::ODatabaseMetaData, connectivity::flat::OFlatDatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Referenced by getTypeInfo().
|
protectedpure virtual |
|
protectedpure virtual |
Implemented in connectivity::evoab::OEvoabDatabaseMetaData, connectivity::ado::ODatabaseMetaData, connectivity::dbase::ODbaseDatabaseMetaData, connectivity::file::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Referenced by storesMixedCaseQuotedIdentifiers().
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
Implemented in connectivity::evoab::OEvoabDatabaseMetaData, connectivity::ado::ODatabaseMetaData, connectivity::dbase::ODbaseDatabaseMetaData, connectivity::file::ODatabaseMetaData, connectivity::java_sql_DatabaseMetaData, and connectivity::odbc::ODatabaseMetaData.
Referenced by supportsMixedCaseQuotedIdentifiers().
|
protectedpure virtual |
|
protectedpure virtual |
|
overridevirtual |
Definition at line 268 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_isCatalogAtStart_throw(), and m_isCatalogAtStart.
|
overridevirtual |
Definition at line 323 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_storesMixedCaseQuotedIdentifiers_throw(), and m_storesMixedCaseQuotedIdentifiers.
|
overridevirtual |
Reimplemented in connectivity::dbase::ODbaseDatabaseMetaData.
Definition at line 303 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_supportsAlterTableWithAddColumn_throw(), and m_supportsAlterTableWithAddColumn.
|
overridevirtual |
Reimplemented in connectivity::dbase::ODbaseDatabaseMetaData.
Definition at line 308 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_supportsAlterTableWithDropColumn_throw(), and m_supportsAlterTableWithDropColumn.
|
overridevirtual |
Definition at line 288 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_supportsCatalogsInDataManipulation_throw(), and m_supportsCatalogsInDataManipulation.
|
overridevirtual |
Definition at line 278 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_supportsCatalogsInTableDefinitions_throw(), and m_supportsCatalogsInTableDefinitions.
|
overridevirtual |
Definition at line 298 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_supportsMixedCaseQuotedIdentifiers_throw(), and m_supportsMixedCaseQuotedIdentifiers.
|
overridevirtual |
Definition at line 293 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_supportsSchemasInDataManipulation_throw(), and m_supportsSchemasInDataManipulation.
|
overridevirtual |
Definition at line 283 of file TDatabaseMetaDataBase.cxx.
References callImplMethod(), impl_supportsSchemasInTableDefinitions_throw(), and m_supportsSchemasInTableDefinitions.
|
private |
Definition at line 38 of file TDatabaseMetaDataBase.hxx.
Referenced by getConnectionInfo(), and getTypeInfo().
|
private |
Definition at line 39 of file TDatabaseMetaDataBase.hxx.
Referenced by getTypeInfo().
|
private |
Definition at line 42 of file TDatabaseMetaDataBase.hxx.
Referenced by isCatalogAtStart().
|
private |
Definition at line 52 of file TDatabaseMetaDataBase.hxx.
Referenced by getMaxStatements().
|
private |
Definition at line 53 of file TDatabaseMetaDataBase.hxx.
Referenced by getMaxTablesInSelect().
|
private |
Definition at line 43 of file TDatabaseMetaDataBase.hxx.
Referenced by getCatalogSeparator().
|
private |
Definition at line 44 of file TDatabaseMetaDataBase.hxx.
Referenced by getIdentifierQuoteString().
|
private |
Definition at line 54 of file TDatabaseMetaDataBase.hxx.
Referenced by storesMixedCaseQuotedIdentifiers().
|
private |
Definition at line 50 of file TDatabaseMetaDataBase.hxx.
Referenced by supportsAlterTableWithAddColumn().
|
private |
Definition at line 51 of file TDatabaseMetaDataBase.hxx.
Referenced by supportsAlterTableWithDropColumn().
|
private |
Definition at line 47 of file TDatabaseMetaDataBase.hxx.
Referenced by supportsCatalogsInDataManipulation().
|
private |
Definition at line 45 of file TDatabaseMetaDataBase.hxx.
Referenced by supportsCatalogsInTableDefinitions().
|
private |
Definition at line 49 of file TDatabaseMetaDataBase.hxx.
Referenced by supportsMixedCaseQuotedIdentifiers().
|
private |
Definition at line 48 of file TDatabaseMetaDataBase.hxx.
Referenced by supportsSchemasInDataManipulation().
|
private |
Definition at line 46 of file TDatabaseMetaDataBase.hxx.
Referenced by supportsSchemasInTableDefinitions().
|
protected |
Definition at line 67 of file TDatabaseMetaDataBase.hxx.
Referenced by disposing(), getConnection(), and ODatabaseMetaDataBase().
|
protected |
Definition at line 68 of file TDatabaseMetaDataBase.hxx.
Referenced by disposing(), and ODatabaseMetaDataBase().