LibreOffice Module connectivity (master) 1
|
#include <TConnection.hxx>
Public Member Functions | |
OMetaConnection () | |
rtl_TextEncoding | getTextEncoding () const |
const OUString & | getURL () const |
void | setURL (const OUString &_rsUrl) |
void | throwGenericSQLException (TranslateId pErrorResourceId, const css::uno::Reference< css::uno::XInterface > &_xContext) |
const SharedResources & | getResources () const |
void | setConnectionInfo (const css::uno::Sequence< css::beans::PropertyValue > &_aInfo) |
const css::uno::Sequence< css::beans::PropertyValue > & | getConnectionInfo () const |
virtual void SAL_CALL | disposing () override |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override |
Static Public Member Functions | |
::dbtools::OPropertyMap & | getPropMap () |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Protected Attributes | |
::osl::Mutex | m_aMutex |
css::uno::Sequence< css::beans::PropertyValue > | m_aConnectionInfo |
connectivity::OWeakRefArray | m_aStatements |
OUString | m_sURL |
rtl_TextEncoding | m_nTextEncoding |
css::uno::WeakReference< css::sdbc::XDatabaseMetaData > | m_xMetaData |
SharedResources | m_aResources |
Definition at line 41 of file TConnection.hxx.
OMetaConnection::OMetaConnection | ( | ) |
Definition at line 33 of file TConnection.cxx.
References m_aMutex.
|
overridevirtual |
Reimplemented in connectivity::evoab::OEvoabConnection, connectivity::macab::MacabConnection, connectivity::ado::OConnection, connectivity::calc::OCalcConnection, connectivity::file::OConnection, connectivity::java_sql_Connection, connectivity::odbc::OConnection, and connectivity::writer::OWriterConnection.
Definition at line 39 of file TConnection.cxx.
References m_aMutex, m_aStatements, and m_xMetaData.
Referenced by connectivity::evoab::OEvoabConnection::disposing(), connectivity::macab::MacabConnection::disposing(), connectivity::ado::OConnection::disposing(), connectivity::java_sql_Connection::disposing(), and connectivity::odbc::OConnection::disposing().
|
inline |
Definition at line 69 of file TConnection.hxx.
Referenced by connectivity::odbc::OConnection::createStatementHandle().
|
static |
Definition at line 68 of file TConnection.cxx.
Referenced by connectivity::mysql::OTables::addComment(), connectivity::file::OPreparedStatement::AddParameter(), connectivity::mysqlc::Table::alterColumnByIndex(), connectivity::ado::OAdoTable::alterColumnByIndex(), connectivity::OTableHelper::alterColumnByIndex(), connectivity::hsqldb::OHSQLTable::alterColumnByName(), connectivity::mysql::OMySQLTable::alterColumnByName(), connectivity::hsqldb::OHSQLTable::alterColumnType(), connectivity::mysql::OMySQLTable::alterColumnType(), connectivity::OSQLParseTreeIterator::appendColumns(), connectivity::ado::OKeys::appendObject(), connectivity::dbase::ODbaseTables::appendObject(), connectivity::OIndexesHelper::appendObject(), connectivity::OKeysHelper::appendObject(), dbtools::askForParameters(), dbtools::collectColumnInformation(), connectivity::ODatabaseMetaDataResultSet::construct(), connectivity::file::OResultSet::construct(), connectivity::sdbcx::ODescriptor::construct(), connectivity::sdbcx::OIndex::construct(), connectivity::sdbcx::OIndexColumn::construct(), connectivity::sdbcx::OKey::construct(), connectivity::sdbcx::OKeyColumn::construct(), connectivity::firebird::Column::construct(), connectivity::mysqlc::Column::construct(), connectivity::mysqlc::Table::construct(), connectivity::ado::OAdoColumn::construct(), connectivity::ado::OUserExtend::construct(), connectivity::hsqldb::OHSQLColumn::construct(), connectivity::hsqldb::OHSQLTable::construct(), connectivity::hsqldb::OUserExtend::construct(), connectivity::mysql::OMySQLColumn::construct(), connectivity::mysql::OMySQLTable::construct(), connectivity::parse::OParseColumn::construct(), connectivity::parse::OOrderColumn::construct(), connectivity::sdbcx::OColumn::construct(), connectivity::sdbcx::OTable::construct(), connectivity::sdbcx::OView::construct(), connectivity::firebird::OStatementCommonBase::createArrayHelper(), connectivity::macab::MacabResultSet::createArrayHelper(), connectivity::macab::MacabCommonStatement::createArrayHelper(), connectivity::ado::ODatabaseMetaDataResultSet::createArrayHelper(), connectivity::ado::OResultSet::createArrayHelper(), connectivity::ado::OStatement_Base::createArrayHelper(), connectivity::java_sql_Statement_Base::createArrayHelper(), connectivity::java_sql_ResultSet::createArrayHelper(), connectivity::odbc::ODatabaseMetaDataResultSet::createArrayHelper(), connectivity::odbc::OResultSet::createArrayHelper(), connectivity::odbc::OStatement_Base::createArrayHelper(), connectivity::parse::OParseColumn::createColumnsForResultSet(), connectivity::dbase::ODbaseIndex::CreateImpl(), connectivity::dbase::ODbaseIndex::createINFEntry(), connectivity::OIndexColumns::createObject(), connectivity::OKeyColumnsHelper::createObject(), connectivity::dbase::ODbaseIndexColumns::createObject(), connectivity::OColumnsHelper::createObject(), connectivity::OIndexesHelper::createObject(), dbtools::createSDBCXColumn(), dbtools::createStandardColumnPart(), dbtools::createStandardCreateStatement(), dbtools::createStandardKeyStatement(), dbtools::createStandardTypePart(), connectivity::firebird::Views::createView(), connectivity::mysqlc::Views::createView(), connectivity::hsqldb::HViews::createView(), connectivity::mysql::OViews::createView(), connectivity::dbase::ODbaseIndex::DropImpl(), connectivity::hsqldb::OTables::dropObject(), connectivity::OKeysHelper::dropObject(), connectivity::find(), connectivity::OSQLParseTreeIterator::findColumn(), connectivity::findRealName(), connectivity::OSQLParseTreeIterator::findSelectColumn(), connectivity::file::OResultSetMetaData::getColumnName(), connectivity::component::OComponentDatabaseMetaData::getColumns(), connectivity::dbase::ODbaseDatabaseMetaData::getColumns(), connectivity::flat::OFlatDatabaseMetaData::getColumns(), connectivity::file::OResultSetMetaData::getColumnType(), connectivity::file::OResultSetMetaData::getColumnTypeName(), connectivity::dbase::ODbaseIndex::getCompletePath(), dbtools::getConnection_allowException(), connectivity::OSQLParseTreeIterator::getFunctionReturnType(), connectivity::dbase::ODbaseDatabaseMetaData::getIndexInfo(), connectivity::sdbcx::OCollection::getNameForObject(), connectivity::file::OResultSetMetaData::getPrecision(), dbtools::getPrimaryKeyColumns_throw(), connectivity::file::OResultSetMetaData::getScale(), connectivity::OSQLParseTreeIterator::getSelectColumnNames(), connectivity::OSQLParseTreeIterator::impl_getQueryParameterColumns(), connectivity::OSQLParseNode::impl_parseTableNameNodeToString_throw(), dbtools::FilterManager::initialize(), connectivity::file::OResultSetMetaData::isCurrency(), connectivity::file::OResultSetMetaData::isNullable(), connectivity::file::OResultSetMetaData::isReadOnly(), dbtools::lcl_connectRowSet(), connectivity::evoab::OCommonStatement::OCommonStatement(), connectivity::component::OComponentResultSet::OComponentResultSet(), connectivity::dbase::ODbaseResultSet::ODbaseResultSet(), connectivity::evoab::OEvoabResultSet::OEvoabResultSet(), connectivity::flat::OFlatResultSet::OFlatResultSet(), connectivity::file::OStatement_Base::OStatement_Base(), connectivity::OSQLParser::predicateTree(), connectivity::OIndexHelper::refreshColumns(), connectivity::OTableKeyHelper::refreshColumns(), dbtools::FilterManager::setApplyPublicFilter(), connectivity::file::OStatement_Base::SetAssignValue(), connectivity::file::OResultSet::setBoundedColumns(), connectivity::ado::OAdoTable::setFastPropertyValue_NoBroadcast(), dbtools::FilterManager::setFilterComponent(), connectivity::file::OResultSet::sortRows(), and dbtools::TransferFormComponentProperties().
|
inline |
Definition at line 65 of file TConnection.hxx.
Referenced by connectivity::dbase::ODbaseIndex::CreateImpl(), connectivity::file::OPredicateCompiler::execute_Operand(), connectivity::java_sql_Connection::loadDriverFromProperties(), connectivity::dbase::ODbaseIndex::openIndexFile(), and connectivity::file::OConnection::throwUrlNotValid().
|
overridevirtual |
Reimplemented in connectivity::ado::OConnection, and connectivity::file::OConnection.
Definition at line 57 of file TConnection.cxx.
References comphelper::getSomethingImpl().
|
inline |
Definition at line 61 of file TConnection.hxx.
Referenced by connectivity::odbc::ODatabaseMetaData::allProceduresAreCallable(), connectivity::odbc::ODatabaseMetaData::allTablesAreSelectable(), connectivity::dbase::ODbaseIndex::CreateImpl(), connectivity::dbase::ODbaseIndex::createINFEntry(), connectivity::odbc::ODatabaseMetaData::doesMaxRowSizeIncludeBlobs(), connectivity::dbase::ODbaseIndex::DropImpl(), connectivity::odbc::OConnection::getCatalog(), connectivity::odbc::ODatabaseMetaData::getCatalogTerm(), connectivity::odbc::OResultSetMetaData::getCharColAttrib(), connectivity::odbc::ODatabaseMetaData::getDatabaseProductName(), connectivity::odbc::ODatabaseMetaData::getDatabaseProductVersion(), connectivity::odbc::ODatabaseMetaData::getDriverMajorVersion(), connectivity::odbc::ODatabaseMetaData::getDriverMinorVersion(), connectivity::odbc::ODatabaseMetaData::getDriverName(), connectivity::odbc::ODatabaseMetaData::getDriverVersion(), connectivity::odbc::ODatabaseMetaData::getExtraNameCharacters(), connectivity::odbc::ODatabaseMetaData::getProcedureTerm(), connectivity::odbc::ODatabaseMetaData::getSchemaTerm(), connectivity::odbc::ODatabaseMetaData::getSearchStringEscape(), connectivity::odbc::ODatabaseMetaData::getSQLKeywords(), connectivity::odbc::ODatabaseMetaData::getURLImpl(), connectivity::odbc::ODatabaseMetaData::getUserName(), connectivity::odbc::ODatabaseMetaData::impl_getCatalogSeparator_throw(), connectivity::odbc::ODatabaseMetaData::impl_getIdentifierQuoteString_throw(), connectivity::odbc::OConnection::nativeSQL(), connectivity::dbase::ODbaseTable::ODbaseTable(), connectivity::odbc::OConnection::OpenConnection(), connectivity::dbase::ONDXNode::Read(), connectivity::flat::OFlatTable::readLine(), connectivity::odbc::OConnection::setCatalog(), connectivity::odbc::ODatabaseMetaData::supportsColumnAliasing(), connectivity::odbc::ODatabaseMetaData::supportsExpressionsInOrderBy(), connectivity::odbc::ODatabaseMetaData::supportsIntegrityEnhancementFacility(), connectivity::odbc::ODatabaseMetaData::supportsLikeEscapeClause(), connectivity::odbc::ODatabaseMetaData::supportsMultipleResultSets(), connectivity::odbc::ODatabaseMetaData::supportsMultipleTransactions(), connectivity::odbc::ODatabaseMetaData::supportsOrderByUnrelated(), connectivity::odbc::ODatabaseMetaData::supportsStoredProcedures(), and connectivity::dbase::ONDXNode::Write().
Definition at line 62 of file TConnection.cxx.
References comphelper::UnoIdInit::getSeq().
|
inline |
Definition at line 62 of file TConnection.hxx.
References m_sURL.
Referenced by connectivity::dbase::ODbaseIndex::createINFEntry(), connectivity::dbase::ODbaseIndex::DropImpl(), connectivity::dbase::ODbaseIndex::getCompletePath(), connectivity::flat::OFlatTable::getEntry(), connectivity::dbase::ODbaseTable::getEntry(), connectivity::evoab::OEvoabDatabaseMetaData::getURL(), connectivity::calc::OCalcDatabaseMetaData::getURL(), connectivity::dbase::ODbaseDatabaseMetaData::getURL(), connectivity::flat::OFlatDatabaseMetaData::getURL(), connectivity::java_sql_DatabaseMetaData::getURL(), connectivity::odbc::ODatabaseMetaData::getURL(), and connectivity::writer::OWriterDatabaseMetaData::getURL().
|
inline |
Definition at line 67 of file TConnection.hxx.
Referenced by connectivity::odbc::OConnection::Construct().
|
inline |
Definition at line 63 of file TConnection.hxx.
References m_sURL.
void OMetaConnection::throwGenericSQLException | ( | TranslateId | pErrorResourceId, |
const css::uno::Reference< css::uno::XInterface > & | _xContext | ||
) |
Definition at line 74 of file TConnection.cxx.
References _xContext, connectivity::SharedResources::getResourceString(), m_aResources, and dbtools::throwGenericSQLException().
Referenced by connectivity::ado::OGroups::appendObject(), connectivity::ado::OKeys::appendObject(), connectivity::java_sql_Connection::construct(), connectivity::evoab::OEvoabResultSet::construct(), connectivity::dbase::ODbaseIndex::CreateImpl(), connectivity::dbase::ODbaseIndex::DropImpl(), connectivity::file::OPredicateCompiler::execute_BETWEEN(), connectivity::file::OPredicateCompiler::execute_COMPARE(), connectivity::file::OPredicateCompiler::execute_LIKE(), connectivity::file::OPredicateCompiler::execute_Operand(), connectivity::file::OPredicateCompiler::executeFunction(), connectivity::dbase::ODbaseIndex::impl_killFileAndthrowError_throw(), connectivity::file::OPredicateCompiler::start(), and connectivity::file::OSQLAnalyzer::start().
|
protected |
Definition at line 46 of file TConnection.hxx.
Referenced by connectivity::java_sql_Connection::construct(), and connectivity::java_sql_Connection::getConnectionInfo().
|
protected |
Definition at line 44 of file TConnection.hxx.
Referenced by connectivity::ado::OConnection::buildTypeInfo(), connectivity::evoab::OEvoabConnection::close(), connectivity::ado::OConnection::close(), connectivity::odbc::OConnection::close(), connectivity::file::OConnection::close(), connectivity::macab::MacabConnection::commit(), connectivity::ado::OConnection::commit(), connectivity::odbc::OConnection::commit(), connectivity::evoab::OEvoabConnection::createCatalog(), connectivity::macab::MacabConnection::createCatalog(), connectivity::file::OConnection::createCatalog(), connectivity::calc::OCalcConnection::createCatalog(), connectivity::dbase::ODbaseConnection::createCatalog(), connectivity::writer::OWriterConnection::createCatalog(), connectivity::evoab::OEvoabConnection::createStatement(), connectivity::macab::MacabConnection::createStatement(), connectivity::ado::OConnection::createStatement(), connectivity::calc::OCalcConnection::createStatement(), connectivity::dbase::ODbaseConnection::createStatement(), connectivity::java_sql_Connection::createStatement(), connectivity::writer::OWriterConnection::createStatement(), connectivity::evoab::OEvoabConnection::disposing(), connectivity::macab::MacabConnection::disposing(), connectivity::ado::OConnection::disposing(), connectivity::calc::OCalcConnection::disposing(), connectivity::file::OConnection::disposing(), connectivity::java_sql_Connection::disposing(), connectivity::odbc::OConnection::disposing(), disposing(), connectivity::writer::OWriterConnection::disposing(), connectivity::macab::MacabConnection::doClose(), connectivity::macab::MacabConnection::doIsClosed(), connectivity::macab::MacabConnection::getAutoCommit(), connectivity::ado::OConnection::getAutoCommit(), connectivity::file::OConnection::getAutoCommit(), connectivity::odbc::OConnection::getAutoCommit(), connectivity::macab::MacabConnection::getCatalog(), connectivity::ado::OConnection::getCatalog(), connectivity::java_sql_Connection::getCatalog(), connectivity::odbc::OConnection::getCatalog(), connectivity::evoab::OEvoabConnection::getMetaData(), connectivity::macab::MacabConnection::getMetaData(), connectivity::ado::OConnection::getMetaData(), connectivity::file::OConnection::getMetaData(), connectivity::java_sql_Connection::getMetaData(), connectivity::odbc::OConnection::getMetaData(), connectivity::macab::MacabConnection::getTransactionIsolation(), connectivity::ado::OConnection::getTransactionIsolation(), connectivity::java_sql_Connection::getTransactionIsolation(), connectivity::odbc::OConnection::getTransactionIsolation(), connectivity::macab::MacabConnection::getTypeMap(), connectivity::ado::OConnection::getTypeMap(), connectivity::java_sql_Connection::getTypeMap(), connectivity::odbc::OConnection::getTypeMap(), connectivity::java_sql_Connection::getWarnings(), connectivity::evoab::OEvoabConnection::isClosed(), connectivity::ado::OConnection::isClosed(), connectivity::java_sql_Connection::isClosed(), connectivity::odbc::OConnection::isClosed(), connectivity::file::OConnection::isClosed(), connectivity::macab::MacabConnection::isReadOnly(), connectivity::ado::OConnection::isReadOnly(), connectivity::file::OConnection::isReadOnly(), connectivity::java_sql_Connection::isReadOnly(), connectivity::macab::MacabConnection::nativeSQL(), connectivity::ado::OConnection::nativeSQL(), connectivity::java_sql_Connection::nativeSQL(), connectivity::odbc::OConnection::nativeSQL(), connectivity::odbc::OConnection::OpenConnection(), connectivity::macab::MacabConnection::prepareCall(), connectivity::ado::OConnection::prepareCall(), connectivity::calc::OCalcConnection::prepareCall(), connectivity::java_sql_Connection::prepareCall(), connectivity::writer::OWriterConnection::prepareCall(), connectivity::evoab::OEvoabConnection::prepareStatement(), connectivity::macab::MacabConnection::prepareStatement(), connectivity::ado::OConnection::prepareStatement(), connectivity::calc::OCalcConnection::prepareStatement(), connectivity::dbase::ODbaseConnection::prepareStatement(), connectivity::file::OConnection::prepareStatement(), connectivity::java_sql_Connection::prepareStatement(), connectivity::odbc::OConnection::prepareStatement(), connectivity::writer::OWriterConnection::prepareStatement(), connectivity::macab::MacabConnection::rollback(), connectivity::ado::OConnection::rollback(), connectivity::odbc::OConnection::rollback(), connectivity::macab::MacabConnection::setAutoCommit(), connectivity::ado::OConnection::setAutoCommit(), connectivity::file::OConnection::setAutoCommit(), connectivity::odbc::OConnection::setAutoCommit(), connectivity::macab::MacabConnection::setCatalog(), connectivity::ado::OConnection::setCatalog(), connectivity::odbc::OConnection::setCatalog(), connectivity::macab::MacabConnection::setReadOnly(), connectivity::ado::OConnection::setReadOnly(), connectivity::file::OConnection::setReadOnly(), connectivity::odbc::OConnection::setReadOnly(), connectivity::macab::MacabConnection::setTransactionIsolation(), connectivity::ado::OConnection::setTransactionIsolation(), connectivity::java_sql_Connection::setTransactionIsolation(), connectivity::odbc::OConnection::setTransactionIsolation(), connectivity::java_sql_Connection::setTypeMap(), and connectivity::evoab::OEvoabConnection::~OEvoabConnection().
|
protected |
Definition at line 54 of file TConnection.hxx.
Referenced by connectivity::calc::OCalcConnection::acquireDoc(), connectivity::writer::OWriterConnection::acquireDoc(), and throwGenericSQLException().
|
protected |
Definition at line 47 of file TConnection.hxx.
Referenced by connectivity::evoab::OEvoabConnection::createStatement(), connectivity::macab::MacabConnection::createStatement(), connectivity::ado::OConnection::createStatement(), connectivity::calc::OCalcConnection::createStatement(), connectivity::dbase::ODbaseConnection::createStatement(), connectivity::java_sql_Connection::createStatement(), connectivity::writer::OWriterConnection::createStatement(), connectivity::macab::MacabConnection::disposing(), disposing(), connectivity::ado::OConnection::prepareCall(), connectivity::java_sql_Connection::prepareCall(), connectivity::evoab::OEvoabConnection::prepareStatement(), connectivity::macab::MacabConnection::prepareStatement(), connectivity::ado::OConnection::prepareStatement(), connectivity::calc::OCalcConnection::prepareStatement(), connectivity::dbase::ODbaseConnection::prepareStatement(), connectivity::file::OConnection::prepareStatement(), connectivity::java_sql_Connection::prepareStatement(), connectivity::odbc::OConnection::prepareStatement(), and connectivity::writer::OWriterConnection::prepareStatement().
|
protected |
Definition at line 51 of file TConnection.hxx.
Referenced by connectivity::odbc::OConnection::Construct(), and connectivity::file::OConnection::OConnection().
|
protected |
Definition at line 50 of file TConnection.hxx.
Referenced by connectivity::odbc::OConnection::Construct(), and connectivity::odbc::OConnection::createStatementHandle().
|
protected |
Definition at line 53 of file TConnection.hxx.
Referenced by connectivity::macab::MacabConnection::disposing(), connectivity::ado::OConnection::disposing(), disposing(), connectivity::evoab::OEvoabConnection::getMetaData(), connectivity::macab::MacabConnection::getMetaData(), connectivity::ado::OConnection::getMetaData(), connectivity::file::OConnection::getMetaData(), connectivity::java_sql_Connection::getMetaData(), and connectivity::odbc::OConnection::getMetaData().