LibreOffice Module connectivity (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
connectivity::mysqlc::OConnection Class Referencefinal

#include <mysqlc_connection.hxx>

Inheritance diagram for connectivity::mysqlc::OConnection:
[legend]
Collaboration diagram for connectivity::mysqlc::OConnection:
[legend]

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 ConnectionSettingsgetConnectionSettings () const
 
OUString transFormPreparedStatement (const OUString &_sSQL)
 
const MysqlCDrivergetDriver () 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< MysqlCDriverm_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
 

Detailed Description

Definition at line 79 of file mysqlc_connection.hxx.

Constructor & Destructor Documentation

◆ OConnection()

OConnection::OConnection ( MysqlCDriver _rDriver)

Definition at line 52 of file mysqlc_connection.cxx.

References m_aMutex.

◆ ~OConnection()

OConnection::~OConnection ( )
overridevirtual

Definition at line 61 of file mysqlc_connection.cxx.

References close(), and isClosed().

Member Function Documentation

◆ clearWarnings()

void SAL_CALL OConnection::clearWarnings ( )
override

Definition at line 424 of file mysqlc_connection.cxx.

◆ close()

void SAL_CALL OConnection::close ( )
override

◆ commit()

void SAL_CALL OConnection::commit ( )
override

◆ construct()

void connectivity::mysqlc::OConnection::construct ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
Exceptions
SQLException

◆ createCatalog()

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.

◆ createStatement()

Reference< XStatement > SAL_CALL OConnection::createStatement ( )
override

◆ disposing()

void OConnection::disposing ( )
overridevirtual

◆ getAutoCommit()

sal_Bool SAL_CALL OConnection::getAutoCommit ( )
override

◆ getCatalog()

OUString SAL_CALL OConnection::getCatalog ( )
override

◆ getConnectionEncoding()

rtl_TextEncoding connectivity::mysqlc::OConnection::getConnectionEncoding ( ) const
inline

◆ getConnectionSettings()

const ConnectionSettings & connectivity::mysqlc::OConnection::getConnectionSettings ( ) const
inline

Definition at line 179 of file mysqlc_connection.hxx.

References m_settings.

Referenced by connectivity::mysqlc::ODatabaseMetaData::getURL().

◆ getDriver()

const MysqlCDriver & connectivity::mysqlc::OConnection::getDriver ( ) const
inline

Definition at line 182 of file mysqlc_connection.hxx.

References m_xDriver.

◆ getImplementationName()

OUString OConnection::getImplementationName ( )
overridevirtual

Definition at line 200 of file mysqlc_connection.cxx.

◆ getMetaData()

Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData ( )
override

◆ getMysqlConnection()

MYSQL * connectivity::mysqlc::OConnection::getMysqlConnection ( )
inline

Definition at line 98 of file mysqlc_connection.hxx.

References m_mysql.

Referenced by connectivity::mysqlc::OPreparedResultSet::fetchResult().

◆ getMysqlVersion()

sal_Int32 OConnection::getMysqlVersion ( )

◆ getSomething()

sal_Int64 SAL_CALL OConnection::getSomething ( const css::uno::Sequence< sal_Int8 > &  rId)
overridevirtual

Definition at line 492 of file mysqlc_connection.cxx.

References comphelper::getSomethingImpl().

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > OConnection::getSupportedServiceNames ( )
overridevirtual

Definition at line 205 of file mysqlc_connection.cxx.

◆ getTransactionIsolation()

sal_Int32 SAL_CALL OConnection::getTransactionIsolation ( )
override

◆ getTypeMap()

Reference< XNameAccess > SAL_CALL OConnection::getTypeMap ( )
override

◆ getUnoTunnelId()

const Sequence< sal_Int8 > & OConnection::getUnoTunnelId ( )
static

Definition at line 498 of file mysqlc_connection.cxx.

References comphelper::UnoIdInit::getSeq().

◆ getWarnings()

Any SAL_CALL OConnection::getWarnings ( )
override

Definition at line 417 of file mysqlc_connection.cxx.

References Any, and x.

◆ isClosed()

sal_Bool SAL_CALL OConnection::isClosed ( )
override

Definition at line 309 of file mysqlc_connection.cxx.

References cppu::BaseMutex::m_aMutex.

Referenced by ~OConnection().

◆ isReadOnly()

sal_Bool SAL_CALL OConnection::isReadOnly ( )
override

◆ nativeSQL()

OUString SAL_CALL OConnection::nativeSQL ( const OUString &  sql)
override

Definition at line 258 of file mysqlc_connection.cxx.

◆ prepareCall()

Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall ( const OUString &  sql)
override

◆ prepareStatement()

Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement ( const OUString &  sql)
override

◆ rollback()

void SAL_CALL OConnection::rollback ( )
override

◆ setAutoCommit()

void SAL_CALL OConnection::setAutoCommit ( sal_Bool  autoCommit)
override

◆ setCatalog()

void SAL_CALL OConnection::setCatalog ( const OUString &  catalog)
override

◆ setReadOnly()

void SAL_CALL OConnection::setReadOnly ( sal_Bool  readOnly)
override

◆ setTransactionIsolation()

void SAL_CALL OConnection::setTransactionIsolation ( sal_Int32  level)
override

◆ setTypeMap()

void SAL_CALL connectivity::mysqlc::OConnection::setTypeMap ( const css::uno::Reference< css::container::XNameAccess > &  typeMap)
override

◆ supportsService()

sal_Bool OConnection::supportsService ( OUString const &  ServiceName)
overridevirtual

Definition at line 210 of file mysqlc_connection.cxx.

References ServiceName, and cppu::supportsService().

◆ transFormPreparedStatement()

OUString OConnection::transFormPreparedStatement ( const OUString &  _sSQL)

Definition at line 458 of file mysqlc_connection.cxx.

References Any, Exception, m_xDriver, and m_xParameterSubstitution.

Member Data Documentation

◆ m_aStatements

OWeakRefArray connectivity::mysqlc::OConnection::m_aStatements
private

Definition at line 92 of file mysqlc_connection.hxx.

Referenced by createStatement(), disposing(), and prepareStatement().

◆ m_mysql

MYSQL connectivity::mysqlc::OConnection::m_mysql
private

◆ m_settings

ConnectionSettings connectivity::mysqlc::OConnection::m_settings
private

◆ m_typeMap

css::uno::Reference<css::container::XNameAccess> connectivity::mysqlc::OConnection::m_typeMap
private

Definition at line 84 of file mysqlc_connection.hxx.

Referenced by getTypeMap().

◆ m_xCatalog

css::uno::WeakReference<css::sdbcx::XTablesSupplier> connectivity::mysqlc::OConnection::m_xCatalog
private

Definition at line 89 of file mysqlc_connection.hxx.

Referenced by createCatalog().

◆ m_xDriver

rtl::Reference<MysqlCDriver> connectivity::mysqlc::OConnection::m_xDriver
private

Definition at line 96 of file mysqlc_connection.hxx.

Referenced by getDriver(), and transFormPreparedStatement().

◆ m_xMetaData

css::uno::WeakReference<css::sdbc::XDatabaseMetaData> connectivity::mysqlc::OConnection::m_xMetaData
private

Definition at line 90 of file mysqlc_connection.hxx.

Referenced by disposing(), and getMetaData().

◆ m_xParameterSubstitution

css::uno::Reference<css::util::XStringSubstitution> connectivity::mysqlc::OConnection::m_xParameterSubstitution
private

Definition at line 85 of file mysqlc_connection.hxx.

Referenced by transFormPreparedStatement().


The documentation for this class was generated from the following files: