ATLAS Offline Software
Loading...
Searching...
No Matches
pool::PersistencySvc::UserSession Class Reference

UserSession is an implementation of the ISession interface. More...

#include <UserSession.h>

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

Public Member Functions

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

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)
explicit

Constructor.

◆ ~UserSession()

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

Destructor.

◆ UserSession() [2/2]

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

Member Function Documentation

◆ connectedDatabases()

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

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

Implements pool::ISession.

◆ databaseHandle()

virtual std::unique_ptr< IDatabase > pool::PersistencySvc::UserSession::databaseHandle ( const std::string & dbName,
DatabaseSpecification::NameType dbNameType )
finaloverridevirtual

Creates and returns a new database handle object.

Implements pool::ISession.

◆ defaultConnectionPolicy()

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

Retrieves the default connection policy.

Implements pool::ISession.

◆ disconnectAll()

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

Explicitly disconnects all the databases.

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

Implements pool::ISession.

◆ fileCatalog()

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

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()

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

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]

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

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

Implements pool::ISession.

◆ technologySpecificAttributes() [2/2]

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

Implements pool::ISession.

◆ transaction() [1/2]

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

Implements pool::ISession.

◆ transaction() [2/2]

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

Returns the transaction object.

Implements pool::ISession.

Member Data Documentation

◆ m_catalog

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

Definition at line 83 of file UserSession.h.

◆ m_policy

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

Definition at line 82 of file UserSession.h.

◆ m_registry

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

Definition at line 84 of file UserSession.h.

◆ m_technologyDispatcher

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

Definition at line 86 of file UserSession.h.

◆ m_transaction

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

Definition at line 85 of file UserSession.h.


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