LibreOffice Module connectivity (master) 1
|
#include <mysqlc_connection.hxx>
Public Member Functions | |
MYSQL * | getMysqlConnection () |
sal_Int32 | getMysqlVersion () |
void | construct (const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) |
OConnection (MysqlCDriver &_rDriver) | |
virtual | ~OConnection () override |
rtl_TextEncoding | getConnectionEncoding () const |
css::uno::Reference< css::sdbcx::XTablesSupplier > | createCatalog () |
Create and/or connect to the sdbcx Catalog. More... | |
virtual void SAL_CALL | disposing () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (OUString const &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &rId) override |
css::uno::Reference< css::sdbc::XStatement > SAL_CALL | createStatement () override |
css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareStatement (const OUString &sql) override |
css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareCall (const OUString &sql) override |
OUString SAL_CALL | nativeSQL (const OUString &sql) override |
void SAL_CALL | setAutoCommit (sal_Bool autoCommit) override |
sal_Bool SAL_CALL | getAutoCommit () override |
void SAL_CALL | commit () override |
void SAL_CALL | rollback () override |
sal_Bool SAL_CALL | isClosed () override |
css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL | getMetaData () override |
void SAL_CALL | setReadOnly (sal_Bool readOnly) override |
sal_Bool SAL_CALL | isReadOnly () override |
void SAL_CALL | setCatalog (const OUString &catalog) override |
OUString SAL_CALL | getCatalog () override |
void SAL_CALL | setTransactionIsolation (sal_Int32 level) override |
sal_Int32 SAL_CALL | getTransactionIsolation () override |
css::uno::Reference< css::container::XNameAccess > SAL_CALL | getTypeMap () override |
void SAL_CALL | setTypeMap (const css::uno::Reference< css::container::XNameAccess > &typeMap) override |
void SAL_CALL | close () override |
css::uno::Any SAL_CALL | getWarnings () override |
void SAL_CALL | clearWarnings () override |
const ConnectionSettings & | getConnectionSettings () const |
OUString | transFormPreparedStatement (const OUString &_sSQL) |
const MysqlCDriver & | getDriver () const |
Public Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Static Public Member Functions | |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Private Attributes | |
MYSQL | m_mysql |
ConnectionSettings | m_settings |
css::uno::Reference< css::container::XNameAccess > | m_typeMap |
css::uno::Reference< css::util::XStringSubstitution > | m_xParameterSubstitution |
css::uno::WeakReference< css::sdbcx::XTablesSupplier > | m_xCatalog |
css::uno::WeakReference< css::sdbc::XDatabaseMetaData > | m_xMetaData |
OWeakRefArray | m_aStatements |
rtl::Reference< MysqlCDriver > | m_xDriver |
Additional Inherited Members | |
Protected Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 > | |
~ImplHelper2 () SAL_NOEXCEPT | |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 79 of file mysqlc_connection.hxx.
OConnection::OConnection | ( | MysqlCDriver & | _rDriver | ) |
Definition at line 52 of file mysqlc_connection.cxx.
References m_aMutex.
|
overridevirtual |
Definition at line 61 of file mysqlc_connection.cxx.
References close(), and isClosed().
|
override |
Definition at line 424 of file mysqlc_connection.cxx.
|
override |
Definition at line 400 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), dispose(), cppu::BaseMutex::m_aMutex, and m_mysql.
Referenced by ~OConnection().
|
override |
Definition at line 287 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), getConnectionEncoding(), cppu::BaseMutex::m_aMutex, m_mysql, and mysqlc_sdbc_driver::throwSQLExceptionWithMsg().
void connectivity::mysqlc::OConnection::construct | ( | const OUString & | url, |
const css::uno::Sequence< css::beans::PropertyValue > & | info | ||
) |
SQLException |
Reference< XTablesSupplier > OConnection::createCatalog | ( | ) |
Create and/or connect to the sdbcx Catalog.
This is completely unrelated to the SQL "Catalog".
Definition at line 504 of file mysqlc_connection.cxx.
References cppu::BaseMutex::m_aMutex, and m_xCatalog.
|
override |
Definition at line 215 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), cppu::BaseMutex::m_aMutex, and m_aStatements.
Referenced by connectivity::mysqlc::ODatabaseMetaData::getColumnPrivileges(), connectivity::mysqlc::ODatabaseMetaData::getColumns(), connectivity::mysqlc::ODatabaseMetaData::getImportedKeys(), connectivity::mysqlc::ODatabaseMetaData::getPrimaryKeys(), connectivity::mysqlc::ODatabaseMetaData::getSchemas(), connectivity::mysqlc::ODatabaseMetaData::getUserName(), and connectivity::mysqlc::OResultSetMetaData::isCaseSensitive().
|
overridevirtual |
Definition at line 429 of file mysqlc_connection.cxx.
References connectivity::file::OConnection::disposing(), cppu::BaseMutex::m_aMutex, m_aStatements, and m_xMetaData.
|
override |
Definition at line 275 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), and cppu::BaseMutex::m_aMutex.
|
override |
Definition at line 357 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), and cppu::BaseMutex::m_aMutex.
|
inline |
Definition at line 110 of file mysqlc_connection.hxx.
References connectivity::mysqlc::ConnectionSettings::encoding, and m_settings.
Referenced by commit(), connectivity::mysqlc::ODatabaseMetaData::getDatabaseProductVersion(), connectivity::mysqlc::ODatabaseMetaData::getTableTypes(), connectivity::mysqlc::ODatabaseMetaData::getTypeInfo(), connectivity::mysqlc::OResultSetMetaData::OResultSetMetaData(), prepareStatement(), rollback(), and setAutoCommit().
|
inline |
Definition at line 179 of file mysqlc_connection.hxx.
References m_settings.
Referenced by connectivity::mysqlc::ODatabaseMetaData::getURL().
|
inline |
Definition at line 182 of file mysqlc_connection.hxx.
References m_xDriver.
|
overridevirtual |
Definition at line 200 of file mysqlc_connection.cxx.
|
override |
Definition at line 317 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), cppu::BaseMutex::m_aMutex, m_mysql, and m_xMetaData.
|
inline |
Definition at line 98 of file mysqlc_connection.hxx.
References m_mysql.
Referenced by connectivity::mysqlc::OPreparedResultSet::fetchResult().
sal_Int32 OConnection::getMysqlVersion | ( | ) |
SQLException | |
RuntimeException |
Definition at line 449 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), cppu::BaseMutex::m_aMutex, and m_mysql.
Referenced by connectivity::mysqlc::ODatabaseMetaData::getTableTypes(), connectivity::mysqlc::ODatabaseMetaData::nullsAreSortedAtStart(), connectivity::mysqlc::ODatabaseMetaData::supportsCorrelatedSubqueries(), connectivity::mysqlc::ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions(), connectivity::mysqlc::ODatabaseMetaData::supportsSchemasInProcedureCalls(), connectivity::mysqlc::ODatabaseMetaData::supportsSelectForUpdate(), connectivity::mysqlc::ODatabaseMetaData::supportsStoredProcedures(), connectivity::mysqlc::ODatabaseMetaData::supportsSubqueriesInComparisons(), connectivity::mysqlc::ODatabaseMetaData::supportsSubqueriesInExists(), connectivity::mysqlc::ODatabaseMetaData::supportsSubqueriesInIns(), connectivity::mysqlc::ODatabaseMetaData::supportsSubqueriesInQuantifieds(), connectivity::mysqlc::ODatabaseMetaData::supportsUnion(), and connectivity::mysqlc::ODatabaseMetaData::supportsUnionAll().
|
overridevirtual |
Definition at line 492 of file mysqlc_connection.cxx.
References comphelper::getSomethingImpl().
|
overridevirtual |
Definition at line 205 of file mysqlc_connection.cxx.
|
override |
Definition at line 374 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), and cppu::BaseMutex::m_aMutex.
|
override |
Definition at line 382 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), cppu::BaseMutex::m_aMutex, m_typeMap, and t.
|
static |
Definition at line 498 of file mysqlc_connection.cxx.
References comphelper::UnoIdInit::getSeq().
|
override |
Definition at line 417 of file mysqlc_connection.cxx.
|
override |
Definition at line 309 of file mysqlc_connection.cxx.
References cppu::BaseMutex::m_aMutex.
Referenced by ~OConnection().
|
override |
Definition at line 340 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), cppu::BaseMutex::m_aMutex, m_settings, and connectivity::mysqlc::ConnectionSettings::readOnly.
|
override |
Definition at line 258 of file mysqlc_connection.cxx.
|
override |
Definition at line 249 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), cppu::BaseMutex::m_aMutex, and mysqlc_sdbc_driver::throwFeatureNotImplementedException().
|
override |
Definition at line 228 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), getConnectionEncoding(), cppu::BaseMutex::m_aMutex, m_aStatements, m_mysql, pq_sdbc_driver::OUStringToOString(), and mysqlc_sdbc_driver::throwSQLExceptionWithMsg().
|
override |
Definition at line 298 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), getConnectionEncoding(), cppu::BaseMutex::m_aMutex, m_mysql, and mysqlc_sdbc_driver::throwSQLExceptionWithMsg().
|
override |
Definition at line 265 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), getConnectionEncoding(), cppu::BaseMutex::m_aMutex, m_mysql, and mysqlc_sdbc_driver::throwSQLExceptionWithMsg().
|
override |
Definition at line 349 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), and cppu::BaseMutex::m_aMutex.
|
override |
Definition at line 332 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), cppu::BaseMutex::m_aMutex, m_settings, and connectivity::mysqlc::ConnectionSettings::readOnly.
|
override |
Definition at line 366 of file mysqlc_connection.cxx.
References connectivity::mysqlc::checkDisposed(), and cppu::BaseMutex::m_aMutex.
|
override |
|
overridevirtual |
Definition at line 210 of file mysqlc_connection.cxx.
References ServiceName, and cppu::supportsService().
OUString OConnection::transFormPreparedStatement | ( | const OUString & | _sSQL | ) |
Definition at line 458 of file mysqlc_connection.cxx.
References Any, Exception, m_xDriver, and m_xParameterSubstitution.
|
private |
Definition at line 92 of file mysqlc_connection.hxx.
Referenced by createStatement(), disposing(), and prepareStatement().
|
private |
Definition at line 82 of file mysqlc_connection.hxx.
Referenced by close(), commit(), getMetaData(), getMysqlConnection(), getMysqlVersion(), prepareStatement(), rollback(), and setAutoCommit().
|
private |
Definition at line 83 of file mysqlc_connection.hxx.
Referenced by getConnectionEncoding(), getConnectionSettings(), isReadOnly(), and setReadOnly().
|
private |
Definition at line 84 of file mysqlc_connection.hxx.
Referenced by getTypeMap().
|
private |
Definition at line 89 of file mysqlc_connection.hxx.
Referenced by createCatalog().
|
private |
Definition at line 96 of file mysqlc_connection.hxx.
Referenced by getDriver(), and transFormPreparedStatement().
|
private |
Definition at line 90 of file mysqlc_connection.hxx.
Referenced by disposing(), and getMetaData().
|
private |
Definition at line 85 of file mysqlc_connection.hxx.
Referenced by transFormPreparedStatement().