39#include <com/sun/star/lang/XSingleComponentFactory.hpp>
45using com::sun::star::uno::XInterface;
46using com::sun::star::uno::UNO_QUERY;
47using com::sun::star::uno::XComponentContext;
48using com::sun::star::uno::Any;
50using com::sun::star::beans::PropertyValue;
52using com::sun::star::sdbc::XConnection;
53using com::sun::star::sdbc::DriverPropertyInfo;
55using com::sun::star::sdbcx::XTablesSupplier;
69 m_smgr->createInstanceWithArgumentsAndContext(
70 "org.openoffice.comp.connectivity.pq.Connection.noext",
77 return url.startsWith(
"sdbc:postgresql:" );
100 return "org.openoffice.comp.connectivity.pq.Driver.noext";
110 return {
"com.sun.star.sdbc.Driver" };
134extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
136 css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any>
const&)
virtual void SAL_CALL disposing() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
css::uno::Reference< css::lang::XMultiComponentFactory > m_smgr
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
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * connectivity_pq_sdbc_driver_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)