ATLAS Offline Software
Public Member Functions | List of all members
pool::ISession Class Referenceabstract

#include <PersistencySvc/ISession.h>

Inheritance diagram for pool::ISession:
Collaboration diagram for pool::ISession:

Public Member Functions

virtual ~ISession ()
 Default destructor. More...
 
virtual void setDefaultConnectionPolicy (const DatabaseConnectionPolicy &policy)=0
 Sets the default policy when databases are opened/connected. More...
 
virtual const DatabaseConnectionPolicydefaultConnectionPolicy () const =0
 Retrieves the default connection policy. More...
 
virtual bool disconnectAll ()=0
 Explicitly disconnects all the databases. More...
 
virtual ITransactiontransaction ()=0
 Returns the transaction object. More...
 
virtual const ITransactiontransaction () const =0
 
virtual std::vector< std::string > connectedDatabases () const =0
 Returns a vector with the file identifiers of the presently open databases. More...
 
virtual IDatabasedatabaseHandle (const std::string &dbName, DatabaseSpecification::NameType dbNameType)=0
 Returns a pointer to a database object. The user acquires ownership of that object. More...
 
virtual IFileCatalogfileCatalog ()=0
 Returns the file catalog in use. More...
 
virtual const ITechnologySpecificAttributestechnologySpecificAttributes (long technology) const =0
 Returns the object holding the technology specific attributes for a given technology domain. More...
 
virtual ITechnologySpecificAttributestechnologySpecificAttributes (long technology)=0
 

Detailed Description

ISession is the interface class for user (macroscopic) sessions Every transaction and connection to a database can be performed within a session. It therefore defines a logical context within which all the operations are performed. It further provides access to the file catalog and the shape transformation registry in use.

Definition at line 31 of file ISession.h.

Constructor & Destructor Documentation

◆ ~ISession()

virtual pool::ISession::~ISession ( )
inlinevirtual

Default destructor.

Definition at line 35 of file ISession.h.

35 {}

Member Function Documentation

◆ connectedDatabases()

virtual std::vector< std::string > pool::ISession::connectedDatabases ( ) const
pure virtual

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

Implemented in pool::PersistencySvc::UserSession.

◆ databaseHandle()

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

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

Implemented in pool::PersistencySvc::UserSession.

◆ defaultConnectionPolicy()

virtual const DatabaseConnectionPolicy& pool::ISession::defaultConnectionPolicy ( ) const
pure virtual

Retrieves the default connection policy.

Implemented in pool::PersistencySvc::UserSession.

◆ disconnectAll()

virtual bool pool::ISession::disconnectAll ( )
pure virtual

Explicitly disconnects all the databases.

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

Implemented in pool::PersistencySvc::UserSession.

◆ fileCatalog()

virtual IFileCatalog& pool::ISession::fileCatalog ( )
pure virtual

Returns the file catalog in use.

Implemented in pool::PersistencySvc::UserSession.

◆ setDefaultConnectionPolicy()

virtual void pool::ISession::setDefaultConnectionPolicy ( const DatabaseConnectionPolicy policy)
pure virtual

Sets the default policy when databases are opened/connected.

Implemented in pool::PersistencySvc::UserSession.

◆ technologySpecificAttributes() [1/2]

virtual const ITechnologySpecificAttributes& pool::ISession::technologySpecificAttributes ( long  technology) const
pure virtual

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

Implemented in pool::PersistencySvc::UserSession.

◆ technologySpecificAttributes() [2/2]

virtual ITechnologySpecificAttributes& pool::ISession::technologySpecificAttributes ( long  technology)
pure virtual

◆ transaction() [1/2]

virtual const ITransaction& pool::ISession::transaction ( ) const
pure virtual

◆ transaction() [2/2]

virtual ITransaction& pool::ISession::transaction ( )
pure virtual

Returns the transaction object.

Implemented in pool::PersistencySvc::UserSession.


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