LibreOffice Module dbaccess (master) 1
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
dbaccess::OSharedConnectionManager Class Reference
Inheritance diagram for dbaccess::OSharedConnectionManager:
[legend]
Collaboration diagram for dbaccess::OSharedConnectionManager:
[legend]

Classes

struct  TConnectionHolder
 
struct  TDigestLess
 

Public Member Functions

 OSharedConnectionManager (const Reference< XComponentContext > &_rxContext)
 
void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
Reference< XConnection > getConnection (const OUString &url, const OUString &user, const OUString &password, const Sequence< PropertyValue > &_aInfo, ODatabaseSource *_pDataSource)
 
void addEventListener (const Reference< XConnection > &_rxConnection, TConnectionMap::iterator const &_rIter)
 

Protected Member Functions

virtual ~OSharedConnectionManager () override
 

Private Types

typedef std::map< TDigestHolder, TConnectionHolder, TDigestLessTConnectionMap
 
typedef std::map< Reference< XConnection >, TConnectionMap::iterator > TSharedConnectionMap
 

Private Attributes

::osl::Mutex m_aMutex
 
TConnectionMap m_aConnections
 
TSharedConnectionMap m_aSharedConnection
 
Reference< XProxyFactory > m_xProxyFactory
 

Detailed Description

Definition at line 271 of file datasource.cxx.

Member Typedef Documentation

◆ TConnectionMap

Definition at line 293 of file datasource.cxx.

◆ TSharedConnectionMap

typedef std::map< Reference< XConnection >,TConnectionMap::iterator> dbaccess::OSharedConnectionManager::TSharedConnectionMap
private

Definition at line 294 of file datasource.cxx.

Constructor & Destructor Documentation

◆ ~OSharedConnectionManager()

dbaccess::OSharedConnectionManager::~OSharedConnectionManager ( )
overrideprotectedvirtual

Definition at line 321 of file datasource.cxx.

◆ OSharedConnectionManager()

dbaccess::OSharedConnectionManager::OSharedConnectionManager ( const Reference< XComponentContext > &  _rxContext)
explicit

Definition at line 316 of file datasource.cxx.

References m_xProxyFactory.

Member Function Documentation

◆ addEventListener()

void dbaccess::OSharedConnectionManager::addEventListener ( const Reference< XConnection > &  _rxConnection,
TConnectionMap::iterator const &  _rIter 
)

Definition at line 392 of file datasource.cxx.

References m_aConnections.

Referenced by getConnection().

◆ disposing()

void SAL_CALL dbaccess::OSharedConnectionManager::disposing ( const css::lang::EventObject &  Source)
override

Definition at line 325 of file datasource.cxx.

References m_aConnections, m_aMutex, m_aSharedConnection, and Source.

◆ getConnection()

Reference< XConnection > dbaccess::OSharedConnectionManager::getConnection ( const OUString &  url,
const OUString &  user,
const OUString &  password,
const Sequence< PropertyValue > &  _aInfo,
ODatabaseSource _pDataSource 
)

Member Data Documentation

◆ m_aConnections

TConnectionMap dbaccess::OSharedConnectionManager::m_aConnections
private

Definition at line 297 of file datasource.cxx.

Referenced by addEventListener(), disposing(), and getConnection().

◆ m_aMutex

::osl::Mutex dbaccess::OSharedConnectionManager::m_aMutex
private

Definition at line 296 of file datasource.cxx.

Referenced by disposing(), and getConnection().

◆ m_aSharedConnection

TSharedConnectionMap dbaccess::OSharedConnectionManager::m_aSharedConnection
private

Definition at line 298 of file datasource.cxx.

Referenced by disposing(), and getConnection().

◆ m_xProxyFactory

Reference< XProxyFactory > dbaccess::OSharedConnectionManager::m_xProxyFactory
private

Definition at line 299 of file datasource.cxx.

Referenced by getConnection(), and OSharedConnectionManager().


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