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

#include <MacabConnection.hxx>

Inheritance diagram for connectivity::macab::MacabConnection:
[legend]
Collaboration diagram for connectivity::macab::MacabConnection:
[legend]

Public Member Functions

virtual void construct (const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info)
 
 MacabConnection (MacabDriver *_pDriver)
 
virtual ~MacabConnection () override
 
virtual void SAL_CALL disposing () override
 
 DECLARE_SERVICE_INFO ()
 
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 void SAL_CALL close () override
 
virtual css::uno::Any SAL_CALL getWarnings () override
 
virtual void SAL_CALL clearWarnings () override
 
css::uno::Reference< css::sdbcx::XTablesSupplier > createCatalog ()
 
MacabDrivergetDriver () const
 
MacabAddressBookgetAddressBook () const
 
- Public Member Functions inherited from connectivity::OMetaConnection
 OMetaConnection ()
 
rtl_TextEncoding getTextEncoding () const
 
const OUString & getURL () const
 
void setURL (const OUString &_rsUrl)
 
void throwGenericSQLException (TranslateId pErrorResourceId, const css::uno::Reference< css::uno::XInterface > &_xContext)
 
const SharedResourcesgetResources () const
 
void setConnectionInfo (const css::uno::Sequence< css::beans::PropertyValue > &_aInfo)
 
const css::uno::Sequence< css::beans::PropertyValue > & getConnectionInfo () const
 
virtual void SAL_CALL disposing () override
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 

Protected Attributes

MacabAddressBookm_pAddressBook
 
MacabDriverm_pDriver
 
css::uno::Reference< css::sdbcx::XTablesSupplier > m_xCatalog
 
- Protected Attributes inherited from connectivity::OMetaConnection
::osl::Mutex m_aMutex
 
css::uno::Sequence< css::beans::PropertyValue > m_aConnectionInfo
 
connectivity::OWeakRefArray m_aStatements
 
OUString m_sURL
 
rtl_TextEncoding m_nTextEncoding
 
css::uno::WeakReference< css::sdbc::XDatabaseMetaData > m_xMetaData
 
SharedResources m_aResources
 

Private Member Functions

bool doIsClosed ()
 
void doClose ()
 

Additional Inherited Members

- Static Public Member Functions inherited from connectivity::OMetaConnection
::dbtools::OPropertyMapgetPropMap ()
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Detailed Description

Definition at line 45 of file MacabConnection.hxx.

Constructor & Destructor Documentation

◆ MacabConnection()

MacabConnection::MacabConnection ( MacabDriver _pDriver)
explicit

Definition at line 41 of file MacabConnection.cxx.

◆ ~MacabConnection()

MacabConnection::~MacabConnection ( )
overridevirtual

Definition at line 48 of file MacabConnection.cxx.

References doClose(), doIsClosed(), and m_pDriver.

Member Function Documentation

◆ clearWarnings()

void SAL_CALL MacabConnection::clearWarnings ( )
overridevirtual

Definition at line 263 of file MacabConnection.cxx.

◆ close()

void SAL_CALL MacabConnection::close ( )
overridevirtual

Definition at line 242 of file MacabConnection.cxx.

References doClose().

◆ commit()

void SAL_CALL MacabConnection::commit ( )
overridevirtual

◆ construct()

void MacabConnection::construct ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
virtual
Exceptions
css::sdbc::SQLException

Definition at line 57 of file MacabConnection.cxx.

References m_pAddressBook, and m_refCount.

Referenced by connectivity::macab::MacabDriver::connect().

◆ createCatalog()

Reference< XTablesSupplier > MacabConnection::createCatalog ( )

Definition at line 292 of file MacabConnection.cxx.

References connectivity::OMetaConnection::m_aMutex, and m_xCatalog.

◆ createStatement()

Reference< XStatement > SAL_CALL MacabConnection::createStatement ( )
overridevirtual

◆ DECLARE_SERVICE_INFO()

