27#include <com/sun/star/sdbc/XDriverManager2.hpp>
28#include <com/sun/star/uno/XNamingService.hpp>
29#include <com/sun/star/lang/XServiceInfo.hpp>
30#include <com/sun/star/lang/XSingleComponentFactory.hpp>
40 typedef std::map< OUString, css::uno::Reference< css::sdbc::XDriver > >
DriverCollection;
45 css::uno::Reference< css::sdbc::XDriver >
xDriver;
52 typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriverManager2
53 , css::lang::XServiceInfo
54 , css::uno::XNamingService
61 css::uno::Reference<css::uno::XComponentContext>
m_xContext;
69 typedef std::map< OUString, css::uno::Reference< css::sdbc::XDriver > >
DriverCollection;
78 const css::uno::Reference< css::uno::XComponentContext >& _rxContext );
82 virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL
getConnection(
const OUString& url )
override;
83 virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL
getConnectionWithInfo(
const OUString& url,
const css::uno::Sequence< css::beans::PropertyValue >& info )
override;
88 virtual css::uno::Reference< css::sdbc::XDriver > SAL_CALL
getDriverByURL(
const OUString& url )
override;
91 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
createEnumeration( )
override;
103 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL
getRegisteredObject(
const OUString& Name )
override;
104 virtual void SAL_CALL
registerObject(
const OUString& Name,
const css::uno::Reference< css::uno::XInterface >& Object )
override;
105 virtual void SAL_CALL
revokeObject(
const OUString& Name )
override;
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnectionWithInfo(const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) override
DriverCollection m_aDriversRT
css::uno::Reference< css::sdbc::XDriver > implGetDriverForURL(const OUString &_rURL)
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL setLoginTimeout(sal_Int32 seconds) override
::comphelper::EventLogger m_aEventLogger
void initializeDriverPrecedence()
retrieve the driver order preferences from the configuration and sort m_aDriversBS accordingly.
virtual sal_Bool SAL_CALL hasElements() override
std::map< OUString, css::uno::Reference< css::sdbc::XDriver > > DriverCollection
virtual css::uno::Type SAL_CALL getElementType() override
::connectivity::DriversConfig m_aDriverConfig
virtual void SAL_CALL revokeObject(const OUString &Name) override
sal_Int32 m_nLoginTimeout
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection(const OUString &url) override
virtual ~OSDBCDriverManager() override
virtual void SAL_CALL registerObject(const OUString &Name, const css::uno::Reference< css::uno::XInterface > &Object) override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Reference< css::sdbc::XDriver > SAL_CALL getDriverByURL(const OUString &url) override
OSDBCDriverManager(const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getRegisteredObject(const OUString &Name) override
std::vector< DriverAccess > DriverAccessArray
virtual sal_Int32 SAL_CALL getLoginTimeout() override
DriverAccessArray m_aDriversBS
::cppu::WeakComponentImplHelper< css::sdbc::XDriverManager2, css::lang::XServiceInfo, css::uno::XNamingService > OSDBCDriverManager_Base
std::map< OUString, css::uno::Reference< css::sdbc::XDriver > > DriverCollection
css::uno::Reference< css::lang::XSingleComponentFactory > xComponentFactory
the driver itself
OUString sImplementationName
css::uno::Reference< css::sdbc::XDriver > xDriver
the implementation name of the driver