LibreOffice Module connectivity (master) 1
|
#include <mdrivermanager.hxx>
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< DriverAccess > | DriverAccessArray |
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 |
Definition at line 57 of file mdrivermanager.hxx.
|
private |
Definition at line 64 of file mdrivermanager.hxx.
|
private |
Definition at line 69 of file mdrivermanager.hxx.
|
explicit |
Definition at line 227 of file mdrivermanager.cxx.
References bootstrapDrivers(), initializeDriverPrecedence(), m_aMutex, and m_xContext.
|
overridevirtual |
Definition at line 242 of file mdrivermanager.cxx.
|
private |
Definition at line 246 of file mdrivermanager.cxx.
References comphelper::EventLogger::log(), m_aDriversBS, m_aEventLogger, m_xContext, drivermanager::SERVICE_SDBC_DRIVER, drivermanager::DriverAccess::sImplementationName, drivermanager::DriverAccess::xComponentFactory, drivermanager::DriverAccess::xDriver, and xFactory.
Referenced by OSDBCDriverManager().
|
overridevirtual |
Definition at line 457 of file mdrivermanager.cxx.
References m_aDriversBS, m_aDriversRT, cppu::BaseMutex::m_aMutex, m_xContext, and ODriverEnumeration.
|
overridevirtual |
Definition at line 391 of file mdrivermanager.cxx.
References implGetDriverForURL(), comphelper::EventLogger::log(), m_aEventLogger, and cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 417 of file mdrivermanager.cxx.
References implGetDriverForURL(), comphelper::EventLogger::log(), m_aEventLogger, and cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 574 of file mdrivermanager.cxx.
References implGetDriverForURL(), comphelper::EventLogger::log(), and m_aEventLogger.
|
overridevirtual |
Definition at line 486 of file mdrivermanager.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 499 of file mdrivermanager.cxx.
|
overridevirtual |
Definition at line 450 of file mdrivermanager.cxx.
References cppu::BaseMutex::m_aMutex, and m_nLoginTimeout.
|
overridevirtual |
Definition at line 516 of file mdrivermanager.cxx.
References m_aDriversRT, cppu::BaseMutex::m_aMutex, and drivermanager::throwNoSuchElementException().
|
overridevirtual |
Definition at line 510 of file mdrivermanager.cxx.
|
overridevirtual |
Definition at line 492 of file mdrivermanager.cxx.
References m_aDriversBS, m_aDriversRT, and cppu::BaseMutex::m_aMutex.
|
private |
Definition at line 593 of file mdrivermanager.cxx.
References connectivity::DriversConfig::getDriverFactoryName(), m_aDriverConfig, m_aDriversBS, m_aDriversRT, and m_xContext.
Referenced by getConnection(), getConnectionWithInfo(), and getDriverByURL().
|
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().
|
overridevirtual |
Definition at line 527 of file mdrivermanager.cxx.
References comphelper::EventLogger::log(), m_aDriversRT, m_aEventLogger, and cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 552 of file mdrivermanager.cxx.
References comphelper::EventLogger::log(), m_aDriversRT, m_aEventLogger, cppu::BaseMutex::m_aMutex, and drivermanager::throwNoSuchElementException().
|
overridevirtual |
Definition at line 443 of file mdrivermanager.cxx.
References cppu::BaseMutex::m_aMutex, and m_nLoginTimeout.
|
overridevirtual |
Definition at line 504 of file mdrivermanager.cxx.
References cppu::supportsService().
|
friend |
Definition at line 59 of file mdrivermanager.hxx.
Referenced by createEnumeration().
|
private |
Definition at line 72 of file mdrivermanager.hxx.
Referenced by implGetDriverForURL().
|
private |
Definition at line 65 of file mdrivermanager.hxx.
Referenced by bootstrapDrivers(), createEnumeration(), hasElements(), implGetDriverForURL(), and initializeDriverPrecedence().
|
private |
Definition at line 70 of file mdrivermanager.hxx.
Referenced by createEnumeration(), getRegisteredObject(), hasElements(), implGetDriverForURL(), registerObject(), and revokeObject().
|
private |
Definition at line 62 of file mdrivermanager.hxx.
Referenced by bootstrapDrivers(), getConnection(), getConnectionWithInfo(), getDriverByURL(), initializeDriverPrecedence(), registerObject(), and revokeObject().
|
private |
Definition at line 73 of file mdrivermanager.hxx.
Referenced by getLoginTimeout(), and setLoginTimeout().
|
private |
Definition at line 61 of file mdrivermanager.hxx.
Referenced by bootstrapDrivers(), createEnumeration(), implGetDriverForURL(), and initializeDriverPrecedence().