22#include <osl/diagnose.h>
34 :m_pConnectionPool(_pPool)
36 OSL_ENSURE(_rxAggregateDriver.is(),
"ODriverWrapper::ODriverWrapper: invalid aggregate!");
37 OSL_ENSURE(
m_pConnectionPool.is(),
"ODriverWrapper::ODriverWrapper: invalid connection pool!");
40 if (_rxAggregateDriver.is())
44 _rxAggregateDriver =
nullptr;
48 OSL_ENSURE(
m_xDriver.is(),
"ODriverWrapper::ODriverWrapper: invalid aggregate (no XDriver)!");
66 Any aReturn = ODriverWrapper_BASE::queryInterface(_rType);
73 Reference< XConnection > xConnection;
78 xConnection =
m_xDriver->connect( url, info );
92 Sequence< DriverPropertyInfo > aInfo;
94 aInfo =
m_xDriver->getPropertyInfo(url, info);
css::uno::Reference< css::sdbc::XDriver > m_xDriver
virtual ~ODriverWrapper() override
dtor
virtual sal_Int32 SAL_CALL getMinorVersion() override
css::uno::Reference< css::uno::XAggregation > m_xDriverAggregate
virtual sal_Int32 SAL_CALL getMajorVersion() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
ODriverWrapper(css::uno::Reference< css::uno::XAggregation > &_rxAggregateDriver, OConnectionPool *_pPool)
creates a new wrapper for a driver
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
rtl::Reference< OConnectionPool > m_pConnectionPool
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect(const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) override