LibreOffice Module connectivity (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pq_sdbc_driver::Connection Class Reference

#include <pq_connection.hxx>

Inheritance diagram for pq_sdbc_driver::Connection:
[legend]
Collaboration diagram for pq_sdbc_driver::Connection:
[legend]

Public Member Functions

 Connection (const rtl::Reference< comphelper::RefCountedMutex > &refMutex, css::uno::Reference< css::uno::XComponentContext > ctx)
 
virtual ~Connection () override
 
virtual void SAL_CALL close () override
 
virtual css::uno::Reference< css::sdbc::XStatement > SAL_CALL createStatement () override
 
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareStatement (const OUString &sql) override
 
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareCall (const OUString &sql) override
 
virtual OUString SAL_CALL nativeSQL (const OUString &sql) override
 
virtual void SAL_CALL setAutoCommit (sal_Bool autoCommit) override
 
virtual sal_Bool SAL_CALL getAutoCommit () override
 
virtual void SAL_CALL commit () override
 
virtual void SAL_CALL rollback () override
 
virtual sal_Bool SAL_CALL isClosed () override
 
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL getMetaData () override
 
virtual void SAL_CALL setReadOnly (sal_Bool readOnly) override
 
virtual sal_Bool SAL_CALL isReadOnly () override
 
virtual void SAL_CALL setCatalog (const OUString &catalog) override
 
virtual OUString SAL_CALL getCatalog () override
 
virtual void SAL_CALL setTransactionIsolation (sal_Int32 level) override
 
virtual sal_Int32 SAL_CALL getTransactionIsolation () override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTypeMap () override
 
virtual void SAL_CALL setTypeMap (const css::uno::Reference< css::container::XNameAccess > &typeMap) override
 
virtual css::uno::Any SAL_CALL getWarnings () override
 
virtual void SAL_CALL clearWarnings () override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTables () override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getUsers () override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getViews () override
 
virtual void SAL_CALL disposing () override
 
void removeFromWeakMap (const ::rtl::ByteSequence &seq)
 

Private Member Functions

void checkClosed ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_ctx
 
css::uno::Reference< css::container::XNameAccess > m_typeMap
 
ConnectionSettings m_settings
 
::rtl::Reference< comphelper::RefCountedMutexm_xMutex
 
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_meta
 
WeakHashMap m_myStatements
 

Detailed Description

Definition at line 120 of file pq_connection.hxx.

Constructor & Destructor Documentation

◆ Connection()

pq_sdbc_driver::Connection::Connection ( const rtl::Reference< comphelper::RefCountedMutex > &  refMutex,
css::uno::Reference< css::uno::XComponentContext >  ctx 
)

Definition at line 117 of file pq_connection.cxx.

References ctx.

◆ ~Connection()

pq_sdbc_driver::Connection::~Connection ( )
overridevirtual

Member Function Documentation

◆ checkClosed()

void pq_sdbc_driver::Connection::checkClosed ( )
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 520 of file pq_connection.cxx.

References Any, m_settings, and pq_sdbc_driver::ConnectionSettings::pConnection.

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

◆ clearWarnings()

void pq_sdbc_driver::Connection::clearWarnings ( )
overridevirtual

Definition at line 323 of file pq_connection.cxx.

◆ close()

void pq_sdbc_driver::Connection::close ( )
overridevirtual

◆ commit()

void pq_sdbc_driver::Connection::commit ( )
overridevirtual

Definition at line 239 of file pq_connection.cxx.

◆ createStatement()

Reference< XStatement > pq_sdbc_driver::Connection::createStatement ( )
overridevirtual

Definition at line 186 of file pq_connection.cxx.

References checkClosed(), m_myStatements, m_settings, and m_xMutex.

◆ disposing()

void pq_sdbc_driver::Connection::disposing ( )
overridevirtual

Definition at line 515 of file pq_connection.cxx.

References close().

◆ getAutoCommit()

sal_Bool pq_sdbc_driver::Connection::getAutoCommit ( )
overridevirtual

Definition at line 233 of file pq_connection.cxx.

◆ getCatalog()

OUString pq_sdbc_driver::Connection::getCatalog ( )
overridevirtual

◆ getMetaData()

Reference< XDatabaseMetaData > pq_sdbc_driver::Connection::getMetaData ( )
overridevirtual

Definition at line 254 of file pq_connection.cxx.

References checkClosed(), m_meta, m_settings, and m_xMutex.

◆ getTables()

Reference< XNameAccess > pq_sdbc_driver::Connection::getTables ( )
overridevirtual

◆ getTransactionIsolation()

sal_Int32 pq_sdbc_driver::Connection::getTransactionIsolation ( )
overridevirtual

Definition at line 297 of file pq_connection.cxx.

◆ getTypeMap()

Reference< XNameAccess > pq_sdbc_driver::Connection::getTypeMap ( )
overridevirtual

Definition at line 303 of file pq_connection.cxx.

References m_typeMap, m_xMutex, and t.

◆ getUsers()

Reference< XNameAccess > pq_sdbc_driver::Connection::getUsers ( )
overridevirtual

◆ getViews()

Reference< XNameAccess > pq_sdbc_driver::Connection::getViews ( )
overridevirtual

◆ getWarnings()

Any pq_sdbc_driver::Connection::getWarnings ( )
overridevirtual

Definition at line 318 of file pq_connection.cxx.

References Any.

◆ initialize()

void pq_sdbc_driver::Connection::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

◆ isClosed()

sal_Bool pq_sdbc_driver::Connection::isClosed ( )
overridevirtual

◆ isReadOnly()

sal_Bool pq_sdbc_driver::Connection::isReadOnly ( )
overridevirtual

Definition at line 269 of file pq_connection.cxx.

◆ nativeSQL()

OUString pq_sdbc_driver::Connection::nativeSQL ( const OUString &  sql)
overridevirtual

Definition at line 223 of file pq_connection.cxx.

◆ prepareCall()

Reference< XPreparedStatement > pq_sdbc_driver::Connection::prepareCall ( const OUString &  sql)
overridevirtual

Definition at line 215 of file pq_connection.cxx.

References Any.

◆ prepareStatement()

Reference< XPreparedStatement > pq_sdbc_driver::Connection::prepareStatement ( const OUString &  sql)
overridevirtual

◆ removeFromWeakMap()

void pq_sdbc_driver::Connection::removeFromWeakMap ( const ::rtl::ByteSequence &  seq)

Definition at line 177 of file pq_connection.cxx.

References m_myStatements, and m_xMutex.

◆ rollback()

void pq_sdbc_driver::Connection::rollback ( )
overridevirtual

Definition at line 244 of file pq_connection.cxx.

◆ setAutoCommit()

void pq_sdbc_driver::Connection::setAutoCommit ( sal_Bool  autoCommit)
overridevirtual

Definition at line 228 of file pq_connection.cxx.

◆ setCatalog()

void pq_sdbc_driver::Connection::setCatalog ( const OUString &  catalog)
overridevirtual

Definition at line 275 of file pq_connection.cxx.

◆ setReadOnly()

void pq_sdbc_driver::Connection::setReadOnly ( sal_Bool  readOnly)
overridevirtual

Definition at line 263 of file pq_connection.cxx.

◆ setTransactionIsolation()

void pq_sdbc_driver::Connection::setTransactionIsolation ( sal_Int32  level)
overridevirtual

Definition at line 292 of file pq_connection.cxx.

◆ setTypeMap()

virtual void SAL_CALL pq_sdbc_driver::Connection::setTypeMap ( const css::uno::Reference< css::container::XNameAccess > &  typeMap)
overridevirtual

Member Data Documentation

◆ m_ctx

css::uno::Reference< css::uno::XComponentContext > pq_sdbc_driver::Connection::m_ctx
private

Definition at line 122 of file pq_connection.hxx.

Referenced by initialize().

◆ m_meta

css::uno::Reference< css::sdbc::XDatabaseMetaData > pq_sdbc_driver::Connection::m_meta
private

Definition at line 126 of file pq_connection.hxx.

Referenced by close(), and getMetaData().

◆ m_myStatements

WeakHashMap pq_sdbc_driver::Connection::m_myStatements
private

Definition at line 127 of file pq_connection.hxx.

Referenced by close(), createStatement(), prepareStatement(), and removeFromWeakMap().

◆ m_settings

ConnectionSettings pq_sdbc_driver::Connection::m_settings
private

◆ m_typeMap

css::uno::Reference< css::container::XNameAccess > pq_sdbc_driver::Connection::m_typeMap
private

Definition at line 123 of file pq_connection.hxx.

Referenced by getTypeMap().

◆ m_xMutex

::rtl::Reference< comphelper::RefCountedMutex > pq_sdbc_driver::Connection::m_xMutex
private

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