connectivity::macab::MacabConnection::DECLARE_SERVICE_INFO ( )

◆ disposing()

void MacabConnection::disposing ( )
overridevirtual

◆ doClose()

void MacabConnection::doClose ( )
private

◆ doIsClosed()

bool MacabConnection::doIsClosed ( )
private

Definition at line 147 of file MacabConnection.cxx.

References connectivity::OMetaConnection::m_aMutex.

Referenced by isClosed(), and ~MacabConnection().

◆ getAddressBook()

MacabAddressBook * MacabConnection::getAddressBook ( ) const

◆ getAutoCommit()

sal_Bool SAL_CALL MacabConnection::getAutoCommit ( )
overridevirtual

◆ getCatalog()

OUString SAL_CALL MacabConnection::getCatalog ( )
overridevirtual

◆ getDriver()

MacabDriver * connectivity::macab::MacabConnection::getDriver ( ) const
inline

Definition at line 105 of file MacabConnection.hxx.

References m_pDriver.

◆ getMetaData()

Reference< XDatabaseMetaData > SAL_CALL MacabConnection::getMetaData ( )
overridevirtual

◆ getTransactionIsolation()

sal_Int32 SAL_CALL MacabConnection::getTransactionIsolation ( )
overridevirtual

◆ getTypeMap()

Reference< css::container::XNameAccess > SAL_CALL MacabConnection::getTypeMap ( )
overridevirtual

◆ getWarnings()

Any SAL_CALL MacabConnection::getWarnings ( )
overridevirtual

Definition at line 257 of file MacabConnection.cxx.

References Any.

◆ isClosed()

sal_Bool SAL_CALL MacabConnection::isClosed ( )
overridevirtual

Definition at line 142 of file MacabConnection.cxx.

References doIsClosed().

◆ isReadOnly()

sal_Bool SAL_CALL MacabConnection::isReadOnly ( )
overridevirtual

◆ nativeSQL()

OUString SAL_CALL MacabConnection::nativeSQL ( const OUString &  sql)
overridevirtual

Definition at line 101 of file MacabConnection.cxx.

References connectivity::OMetaConnection::m_aMutex.

◆ prepareCall()

Reference< XPreparedStatement > SAL_CALL MacabConnection::prepareCall ( const OUString &  sql)
overridevirtual

◆ prepareStatement()

Reference< XPreparedStatement > SAL_CALL MacabConnection::prepareStatement ( const OUString &  sql)
overridevirtual

◆ rollback()

void SAL_CALL MacabConnection::rollback ( )
overridevirtual

◆ setAutoCommit()

void SAL_CALL MacabConnection::setAutoCommit ( sal_Bool  autoCommit)
overridevirtual

◆ setCatalog()

void SAL_CALL MacabConnection::setCatalog ( const OUString &  catalog)
overridevirtual

◆ setReadOnly()

void SAL_CALL MacabConnection::setReadOnly ( sal_Bool  readOnly)
overridevirtual

◆ setTransactionIsolation()

void SAL_CALL MacabConnection::setTransactionIsolation ( sal_Int32  level)
overridevirtual

◆ setTypeMap()

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

Definition at line 236 of file MacabConnection.cxx.

Member Data Documentation

◆ m_pAddressBook

MacabAddressBook* connectivity::macab::MacabConnection::m_pAddressBook
protected

Definition at line 51 of file MacabConnection.hxx.

Referenced by construct(), disposing(), and getAddressBook().

◆ m_pDriver

MacabDriver* connectivity::macab::MacabConnection::m_pDriver
protected

Definition at line 52 of file MacabConnection.hxx.

Referenced by getDriver(), and ~MacabConnection().

◆ m_xCatalog

css::uno::Reference< css::sdbcx::XTablesSupplier> connectivity::macab::MacabConnection::m_xCatalog
protected

Definition at line 54 of file MacabConnection.hxx.

Referenced by createCatalog().


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