LibreOffice Module connectivity (master) 1
|
#include <AConnection.hxx>
Public Member Functions | |
OConnection (ODriver *_pDriver) | |
~OConnection () override | |
void | construct (std::u16string_view url, const css::uno::Sequence< css::beans::PropertyValue > &info) |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override |
DECLARE_SERVICE_INFO () | |
virtual void SAL_CALL | disposing () override |
virtual css::uno::Reference< css::sdbc::XStatement > SAL_CALL | createStatement () override |
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareStatement (const OUString &sql) override |
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareCall (const OUString &sql) override |
virtual OUString SAL_CALL | nativeSQL (const OUString &sql) override |
virtual void SAL_CALL | setAutoCommit (sal_Bool autoCommit) override |
virtual sal_Bool SAL_CALL | getAutoCommit () override |
virtual void SAL_CALL | commit () override |
virtual void SAL_CALL | rollback () override |
virtual sal_Bool SAL_CALL | isClosed () override |
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL | getMetaData () override |
virtual void SAL_CALL | setReadOnly (sal_Bool readOnly) override |
virtual sal_Bool SAL_CALL | isReadOnly () override |
virtual void SAL_CALL | setCatalog (const OUString &catalog) override |
virtual OUString SAL_CALL | getCatalog () override |
virtual void SAL_CALL | setTransactionIsolation (sal_Int32 level) override |
virtual sal_Int32 SAL_CALL | getTransactionIsolation () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getTypeMap () override |
virtual void SAL_CALL | setTypeMap (const css::uno::Reference< css::container::XNameAccess > &typeMap) override |
virtual void SAL_CALL | close () override |
virtual css::uno::Any SAL_CALL | getWarnings () override |
virtual void SAL_CALL | clearWarnings () override |
WpADOConnection & | getConnection () |
void | setCatalog (const css::uno::WeakReference< css::sdbcx::XTablesSupplier > &_xCat) |
void | setCatalog (OCatalog *_pCatalog) |
const OTypeInfoMap * | getTypeInfo () const |
OCatalog * | getAdoCatalog () const |
sal_Int32 | getEngineType () const |
ODriver * | getDriver () const |
Public Member Functions inherited from connectivity::OMetaConnection | |
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 | |
static css::uno::Sequence< sal_Int8 > | getUnoTunnelId () |
static const OExtendedTypeInfo * | getTypeInfoFromType (const OTypeInfoMap &_rTypeInfo, DataTypeEnum _nType, const OUString &_sTypeName, sal_Int32 _nPrecision, sal_Int32 _nScale, bool &_brForceToType) |
Static Public Member Functions inherited from connectivity::OMetaConnection | |
::dbtools::OPropertyMap & | getPropMap () |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Protected Member Functions | |
void | buildTypeInfo () |
Protected Attributes | |
OTypeInfoMap | m_aTypeInfo |
css::uno::WeakReference< css::sdbcx::XTablesSupplier > | m_xCatalog |
ODriver * | m_pDriver |
Protected Attributes inherited from connectivity::OMetaConnection | |
::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 |
Private Attributes | |
WpADOConnection | m_aAdoConnection |
OCatalog * | m_pCatalog |
sal_Int32 | m_nEngineType |
bool | m_bClosed |
bool | m_bAutocommit |
Definition at line 48 of file AConnection.hxx.
OConnection::OConnection | ( | ODriver * | _pDriver | ) |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 54 of file AConnection.cxx.
References connectivity::ado::ADOS::CLSID_ADOCONNECTION_21, connectivity::ado::ADOS::GetKeyStr(), hr, connectivity::ado::ADOS::IID_ADOCONNECTION_21, m_aAdoConnection, and m_refCount.
|
override |
Definition at line 82 of file AConnection.cxx.
|
protected |
css::sdbc::SQLException |
Definition at line 395 of file AConnection.cxx.
References connectivity::OTypeInfo::aLocalTypeName, connectivity::ado::OExtendedTypeInfo::aSimpleType, connectivity::OTypeInfo::aTypeName, connectivity::ado::OExtendedTypeInfo::eType, connectivity::ado::WpADOField::get_Value(), connectivity::ado::ADOS::getField(), connectivity::ado::WpADOConnection::getTypeInfo(), m_aAdoConnection, connectivity::OMetaConnection::m_aMutex, m_aTypeInfo, connectivity::ado::ADOS::MapADOType2Jdbc(), connectivity::OTypeInfo::nMaximumScale, nPos, connectivity::OTypeInfo::nPrecision, and connectivity::OTypeInfo::nType.
|
overridevirtual |
Definition at line 391 of file AConnection.cxx.
|
overridevirtual |
Definition at line 375 of file AConnection.cxx.
References connectivity::checkDisposed(), dispose(), and connectivity::OMetaConnection::m_aMutex.
|
overridevirtual |
Definition at line 220 of file AConnection.cxx.
References connectivity::checkDisposed(), connectivity::ado::WpADOConnection::CommitTrans(), m_aAdoConnection, and connectivity::OMetaConnection::m_aMutex.
void connectivity::ado::OConnection::construct | ( | std::u16string_view | url, |
const css::uno::Sequence< css::beans::PropertyValue > & | info | ||
) |
|
overridevirtual |
Definition at line 145 of file AConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and connectivity::OMetaConnection::m_aStatements.
connectivity::ado::OConnection::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Reimplemented from connectivity::OMetaConnection.
Definition at line 453 of file AConnection.cxx.
References connectivity::ado::WpOLEBase< T >::clear(), connectivity::ado::WpADOConnection::Close(), connectivity::OMetaConnection::disposing(), m_aAdoConnection, connectivity::OMetaConnection::m_aMutex, m_aTypeInfo, m_bClosed, m_pDriver, m_xCatalog, and connectivity::OMetaConnection::m_xMetaData.
|
inline |
Definition at line 115 of file AConnection.hxx.
References m_pCatalog, and m_xCatalog.
Referenced by connectivity::ado::OAdoColumn::OAdoColumn().
|
overridevirtual |
Definition at line 211 of file AConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and m_bAutocommit.
|
overridevirtual |
Definition at line 289 of file AConnection.cxx.
References connectivity::checkDisposed(), connectivity::ado::WpADOConnection::GetDefaultDatabase(), m_aAdoConnection, and connectivity::OMetaConnection::m_aMutex.
|
inline |
Definition at line 110 of file AConnection.hxx.
References m_aAdoConnection.
Referenced by connectivity::ado::OAdoTable::alterColumnByName(), connectivity::ado::OKeys::appendObject(), connectivity::ado::OAdoUser::changePassword(), connectivity::ado::OColumns::dropObject(), connectivity::ado::OKeys::dropObject(), connectivity::ado::OTables::dropObject(), connectivity::ado::OViews::dropObject(), connectivity::ado::OPreparedStatement::executeUpdate(), connectivity::ado::ODriver::getDataDefinitionByConnection(), connectivity::ado::OAdoUser::getGrantablePrivileges(), connectivity::ado::OAdoUser::grantPrivileges(), connectivity::ado::OResultSet::hasOrderedBookmarks(), connectivity::ado::OResultSet::next(), connectivity::ado::OStatement_Base::OStatement_Base(), connectivity::ado::OAdoTable::rename(), connectivity::ado::OAdoUser::revokePrivileges(), connectivity::ado::OAdoKey::setFastPropertyValue_NoBroadcast(), and connectivity::ado::OPreparedStatement::setParameter().
|
inline |
Definition at line 123 of file AConnection.hxx.
References m_pDriver.
Referenced by connectivity::ado::OPreparedStatement::OPreparedStatement().
|
inline |
Definition at line 122 of file AConnection.hxx.
References m_nEngineType.
Referenced by connectivity::ado::OAdoColumn::fillPropertyValues(), connectivity::ado::ODatabaseMetaData::impl_getTypeInfo_throw(), connectivity::ado::OCallableStatement::registerNumericOutParameter(), connectivity::ado::OCallableStatement::registerOutParameter(), connectivity::ado::OAdoColumn::setFastPropertyValue_NoBroadcast(), connectivity::ado::ODatabaseMetaData::supportsFullOuterJoins(), and connectivity::ado::ODatabaseMetaData::supportsOuterJoins().
|
overridevirtual |
Definition at line 245 of file AConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and connectivity::OMetaConnection::m_xMetaData.
Referenced by connectivity::ado::OAdoTable::getMetaData(), connectivity::ado::OCatalog::refreshGroups(), connectivity::ado::OCatalog::refreshTables(), connectivity::ado::OCatalog::refreshUsers(), and connectivity::ado::OCatalog::refreshViews().
|
overridevirtual |
Reimplemented from connectivity::OMetaConnection.
Definition at line 474 of file AConnection.cxx.
References comphelper::getSomethingImpl().
|
overridevirtual |
Definition at line 329 of file AConnection.cxx.
References connectivity::checkDisposed(), connectivity::ado::WpADOConnection::get_IsolationLevel(), m_aAdoConnection, connectivity::OMetaConnection::m_aMutex, and connectivity::ado::ADOS::ThrowException().
|
inline |
Definition at line 114 of file AConnection.hxx.
References m_aTypeInfo.
Referenced by connectivity::ado::OAdoColumn::fillPropertyValues().
|
static |
Definition at line 486 of file AConnection.cxx.
References connectivity::ado::OExtendedTypeInfo::aSimpleType, connectivity::OTypeInfo::aTypeName, connectivity::OTypeInfo::nMaximumScale, and connectivity::OTypeInfo::nPrecision.
Referenced by connectivity::ado::OAdoColumn::fillPropertyValues().
|
overridevirtual |
Definition at line 360 of file AConnection.cxx.
References connectivity::checkDisposed(), and connectivity::OMetaConnection::m_aMutex.
Definition at line 480 of file AConnection.cxx.
References comphelper::UnoIdInit::getSeq().
|
overridevirtual |
Definition at line 386 of file AConnection.cxx.
References Any.
|
overridevirtual |
Definition at line 238 of file AConnection.cxx.
References connectivity::ado::WpADOConnection::get_State(), m_aAdoConnection, and connectivity::OMetaConnection::m_aMutex.
|
overridevirtual |
Definition at line 271 of file AConnection.cxx.
References connectivity::checkDisposed(), connectivity::ado::WpADOConnection::get_Mode(), m_aAdoConnection, and connectivity::OMetaConnection::m_aMutex.
|
overridevirtual |
Definition at line 177 of file AConnection.cxx.
References aCommand, connectivity::checkDisposed(), connectivity::ado::WpADOConnection::get_Properties(), connectivity::ado::WpOLEBase< T >::IsValid(), m_aAdoConnection, connectivity::OMetaConnection::m_aMutex, connectivity::ado::OTools::putValue(), and u.
|
overridevirtual |
Definition at line 166 of file AConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and connectivity::OMetaConnection::m_aStatements.
|
overridevirtual |
Definition at line 155 of file AConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and connectivity::OMetaConnection::m_aStatements.
|
overridevirtual |
Definition at line 229 of file AConnection.cxx.
References connectivity::checkDisposed(), m_aAdoConnection, connectivity::OMetaConnection::m_aMutex, and connectivity::ado::WpADOConnection::RollbackTrans().
|
overridevirtual |
Definition at line 198 of file AConnection.cxx.
References connectivity::ado::WpADOConnection::BeginTrans(), connectivity::checkDisposed(), m_aAdoConnection, connectivity::OMetaConnection::m_aMutex, m_bAutocommit, and connectivity::ado::WpADOConnection::RollbackTrans().
|
inline |
Definition at line 111 of file AConnection.hxx.
References m_xCatalog.
|
overridevirtual |
Definition at line 280 of file AConnection.cxx.
References connectivity::checkDisposed(), m_aAdoConnection, connectivity::OMetaConnection::m_aMutex, connectivity::ado::WpADOConnection::PutDefaultDatabase(), and connectivity::ado::ADOS::ThrowException().
Referenced by connectivity::ado::ODriver::getDataDefinitionByConnection().
|
inline |
Definition at line 112 of file AConnection.hxx.
References m_pCatalog.
|
overridevirtual |
Definition at line 261 of file AConnection.cxx.
References connectivity::checkDisposed(), m_aAdoConnection, connectivity::OMetaConnection::m_aMutex, connectivity::ado::WpADOConnection::put_Mode(), and connectivity::ado::ADOS::ThrowException().
|
overridevirtual |
Definition at line 297 of file AConnection.cxx.
References connectivity::checkDisposed(), m_aAdoConnection, connectivity::OMetaConnection::m_aMutex, connectivity::ado::WpADOConnection::put_IsolationLevel(), and connectivity::ado::ADOS::ThrowException().
|
overridevirtual |
|
private |
Definition at line 60 of file AConnection.hxx.
Referenced by buildTypeInfo(), commit(), disposing(), getCatalog(), getConnection(), getTransactionIsolation(), isClosed(), isReadOnly(), nativeSQL(), OConnection(), rollback(), setAutoCommit(), setCatalog(), setReadOnly(), and setTransactionIsolation().
|
protected |
Definition at line 54 of file AConnection.hxx.
Referenced by buildTypeInfo(), disposing(), and getTypeInfo().
|
private |
Definition at line 64 of file AConnection.hxx.
Referenced by getAutoCommit(), and setAutoCommit().
|
private |
Definition at line 63 of file AConnection.hxx.
Referenced by disposing().
|
private |
Definition at line 62 of file AConnection.hxx.
Referenced by getEngineType().
|
private |
Definition at line 61 of file AConnection.hxx.
Referenced by getAdoCatalog(), and setCatalog().
|
protected |
Definition at line 58 of file AConnection.hxx.
Referenced by disposing(), and getDriver().
|
protected |
Definition at line 57 of file AConnection.hxx.
Referenced by disposing(), getAdoCatalog(), and setCatalog().