ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
pool::PersistencySvc::UserSession Class Reference

#include <UserSession.h>

Inheritance diagram for pool::PersistencySvc::UserSession:
Collaboration diagram for pool::PersistencySvc::UserSession:

Public Member Functions

 UserSession (IFileCatalog &fileCatalog)
 Constructor. More...
 
virtual ~UserSession ()
 Destructor. More...
 
 UserSession (const UserSession &)=delete
 
UserSessionoperator= (const UserSession &)=delete
 
DatabaseRegistryregistry ()
 
TechnologyDispatchertechnologyDispatcher ()
 
void setDefaultConnectionPolicy (const DatabaseConnectionPolicy &policy)
 Sets the default policy when databases are opened/connected. More...
 
const DatabaseConnectionPolicydefaultConnectionPolicy () const
 Retrieves the default connection policy. More...
 
bool disconnectAll ()
 Explicitly disconnects all the databases. More...
 
ITransactiontransaction ()
 Returns the transaction object. More...
 
const ITransactiontransaction () const
 
std::vector< std::string > connectedDatabases () const
 Returns a vector with the file identifiers of the presently open databases. More...
 
IDatabasedatabaseHandle (const std::string &dbName, DatabaseSpecification::NameType dbNameType)
 Returns a pointer to a database object. The user acquires ownership of that object. More...
 
IFileCatalogfileCatalog ()
 Returns the file catalog in use. More...
 
void setFileCatalog (IFileCatalog &catalog)
 Set the file catalog to be used. More...
 
const ITechnologySpecificAttributestechnologySpecificAttributes (long technology) const
 Returns the object holding the technology specific attributes for a given technology domain. More...
 
ITechnologySpecificAttributestechnologySpecificAttributes (long technology)
 
ITransactionglobalTransaction ()
 Returns the global transaction object. More...
 

Private Attributes

DatabaseConnectionPolicym_policy
 
IFileCatalogm_catalog
 
DatabaseRegistrym_registry
 
GlobalTransactionm_transaction
 
TechnologyDispatcherm_technologyDispatcher
 

Detailed Description

UserSession is an implementation of the ISession interface

Definition at line 27 of file UserSession.h.

Constructor & Destructor Documentation

◆ UserSession() [1/2]

pool::PersistencySvc::UserSession::UserSession ( IFileCatalog fileCatalog)

Constructor.

◆ ~UserSession()

virtual pool::PersistencySvc::UserSession::~UserSession ( )
virtual

Destructor.

◆ UserSession() [2/2]

pool::PersistencySvc::UserSession::UserSession ( const UserSession )
delete

Member Function Documentation

◆ connectedDatabases()

std::vector< std::string > pool::PersistencySvc::UserSession::connectedDatabases ( ) const
virtual

Returns a vector with the file identifiers of the presently open databases.

Implements pool::ISession.

◆ databaseHandle()

IDatabase* pool::PersistencySvc::UserSession::databaseHandle ( const std::string &  dbName,
DatabaseSpecification::NameType  dbNameType 
)
virtual

Returns a pointer to a database object. The user acquires ownership of that object.

Implements pool::ISession.

◆ defaultConnectionPolicy()

const DatabaseConnectionPolicy& pool::PersistencySvc::UserSession::defaultConnectionPolicy ( ) const
virtual

Retrieves the default connection policy.

Implements pool::ISession.

◆ disconnectAll()

bool pool::PersistencySvc::UserSession::disconnectAll ( )
virtual

Explicitly disconnects all the databases.

If a transaction is active, then all the changes since the last commit are aborted.

Implements pool::ISession.

◆ fileCatalog()

IFileCatalog& pool::PersistencySvc::UserSession::fileCatalog ( )
virtual

Returns the file catalog in use.

Implements pool::ISession.

◆ globalTransaction()

ITransaction& pool::PersistencySvc::UserSession::globalTransaction ( )

Returns the global transaction object.

◆ operator=()

UserSession& pool::PersistencySvc::UserSession::operator= ( const UserSession )
delete

◆ registry()

DatabaseRegistry& pool::PersistencySvc::UserSession::registry ( )

◆ setDefaultConnectionPolicy()

void pool::PersistencySvc::UserSession::setDefaultConnectionPolicy ( const DatabaseConnectionPolicy policy)
virtual

Sets the default policy when databases are opened/connected.

Implements pool::ISession.

◆ setFileCatalog()

void pool::PersistencySvc::UserSession::setFileCatalog ( IFileCatalog catalog)

Set the file catalog to be used.

◆ technologyDispatcher()

TechnologyDispatcher& pool::PersistencySvc::UserSession::technologyDispatcher ( )

◆ technologySpecificAttributes() [1/2]

ITechnologySpecificAttributes& pool::PersistencySvc::UserSession::technologySpecificAttributes ( long  technology)
virtual

Implements pool::ISession.

◆ technologySpecificAttributes() [2/2]

const ITechnologySpecificAttributes& pool::PersistencySvc::UserSession::technologySpecificAttributes ( long  technology) const
virtual

Returns the object holding the technology specific attributes for a given technology domain.

Implements pool::ISession.

◆ transaction() [1/2]

ITransaction& pool::PersistencySvc::UserSession::transaction ( )
virtual

Returns the transaction object.

Implements pool::ISession.

◆ transaction() [2/2]

const ITransaction& pool::PersistencySvc::UserSession::transaction ( ) const
virtual

Implements pool::ISession.

Member Data Documentation

◆ m_catalog

IFileCatalog* pool::PersistencySvc::UserSession::m_catalog
private

Definition at line 80 of file UserSession.h.

◆ m_policy

DatabaseConnectionPolicy* pool::PersistencySvc::UserSession::m_policy
private

Definition at line 79 of file UserSession.h.

◆ m_registry

DatabaseRegistry* pool::PersistencySvc::UserSession::m_registry
private

Definition at line 81 of file UserSession.h.

◆ m_technologyDispatcher

TechnologyDispatcher* pool::PersistencySvc::UserSession::m_technologyDispatcher
private

Definition at line 83 of file UserSession.h.

◆ m_transaction

GlobalTransaction* pool::PersistencySvc::UserSession::m_transaction
private

Definition at line 82 of file UserSession.h.


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