43#include <com/sun/star/lang/XServiceInfo.hpp>
45#include <com/sun/star/sdbc/XDriver.hpp>
46#include <com/sun/star/sdbcx/XDataDefinitionSupplier.hpp>
48#include <com/sun/star/uno/XComponentContext.hpp>
53#define PQ_SDBC_DRIVER_VERSION SAL_STRINGIFY(PQ_SDBC_MAJOR) "." \
54 SAL_STRINGIFY(PQ_SDBC_MINOR) "." \
55 SAL_STRINGIFY(PQ_SDBC_MICRO)
62typedef cppu::WeakComponentImplHelper<
64 css::lang::XServiceInfo,
68 css::uno::Reference< css::uno::XComponentContext >
m_ctx;
69 css::uno::Reference< css::lang::XMultiComponentFactory >
m_smgr;
72 explicit Driver (
const css::uno::Reference < css::uno::XComponentContext > & ctx )
79 virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL
connect(
81 const css::uno::Sequence< css::beans::PropertyValue >& info )
override;
85 virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL
getPropertyInfo(
87 const css::uno::Sequence< css::beans::PropertyValue >& info )
override;
100 virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL
102 const css::uno::Reference< css::sdbc::XConnection >& connection )
override;
103 virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL
106 const css::uno::Sequence< css::beans::PropertyValue >& info )
override;
109 virtual void SAL_CALL
disposing()
override;
mutable::osl::Mutex m_aMutex
virtual void SAL_CALL disposing() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
css::uno::Reference< css::lang::XMultiComponentFactory > m_smgr
Driver(const css::uno::Reference< css::uno::XComponentContext > &ctx)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() 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_Bool SAL_CALL acceptsURL(const OUString &url) override
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL getDataDefinitionByURL(const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) override
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL getDataDefinitionByConnection(const css::uno::Reference< css::sdbc::XConnection > &connection) override
css::uno::Reference< css::uno::XComponentContext > m_ctx
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect(const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) override
virtual sal_Int32 SAL_CALL getMinorVersion() override
virtual OUString SAL_CALL getImplementationName() override
cppu::WeakComponentImplHelper< css::sdbc::XDriver, css::lang::XServiceInfo, css::sdbcx::XDataDefinitionSupplier > DriverBase