26#include <com/sun/star/beans/PropertyValue.hpp>
27#include <com/sun/star/lang/XServiceInfo.hpp>
28#include <com/sun/star/lang/XUnoTunnel.hpp>
29#include <com/sun/star/sdbc/ColumnValue.hpp>
30#include <com/sun/star/sdbc/SQLWarning.hpp>
31#include <com/sun/star/sdbc/XConnection.hpp>
32#include <com/sun/star/sdbc/XWarningsSupplier.hpp>
33#include <com/sun/star/util/XStringSubstitution.hpp>
35#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
53class ODatabaseMetaData;
57typedef ::cppu::WeakComponentImplHelper<css::sdbc::XConnection, css::sdbc::XWarningsSupplier,
58 css::lang::XUnoTunnel, css::lang::XServiceInfo>
67 :
encoding(RTL_TEXTENCODING_DONTKNOW)
84 css::uno::Reference<css::container::XNameAccess>
m_typeMap;
89 css::uno::WeakReference<css::sdbcx::XTablesSupplier>
m_xCatalog;
90 css::uno::WeakReference<css::sdbc::XDatabaseMetaData>
m_xMetaData;
105 void construct(
const OUString& url,
const css::uno::Sequence<css::beans::PropertyValue>& info);
116 css::uno::Reference<css::sdbcx::XTablesSupplier>
createCatalog();
119 virtual void SAL_CALL
disposing()
override;
129 virtual sal_Int64 SAL_CALL
getSomething(
const css::uno::Sequence<sal_Int8>& rId)
override;
133 css::uno::Reference<css::sdbc::XStatement> SAL_CALL
createStatement()
override;
135 css::uno::Reference<css::sdbc::XPreparedStatement>
138 css::uno::Reference<css::sdbc::XPreparedStatement>
141 OUString SAL_CALL
nativeSQL(
const OUString&
sql)
override;
147 void SAL_CALL
commit()
override;
153 css::uno::Reference<css::sdbc::XDatabaseMetaData> SAL_CALL
getMetaData()
override;
159 void SAL_CALL
setCatalog(
const OUString& catalog)
override;
167 css::uno::Reference<css::container::XNameAccess> SAL_CALL
getTypeMap()
override;
170 setTypeMap(
const css::uno::Reference<css::container::XNameAccess>& typeMap)
override;
172 void SAL_CALL
close()
override;
const ConnectionSettings & getConnectionSettings() const
sal_Int32 SAL_CALL getTransactionIsolation() override
OWeakRefArray m_aStatements
void SAL_CALL setCatalog(const OUString &catalog) override
void SAL_CALL setAutoCommit(sal_Bool autoCommit) override
void SAL_CALL setTransactionIsolation(sal_Int32 level) override
virtual void SAL_CALL disposing() override
css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL getMetaData() override
css::uno::Reference< css::sdbcx::XTablesSupplier > createCatalog()
Create and/or connect to the sdbcx Catalog.
void SAL_CALL rollback() override
void SAL_CALL setTypeMap(const css::uno::Reference< css::container::XNameAccess > &typeMap) override
OUString SAL_CALL nativeSQL(const OUString &sql) override
void SAL_CALL close() override
sal_Bool SAL_CALL isClosed() override
css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareCall(const OUString &sql) override
OConnection(MysqlCDriver &_rDriver)
rtl_TextEncoding getConnectionEncoding() const
virtual ~OConnection() override
ConnectionSettings m_settings
void construct(const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info)
css::uno::Reference< css::container::XNameAccess > m_typeMap
OUString transFormPreparedStatement(const OUString &_sSQL)
void SAL_CALL clearWarnings() override
css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareStatement(const OUString &sql) override
sal_Bool SAL_CALL getAutoCommit() override
const MysqlCDriver & getDriver() const
void SAL_CALL setReadOnly(sal_Bool readOnly) override
rtl::Reference< MysqlCDriver > m_xDriver
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &rId) override
css::uno::WeakReference< css::sdbcx::XTablesSupplier > m_xCatalog
css::uno::Reference< css::container::XNameAccess > SAL_CALL getTypeMap() override
sal_Bool SAL_CALL isReadOnly() override
virtual OUString SAL_CALL getImplementationName() override
css::uno::Reference< css::util::XStringSubstitution > m_xParameterSubstitution
css::uno::Reference< css::sdbc::XStatement > SAL_CALL createStatement() override
OUString SAL_CALL getCatalog() override
MYSQL * getMysqlConnection()
css::uno::Any SAL_CALL getWarnings() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::WeakReference< css::sdbc::XDatabaseMetaData > m_xMetaData
sal_Int32 getMysqlVersion()
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId()
void SAL_CALL commit() override
virtual sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
std::vector< css::uno::WeakReferenceHelper > OWeakRefArray
OMetaConnection_BASE OConnection_BASE
::cppu::WeakComponentImplHelper< css::sdbc::XConnection, css::sdbc::XWarningsSupplier, css::lang::XUnoTunnel, css::lang::XServiceInfo > OMetaConnection_BASE
rtl_TextEncoding encoding