LibreOffice Module connectivity (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
connectivity::ado::OConnection Class Reference

#include <AConnection.hxx>

Inheritance diagram for connectivity::ado::OConnection:
[legend]
Collaboration diagram for connectivity::ado::OConnection:
[legend]

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
 
WpADOConnectiongetConnection ()
 
void setCatalog (const css::uno::WeakReference< css::sdbcx::XTablesSupplier > &_xCat)
 
void setCatalog (OCatalog *_pCatalog)
 
const OTypeInfoMapgetTypeInfo () const
 
OCataloggetAdoCatalog () const
 
sal_Int32 getEngineType () const
 
ODrivergetDriver () 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 SharedResourcesgetResources () 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_Int8getUnoTunnelId ()
 
static const OExtendedTypeInfogetTypeInfoFromType (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::OPropertyMapgetPropMap ()
 
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
 
ODriverm_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
 
OCatalogm_pCatalog
 
sal_Int32 m_nEngineType
 
bool m_bClosed
 
bool m_bAutocommit
 

Detailed Description

Definition at line 48 of file AConnection.hxx.

Constructor & Destructor Documentation

◆ OConnection()

OConnection::OConnection ( ODriver _pDriver)
Exceptions
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.

◆ ~OConnection()

OConnection::~OConnection ( )
override

Definition at line 82 of file AConnection.cxx.

Member Function Documentation

◆ buildTypeInfo()

void OConnection::buildTypeInfo ( )
protected

◆ clearWarnings()

void SAL_CALL OConnection::clearWarnings ( )
overridevirtual

Definition at line 391 of file AConnection.cxx.

◆ close()

void SAL_CALL OConnection::close ( )
overridevirtual

◆ commit()

void SAL_CALL OConnection::commit ( )
overridevirtual

◆ construct()

void connectivity::ado::OConnection::construct ( std::u16string_view  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)

◆ createStatement()

Reference< XStatement > SAL_CALL OConnection::createStatement ( )
overridevirtual

◆ DECLARE_SERVICE_INFO()

connectivity::ado::OConnection::DECLARE_SERVICE_INFO ( )

◆ disposing()

void OConnection::disposing ( )
overridevirtual

◆ getAdoCatalog()

OCatalog * connectivity::ado::OConnection::getAdoCatalog ( ) const
inline

Definition at line 115 of file AConnection.hxx.

References m_pCatalog, and m_xCatalog.

Referenced by connectivity::ado::OAdoColumn::OAdoColumn().

◆ getAutoCommit()

sal_Bool SAL_CALL OConnection::getAutoCommit ( )
overridevirtual

◆ getCatalog()

OUString SAL_CALL OConnection::getCatalog ( )
overridevirtual

◆ getConnection()

WpADOConnection & connectivity::ado::OConnection::getConnection ( )
inline

◆ getDriver()

ODriver * connectivity::ado::OConnection::getDriver ( ) const
inline

Definition at line 123 of file AConnection.hxx.

References m_pDriver.

Referenced by connectivity::ado::OPreparedStatement::OPreparedStatement().

◆ getEngineType()

sal_Int32 connectivity::ado::OConnection::getEngineType ( ) const
inline

◆ getMetaData()

Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData ( )
overridevirtual

◆ getSomething()

sal_Int64 SAL_CALL OConnection::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Reimplemented from connectivity::OMetaConnection.

Definition at line 474 of file AConnection.cxx.

References comphelper::getSomethingImpl().

◆ getTransactionIsolation()

sal_Int32 SAL_CALL OConnection::getTransactionIsolation ( )
overridevirtual

◆ getTypeInfo()

const OTypeInfoMap * connectivity::ado::OConnection::getTypeInfo ( ) const
inline

Definition at line 114 of file AConnection.hxx.

References m_aTypeInfo.

Referenced by connectivity::ado::OAdoColumn::fillPropertyValues().

◆ getTypeInfoFromType()

const OExtendedTypeInfo * OConnection::getTypeInfoFromType ( const OTypeInfoMap _rTypeInfo,
DataTypeEnum  _nType,
const OUString &  _sTypeName,
sal_Int32  _nPrecision,
sal_Int32  _nScale,
bool &  _brForceToType 
)
static

◆ getTypeMap()

Reference< css::container::XNameAccess > SAL_CALL OConnection::getTypeMap ( )
overridevirtual

◆ getUnoTunnelId()

Sequence< sal_Int8 > OConnection::getUnoTunnelId ( )
static

Definition at line 480 of file AConnection.cxx.

References comphelper::UnoIdInit::getSeq().

◆ getWarnings()

Any SAL_CALL OConnection::getWarnings ( )
overridevirtual

Definition at line 386 of file AConnection.cxx.

References Any.

◆ isClosed()

sal_Bool SAL_CALL OConnection::isClosed ( )
overridevirtual

◆ isReadOnly()

sal_Bool SAL_CALL OConnection::isReadOnly ( )
overridevirtual

◆ nativeSQL()

OUString SAL_CALL OConnection::nativeSQL ( const OUString &  sql)
overridevirtual

◆ prepareCall()

Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall ( const OUString &  sql)
overridevirtual

◆ prepareStatement()

Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement ( const OUString &  sql)
overridevirtual

◆ rollback()

void SAL_CALL OConnection::rollback ( )
overridevirtual

◆ setAutoCommit()

void SAL_CALL OConnection::setAutoCommit ( sal_Bool  autoCommit)
overridevirtual

◆ setCatalog() [1/3]

void connectivity::ado::OConnection::setCatalog ( const css::uno::WeakReference< css::sdbcx::XTablesSupplier > &  _xCat)
inline

Definition at line 111 of file AConnection.hxx.

References m_xCatalog.

◆ setCatalog() [2/3]

void SAL_CALL OConnection::setCatalog ( const OUString &  catalog)
overridevirtual

◆ setCatalog() [3/3]

void connectivity::ado::OConnection::setCatalog ( OCatalog _pCatalog)
inline

Definition at line 112 of file AConnection.hxx.

References m_pCatalog.

◆ setReadOnly()

void SAL_CALL OConnection::setReadOnly ( sal_Bool  readOnly)
overridevirtual

◆ setTransactionIsolation()

void SAL_CALL OConnection::setTransactionIsolation ( sal_Int32  level)
overridevirtual

◆ setTypeMap()

virtual void SAL_CALL connectivity::ado::OConnection::setTypeMap ( const css::uno::Reference< css::container::XNameAccess > &  typeMap)
overridevirtual

Member Data Documentation

◆ m_aAdoConnection

WpADOConnection connectivity::ado::OConnection::m_aAdoConnection
private

◆ m_aTypeInfo

OTypeInfoMap connectivity::ado::OConnection::m_aTypeInfo
protected

Definition at line 54 of file AConnection.hxx.

Referenced by buildTypeInfo(), disposing(), and getTypeInfo().

◆ m_bAutocommit

bool connectivity::ado::OConnection::m_bAutocommit
private

Definition at line 64 of file AConnection.hxx.

Referenced by getAutoCommit(), and setAutoCommit().

◆ m_bClosed

bool connectivity::ado::OConnection::m_bClosed
private

Definition at line 63 of file AConnection.hxx.

Referenced by disposing().

◆ m_nEngineType

sal_Int32 connectivity::ado::OConnection::m_nEngineType
private

Definition at line 62 of file AConnection.hxx.

Referenced by getEngineType().

◆ m_pCatalog

OCatalog* connectivity::ado::OConnection::m_pCatalog
private

Definition at line 61 of file AConnection.hxx.

Referenced by getAdoCatalog(), and setCatalog().

◆ m_pDriver

ODriver* connectivity::ado::OConnection::m_pDriver
protected

Definition at line 58 of file AConnection.hxx.

Referenced by disposing(), and getDriver().

◆ m_xCatalog

css::uno::WeakReference< css::sdbcx::XTablesSupplier> connectivity::ado::OConnection::m_xCatalog
protected

Definition at line 57 of file AConnection.hxx.

Referenced by disposing(), getAdoCatalog(), and setCatalog().


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