LibreOffice Module connectivity (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
drivermanager::OSDBCDriverManager Class Referencefinal

#include <mdrivermanager.hxx>

Inheritance diagram for drivermanager::OSDBCDriverManager:
[legend]
Collaboration diagram for drivermanager::OSDBCDriverManager:
[legend]

Public Member Functions

 OSDBCDriverManager (const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
 
virtual ~OSDBCDriverManager () override
 
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection (const OUString &url) override
 
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnectionWithInfo (const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) override
 
virtual void SAL_CALL setLoginTimeout (sal_Int32 seconds) override
 
virtual sal_Int32 SAL_CALL getLoginTimeout () override
 
virtual css::uno::Reference< css::sdbc::XDriver > SAL_CALL getDriverByURL (const OUString &url) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
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::uno::XInterface > SAL_CALL getRegisteredObject (const OUString &Name) override
 
virtual void SAL_CALL registerObject (const OUString &Name, const css::uno::Reference< css::uno::XInterface > &Object) override
 
virtual void SAL_CALL revokeObject (const OUString &Name) override
 

Private Types

typedef std::vector< DriverAccessDriverAccessArray
 
typedef std::map< OUString, css::uno::Reference< css::sdbc::XDriver > > DriverCollection
 

Private Member Functions

css::uno::Reference< css::sdbc::XDriver > implGetDriverForURL (const OUString &_rURL)
 
void initializeDriverPrecedence ()
 retrieve the driver order preferences from the configuration and sort m_aDriversBS accordingly. More...
 
void bootstrapDrivers ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
::comphelper::EventLogger m_aEventLogger
 
DriverAccessArray m_aDriversBS
 
DriverCollection m_aDriversRT
 
::connectivity::DriversConfig m_aDriverConfig
 
sal_Int32 m_nLoginTimeout
 

Friends

class ODriverEnumeration
 

Additional Inherited Members

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

Detailed Description

Definition at line 57 of file mdrivermanager.hxx.

Member Typedef Documentation

◆ DriverAccessArray

Definition at line 64 of file mdrivermanager.hxx.

◆ DriverCollection

typedef std::map< OUString, css::uno::Reference< css::sdbc::XDriver > > drivermanager::OSDBCDriverManager::DriverCollection
private

Definition at line 69 of file mdrivermanager.hxx.

Constructor & Destructor Documentation

◆ OSDBCDriverManager()

drivermanager::OSDBCDriverManager::OSDBCDriverManager ( const css::uno::Reference< css::uno::XComponentContext > &  _rxContext)
explicit

◆ ~OSDBCDriverManager()

drivermanager::OSDBCDriverManager::~OSDBCDriverManager ( )
overridevirtual

Definition at line 242 of file mdrivermanager.cxx.

Member Function Documentation

◆ bootstrapDrivers()

void drivermanager::OSDBCDriverManager::bootstrapDrivers ( )
private

◆ createEnumeration()

Reference< XEnumeration > SAL_CALL drivermanager::OSDBCDriverManager::createEnumeration ( )
overridevirtual

◆ getConnection()

Reference< XConnection > SAL_CALL drivermanager::OSDBCDriverManager::getConnection ( const OUString &  url)
overridevirtual

◆ getConnectionWithInfo()

Reference< XConnection > SAL_CALL drivermanager::OSDBCDriverManager::getConnectionWithInfo ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
overridevirtual

◆ getDriverByURL()

Reference< XDriver > SAL_CALL drivermanager::OSDBCDriverManager::getDriverByURL ( const OUString &  url)
overridevirtual

◆ getElementType()

css::uno::Type SAL_CALL drivermanager::OSDBCDriverManager::getElementType ( )
overridevirtual

Definition at line 486 of file mdrivermanager.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

OUString SAL_CALL drivermanager::OSDBCDriverManager::getImplementationName ( )
overridevirtual

Definition at line 499 of file mdrivermanager.cxx.

◆ getLoginTimeout()

sal_Int32 SAL_CALL drivermanager::OSDBCDriverManager::getLoginTimeout ( )
overridevirtual

Definition at line 450 of file mdrivermanager.cxx.

References cppu::BaseMutex::m_aMutex, and m_nLoginTimeout.

◆ getRegisteredObject()

Reference< XInterface > SAL_CALL drivermanager::OSDBCDriverManager::getRegisteredObject ( const OUString &  Name)
overridevirtual

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL drivermanager::OSDBCDriverManager::getSupportedServiceNames ( )
overridevirtual

Definition at line 510 of file mdrivermanager.cxx.

◆ hasElements()

sal_Bool SAL_CALL drivermanager::OSDBCDriverManager::hasElements ( )
overridevirtual

Definition at line 492 of file mdrivermanager.cxx.

References m_aDriversBS, m_aDriversRT, and cppu::BaseMutex::m_aMutex.

◆ implGetDriverForURL()

Reference< XDriver > drivermanager::OSDBCDriverManager::implGetDriverForURL ( const OUString &  _rURL)
private

◆ initializeDriverPrecedence()

void drivermanager::OSDBCDriverManager::initializeDriverPrecedence ( )
private

retrieve the driver order preferences from the configuration and sort m_aDriversBS accordingly.

Definition at line 317 of file mdrivermanager.cxx.

References Exception, i, comphelper::EventLogger::isLoggable(), comphelper::EventLogger::log(), m_aDriversBS, m_aEventLogger, m_xContext, drivermanager::DriverAccess::sImplementationName, and TOOLS_WARN_EXCEPTION.

Referenced by OSDBCDriverManager().

◆ registerObject()

void SAL_CALL drivermanager::OSDBCDriverManager::registerObject ( const OUString &  Name,
const css::uno::Reference< css::uno::XInterface > &  Object 
)
overridevirtual

◆ revokeObject()

void SAL_CALL drivermanager::OSDBCDriverManager::revokeObject ( const OUString &  Name)
overridevirtual

◆ setLoginTimeout()

void SAL_CALL drivermanager::OSDBCDriverManager::setLoginTimeout ( sal_Int32  seconds)
overridevirtual

Definition at line 443 of file mdrivermanager.cxx.

References cppu::BaseMutex::m_aMutex, and m_nLoginTimeout.

◆ supportsService()

sal_Bool SAL_CALL drivermanager::OSDBCDriverManager::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 504 of file mdrivermanager.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

◆ ODriverEnumeration

friend class ODriverEnumeration
friend

Definition at line 59 of file mdrivermanager.hxx.

Referenced by createEnumeration().

Member Data Documentation

◆ m_aDriverConfig

::connectivity::DriversConfig drivermanager::OSDBCDriverManager::m_aDriverConfig
private

Definition at line 72 of file mdrivermanager.hxx.

Referenced by implGetDriverForURL().

◆ m_aDriversBS

DriverAccessArray drivermanager::OSDBCDriverManager::m_aDriversBS
private

◆ m_aDriversRT

DriverCollection drivermanager::OSDBCDriverManager::m_aDriversRT
private

◆ m_aEventLogger

::comphelper::EventLogger drivermanager::OSDBCDriverManager::m_aEventLogger
private

◆ m_nLoginTimeout

sal_Int32 drivermanager::OSDBCDriverManager::m_nLoginTimeout
private

Definition at line 73 of file mdrivermanager.hxx.

Referenced by getLoginTimeout(), and setLoginTimeout().

◆ m_xContext

css::uno::Reference<css::uno::XComponentContext> drivermanager::OSDBCDriverManager::m_xContext
private

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