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

delegates all calls to the original driver and extend the existing one with the SDBCX layer. More...

#include <YDriver.hxx>

Inheritance diagram for connectivity::mysql::ODriverDelegator:
[legend]
Collaboration diagram for connectivity::mysql::ODriverDelegator:
[legend]

Public Member Functions

 ODriverDelegator (const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
 creates a new delegator for a mysql driver More...
 
 DECLARE_SERVICE_INFO ()
 
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
 

Protected Member Functions

virtual ~ODriverDelegator () override
 dtor More...
 
virtual void SAL_CALL disposing () override
 

Private Member Functions

css::uno::Reference< css::sdbc::XDriver > loadDriver (std::u16string_view url, const css::uno::Sequence< css::beans::PropertyValue > &info)
 load the driver we want to delegate. More...
 

Private Attributes

TJDBCDrivers m_aJdbcDrivers
 
TWeakPairVector m_aConnections
 
css::uno::Reference< css::sdbc::XDriver > m_xODBCDriver
 
css::uno::Reference< css::sdbc::XDriver > m_xNativeDriver
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

delegates all calls to the original driver and extend the existing one with the SDBCX layer.

Definition at line 55 of file YDriver.hxx.

Constructor & Destructor Documentation

◆ ODriverDelegator()

connectivity::mysql::ODriverDelegator::ODriverDelegator ( const css::uno::Reference< css::uno::XComponentContext > &  _rxContext)

creates a new delegator for a mysql driver

◆ ~ODriverDelegator()

virtual connectivity::mysql::ODriverDelegator::~ODriverDelegator ( )
overrideprotectedvirtual

dtor

Member Function Documentation

◆ acceptsURL()

virtual sal_Bool SAL_CALL connectivity::mysql::ODriverDelegator::acceptsURL ( const OUString &  url)
overridevirtual

◆ connect()

virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connectivity::mysql::ODriverDelegator::connect ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
overridevirtual

◆ DECLARE_SERVICE_INFO()

connectivity::mysql::ODriverDelegator::DECLARE_SERVICE_INFO ( )

◆ disposing()

virtual void SAL_CALL connectivity::mysql::ODriverDelegator::disposing ( )
overrideprotectedvirtual

◆ getDataDefinitionByConnection()

virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL connectivity::mysql::ODriverDelegator::getDataDefinitionByConnection ( const css::uno::Reference< css::sdbc::XConnection > &  connection)
overridevirtual

◆ getDataDefinitionByURL()

virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL connectivity::mysql::ODriverDelegator::getDataDefinitionByURL ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
overridevirtual

◆ getMajorVersion()

virtual sal_Int32 SAL_CALL connectivity::mysql::ODriverDelegator::getMajorVersion ( )
overridevirtual

◆ getMinorVersion()

virtual sal_Int32 SAL_CALL connectivity::mysql::ODriverDelegator::getMinorVersion ( )
overridevirtual

◆ getPropertyInfo()

virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL connectivity::mysql::ODriverDelegator::getPropertyInfo ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
overridevirtual

◆ loadDriver()

css::uno::Reference< css::sdbc::XDriver > connectivity::mysql::ODriverDelegator::loadDriver ( std::u16string_view  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
private

load the driver we want to delegate.

The <member>m_xODBCDriver</member> or <member>m_xDBCDriver</member> may be <NULL> if the driver could not be loaded.

Parameters
urlThe URL.
infoThe property info contains which driver we have to delegate.
Returns
The driver which was currently selected.

Member Data Documentation

◆ m_aConnections

TWeakPairVector connectivity::mysql::ODriverDelegator::m_aConnections
private

Definition at line 59 of file YDriver.hxx.

◆ m_aJdbcDrivers

TJDBCDrivers connectivity::mysql::ODriverDelegator::m_aJdbcDrivers
private

Definition at line 58 of file YDriver.hxx.

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > connectivity::mysql::ODriverDelegator::m_xContext
private

Definition at line 64 of file YDriver.hxx.

◆ m_xNativeDriver

css::uno::Reference< css::sdbc::XDriver > connectivity::mysql::ODriverDelegator::m_xNativeDriver
private

Definition at line 63 of file YDriver.hxx.

◆ m_xODBCDriver

css::uno::Reference< css::sdbc::XDriver > connectivity::mysql::ODriverDelegator::m_xODBCDriver
private

Definition at line 62 of file YDriver.hxx.


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