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

#include <ADriver.hxx>

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

Public Member Functions

 ODriver (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
 ~ODriver () override
 
virtual void SAL_CALL disposing () override
 
css::uno::Reference< css::uno::XComponentContext > getContext () const
 

Private Member Functions

void impl_checkURL_throw (const OUString &_sUrl)
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect (const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) override
 
virtual sal_Bool SAL_CALL acceptsURL (const OUString &url) override
 
virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo (const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) override
 
virtual sal_Int32 SAL_CALL getMajorVersion () override
 
virtual sal_Int32 SAL_CALL getMinorVersion () override
 
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL getDataDefinitionByConnection (const css::uno::Reference< css::sdbc::XConnection > &connection) override
 
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL getDataDefinitionByURL (const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) override
 

Private Attributes

::osl::Mutex m_aMutex
 
connectivity::OWeakRefArray m_xConnections
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
int mnNbCallCoInitializeExForReinit
 

Detailed Description

Definition at line 36 of file ADriver.hxx.

Constructor & Destructor Documentation

◆ ODriver()

ODriver::ODriver ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)

Definition at line 46 of file ADriver.cxx.

References m_aMutex, m_xContext, and mnNbCallCoInitializeExForReinit.

◆ ~ODriver()

ODriver::~ODriver ( )
override

Definition at line 54 of file ADriver.cxx.

References mnNbCallCoInitializeExForReinit.

Member Function Documentation

◆ acceptsURL()

sal_Bool SAL_CALL ODriver::acceptsURL ( const OUString &  url)
overrideprivatevirtual

Definition at line 105 of file ADriver.cxx.

Referenced by impl_checkURL_throw().

◆ connect()

virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connectivity::ado::ODriver::connect ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
overrideprivatevirtual

Referenced by getDataDefinitionByURL().

◆ disposing()

void ODriver::disposing ( )
overridevirtual

Definition at line 59 of file ADriver.cxx.

References m_aMutex, and m_xConnections.

◆ getContext()

css::uno::Reference< css::uno::XComponentContext > connectivity::ado::ODriver::getContext ( ) const
inline

Definition at line 55 of file ADriver.hxx.

References m_xContext.

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

◆ getDataDefinitionByConnection()

Reference< XTablesSupplier > SAL_CALL ODriver::getDataDefinitionByConnection ( const css::uno::Reference< css::sdbc::XConnection > &  connection)
overrideprivatevirtual

◆ getDataDefinitionByURL()

Reference< XTablesSupplier > SAL_CALL ODriver::getDataDefinitionByURL ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
overrideprivatevirtual

Definition at line 200 of file ADriver.cxx.

References connect(), getDataDefinitionByConnection(), and impl_checkURL_throw().

◆ getImplementationName()

OUString ODriver::getImplementationName ( )
overrideprivatevirtual

Definition at line 76 of file ADriver.cxx.

◆ getMajorVersion()

sal_Int32 SAL_CALL ODriver::getMajorVersion ( )
overrideprivatevirtual

Definition at line 155 of file ADriver.cxx.

◆ getMinorVersion()

sal_Int32 SAL_CALL ODriver::getMinorVersion ( )
overrideprivatevirtual

Definition at line 160 of file ADriver.cxx.

◆ getPropertyInfo()

virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL connectivity::ado::ODriver::getPropertyInfo ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
overrideprivatevirtual

◆ getSupportedServiceNames()

Sequence< OUString > ODriver::getSupportedServiceNames ( )
overrideprivatevirtual

Definition at line 81 of file ADriver.cxx.

◆ impl_checkURL_throw()

void ODriver::impl_checkURL_throw ( const OUString &  _sUrl)
private

◆ supportsService()

sal_Bool SAL_CALL ODriver::supportsService ( const OUString &  ServiceName)
overrideprivatevirtual

Definition at line 86 of file ADriver.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_aMutex

::osl::Mutex connectivity::ado::ODriver::m_aMutex
private

Definition at line 38 of file ADriver.hxx.

Referenced by disposing(), and getDataDefinitionByConnection().

◆ m_xConnections

connectivity::OWeakRefArray connectivity::ado::ODriver::m_xConnections
private

Definition at line 40 of file ADriver.hxx.

Referenced by disposing(), and getDataDefinitionByConnection().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > connectivity::ado::ODriver::m_xContext
private

Definition at line 43 of file ADriver.hxx.

Referenced by getContext().

◆ mnNbCallCoInitializeExForReinit

int connectivity::ado::ODriver::mnNbCallCoInitializeExForReinit
private

Definition at line 46 of file ADriver.hxx.

Referenced by ODriver(), and ~ODriver().


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