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

#include <HConnection.hxx>

Inheritance diagram for connectivity::hsqldb::OHsqlConnection:
[legend]
Collaboration diagram for connectivity::hsqldb::OHsqlConnection:
[legend]

Public Member Functions

 OHsqlConnection (const css::uno::Reference< css::sdbc::XDriver > &_rxDriver, const css::uno::Reference< css::sdbc::XConnection > &_xConnection, const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
 
 DECLARE_SERVICE_INFO ()
 
virtual ::osl::Mutex & getMutex () const override
 
virtual void checkDisposed () const override
 
virtual void SAL_CALL flush () override
 
virtual void SAL_CALL addFlushListener (const css::uno::Reference< css::util::XFlushListener > &l) override
 
virtual void SAL_CALL removeFlushListener (const css::uno::Reference< css::util::XFlushListener > &l) override
 
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL getTableIcon (const OUString &TableName, ::sal_Int32 ColorMode) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getTableEditor (const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > &DocumentUI, const OUString &TableName) override
 
- Public Member Functions inherited from connectivity::OConnectionWrapper
 OConnectionWrapper ()
 
 DECLARE_SERVICE_INFO ()
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &_rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
- 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
 
virtual ::osl::Mutex & getMutex () const =0
 
virtual void checkDisposed () const =0
 

Protected Member Functions

virtual void SAL_CALL disposing () override
 
virtual ~OHsqlConnection () override
 
- Protected Member Functions inherited from connectivity::OConnectionWrapper
virtual ~OConnectionWrapper ()
 
void setDelegation (css::uno::Reference< css::uno::XAggregation > &_rxProxyConnection, oslInterlockedCount &_rRefCount)
 
void setDelegation (const css::uno::Reference< css::sdbc::XConnection > &_xConnection, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, oslInterlockedCount &_rRefCount)
 
void disposing ()
 
- Protected Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 >
 ~ImplHelper2 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from connectivity::hsqldb::IMethodGuardAccess
 ~IMethodGuardAccess ()
 

Private Member Functions

css::uno::Reference< css::container::XNameAccess > impl_getTableContainer_throw ()
 retrieves our table container More...
 
void impl_checkExistingTable_throw (const OUString &_rTableName)
 checks whether the given table name denotes an existing table More...
 
bool impl_isTextTable_nothrow (const OUString &_rTableName)
 checks whether the given table name refers to a HSQL TEXT TABLE More...
 
css::uno::Reference< css::graphic::XGraphic > impl_getTextTableIcon_nothrow ()
 retrieves the icon for HSQL TEXT TABLEs More...
 

Private Attributes

::comphelper::OInterfaceContainerHelper2 m_aFlushListeners
 
css::uno::Reference< css::sdbc::XDriver > m_xDriver
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
bool m_bIni
 
bool m_bReadOnly
 

Additional Inherited Members

- Static Public Member Functions inherited from connectivity::OConnectionWrapper
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
static void createUniqueId (const OUString &_rURL, css::uno::Sequence< css::beans::PropertyValue > &_rInfo, sal_uInt8 *_pBuffer, const OUString &_rUserName=OUString(), const OUString &_rPassword=OUString())
 method to create unique ids More...
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from connectivity::OConnectionWrapper
css::uno::Reference< css::uno::XAggregation > m_xProxyConnection
 
css::uno::Reference< css::sdbc::XConnection > m_xConnection
 
css::uno::Reference< css::lang::XTypeProvider > m_xTypeProvider
 
css::uno::Reference< css::lang::XUnoTunnel > m_xUnoTunnel
 
css::uno::Reference< css::lang::XServiceInfo > m_xServiceInfo
 

Detailed Description

Definition at line 51 of file HConnection.hxx.

Constructor & Destructor Documentation

◆ ~OHsqlConnection()

connectivity::hsqldb::OHsqlConnection::~OHsqlConnection ( )
overrideprotectedvirtual

Definition at line 94 of file HConnection.cxx.

References dispose(), and m_refCount.

◆ OHsqlConnection()

connectivity::hsqldb::OHsqlConnection::OHsqlConnection ( const css::uno::Reference< css::sdbc::XDriver > &  _rxDriver,
const css::uno::Reference< css::sdbc::XConnection > &  _xConnection,
const css::uno::Reference< css::uno::XComponentContext > &  _rxContext 
)

Member Function Documentation

◆ addFlushListener()

void SAL_CALL connectivity::hsqldb::OHsqlConnection::addFlushListener ( const css::uno::Reference< css::util::XFlushListener > &  l)
overridevirtual

◆ checkDisposed()

virtual void connectivity::hsqldb::OHsqlConnection::checkDisposed ( ) const
overridevirtual

◆ DECLARE_SERVICE_INFO()

connectivity::hsqldb::OHsqlConnection::DECLARE_SERVICE_INFO ( )

References DECLARE_XTYPEPROVIDER.

◆ disposing()

void SAL_CALL connectivity::hsqldb::OHsqlConnection::disposing ( )
overrideprotectedvirtual

◆ flush()

virtual void SAL_CALL connectivity::hsqldb::OHsqlConnection::flush ( )
overridevirtual

◆ getMutex()

virtual ::osl::Mutex & connectivity::hsqldb::OHsqlConnection::getMutex ( ) const
overridevirtual

◆ getTableEditor()

Reference< XInterface > SAL_CALL connectivity::hsqldb::OHsqlConnection::getTableEditor ( const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > &  DocumentUI,
const OUString &  TableName 
)
overridevirtual

◆ getTableIcon()

Reference< XGraphic > SAL_CALL connectivity::hsqldb::OHsqlConnection::getTableIcon ( const OUString &  TableName,
::sal_Int32  ColorMode 
)
overridevirtual

◆ impl_checkExistingTable_throw()

void connectivity::hsqldb::OHsqlConnection::impl_checkExistingTable_throw ( const OUString &  _rTableName)
private

checks whether the given table name denotes an existing table

Parameters
_rTableNamethe fully name of the table to check for existence
Exceptions
css::lang::IllegalArgumentExceptionif the name does not denote an existing table @precond We're not disposed.

Definition at line 244 of file HConnection.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, connectivity::SharedResources::getResourceStringWithSubstitution(), and impl_getTableContainer_throw().

Referenced by getTableEditor(), and getTableIcon().

◆ impl_getTableContainer_throw()

Reference< XNameAccess > connectivity::hsqldb::OHsqlConnection::impl_getTableContainer_throw ( )
private

retrieves our table container

Returns
our table container. Guaranteed to not be <NULL>.
Exceptions
css::lang::WrappedTargetExceptionif a non-RuntimeException is caught during obtaining the container.
css::uno::RuntimeExceptionif a serious error occurs @precond We're not disposed.

Definition at line 219 of file HConnection.cxx.

References Exception, cppu::getCaughtException(), connectivity::SharedResources::getResourceString(), m_xDriver, and SAL_WARN_IF.

Referenced by impl_checkExistingTable_throw().

◆ impl_getTextTableIcon_nothrow()

Reference< XGraphic > connectivity::hsqldb::OHsqlConnection::impl_getTextTableIcon_nothrow ( )
private

retrieves the icon for HSQL TEXT TABLEs

Definition at line 307 of file HConnection.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, m_xContext, and comphelper::makePropertyValue().

Referenced by getTableIcon().

◆ impl_isTextTable_nothrow()

bool connectivity::hsqldb::OHsqlConnection::impl_isTextTable_nothrow ( const OUString &  _rTableName)
private

checks whether the given table name refers to a HSQL TEXT TABLE

Definition at line 271 of file HConnection.cxx.

References connectivity::hsqldb::HTools::appendTableFilterCrit(), DBG_UNHANDLED_EXCEPTION, Exception, dbtools::qualifiedNameComponents(), sCatalog, sName, and sSchema.

Referenced by getTableEditor(), and getTableIcon().

◆ removeFlushListener()

void SAL_CALL connectivity::hsqldb::OHsqlConnection::removeFlushListener ( const css::uno::Reference< css::util::XFlushListener > &  l)
overridevirtual

Member Data Documentation

◆ m_aFlushListeners

::comphelper::OInterfaceContainerHelper2 connectivity::hsqldb::OHsqlConnection::m_aFlushListeners
private

Definition at line 57 of file HConnection.hxx.

Referenced by addFlushListener(), disposing(), and removeFlushListener().

◆ m_bIni

bool connectivity::hsqldb::OHsqlConnection::m_bIni
private

Definition at line 60 of file HConnection.hxx.

◆ m_bReadOnly

bool connectivity::hsqldb::OHsqlConnection::m_bReadOnly
private

Definition at line 61 of file HConnection.hxx.

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > connectivity::hsqldb::OHsqlConnection::m_xContext
private

Definition at line 59 of file HConnection.hxx.

Referenced by impl_getTextTableIcon_nothrow().

◆ m_xDriver

css::uno::Reference< css::sdbc::XDriver > connectivity::hsqldb::OHsqlConnection::m_xDriver
private

Definition at line 58 of file HConnection.hxx.

Referenced by impl_getTableContainer_throw().


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