 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INCLUDE_PERSISTENCYSVC_USERSESSION_H
6 #define INCLUDE_PERSISTENCYSVC_USERSESSION_H
12 class DatabaseConnectionPolicy;
14 namespace PersistencySvc {
17 class DatabaseRegistry;
18 class TechnologyDispatcher;
19 class GlobalTransaction;
virtual std::vector< std::string > connectedDatabases() const override final
Returns a vector with the file identifiers of the presently open databases.
TechnologyDispatcher & technologyDispatcher()
ITransaction & globalTransaction()
Returns the global transaction object.
UserSession & operator=(const UserSession &)=delete
virtual const DatabaseConnectionPolicy & defaultConnectionPolicy() const override final
Retrieves the default connection policy.
void setFileCatalog(IFileCatalog &catalog)
Set the file catalog to be used.
bool const RAWDATA *ch2 const
DatabaseRegistry & registry()
virtual IFileCatalog & fileCatalog() override final
Returns the file catalog in use.
DatabaseConnectionPolicy * m_policy
GlobalTransaction * m_transaction
DatabaseRegistry * m_registry
TechnologyDispatcher * m_technologyDispatcher
virtual ~UserSession()
Destructor.
virtual void setDefaultConnectionPolicy(const DatabaseConnectionPolicy &policy) override final
Sets the default policy when databases are opened/connected.
UserSession(const UserSession &)=delete
UserSession(IFileCatalog &fileCatalog)
Constructor.
virtual const ITechnologySpecificAttributes & technologySpecificAttributes(long technology) const override final
Returns the object holding the technology specific attributes for a given technology domain.
virtual ITransaction & transaction() override final
Returns the transaction object.
virtual bool disconnectAll() override final
Explicitly disconnects all the databases.
virtual std::unique_ptr< IDatabase > databaseHandle(const std::string &dbName, DatabaseSpecification::NameType dbNameType) override final
Creates and returns a new database handle object.