22using namespace css::uno;
23using namespace css::lang;
24using namespace css::beans;
25using namespace css::sdbc;
26using namespace css::sdbcx;
32MysqlCDriver::MysqlCDriver(
const Reference<XMultiServiceFactory>& _rxFactory)
34 , m_xFactory(_rxFactory)
45 Reference<XComponent> xComp(connection.get(), UNO_QUERY);
53 ODriver_BASE::disposing();
59 return "com.sun.star.comp.sdbc.mysqlc.MysqlCDriver";
64 return {
"com.sun.star.sdbc.Driver",
"com.sun.star.sdbcx.Driver" };
80 const Sequence<PropertyValue>& info)
92 pCon->construct(url, info);
99 return url.startsWith(
"sdbc:mysqlc:") || url.startsWith(
"sdbc:mysql:mysqlc:");
102Sequence<DriverPropertyInfo> SAL_CALL
107 return { {
"Hostname",
"Name of host",
true,
"localhost", {} },
108 {
"Port",
"Port",
true,
"3306", {} } };
111 return Sequence<DriverPropertyInfo>();
118Reference<XTablesSupplier>
121 if (
OConnection* pConnection = comphelper::getFromUnoTunnel<OConnection>(rConnection))
122 return pConnection->createCatalog();
126Reference<XTablesSupplier> SAL_CALL
129 Reference<XConnection> xConnection =
connect(rURL, rInfo);
144 throw DisposedException();
OUString SAL_CALL getImplementationName() override
static OUString getImplementationName_Static()
static Sequence< OUString > getSupportedServiceNames_Static()
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL getDataDefinitionByConnection(const css::uno::Reference< css::sdbc::XConnection > &rxConnection) override
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL getDataDefinitionByURL(const OUString &rsURL, const css::uno::Sequence< css::beans::PropertyValue > &rInfo) override
Reference< css::sdbc::XConnection > SAL_CALL connect(const OUString &url, const Sequence< css::beans::PropertyValue > &info) override
Sequence< OUString > SAL_CALL getSupportedServiceNames() override
sal_Bool SAL_CALL acceptsURL(const OUString &url) override
OWeakRefArray m_xConnections
sal_Int32 SAL_CALL getMajorVersion() override
Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo(const OUString &url, const Sequence< css::beans::PropertyValue > &info) override
void SAL_CALL disposing() override
sal_Int32 SAL_CALL getMinorVersion() override
sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
void checkDisposed(bool _bThrow)
::cppu::WeakComponentImplHelper< css::sdbc::XDriver, css::sdbcx::XDataDefinitionSupplier, css::lang::XServiceInfo > ODriver_BASE
Reference< XInterface > MysqlCDriver_CreateInstance(const Reference< XMultiServiceFactory > &_rxFactory)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)