|
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;
const ITechnologySpecificAttributes & technologySpecificAttributes(long technology) const
Returns the object holding the technology specific attributes for a given technology domain.
TechnologyDispatcher & technologyDispatcher()
ITransaction & globalTransaction()
Returns the global transaction object.
UserSession & operator=(const UserSession &)=delete
void setFileCatalog(IFileCatalog &catalog)
Set the file catalog to be used.
ITransaction & transaction()
Returns the transaction object.
NameType
Enumeration type specifying the database name field, wherever the latter is used in methods accessing...
const ITransaction & transaction() const
DatabaseRegistry & registry()
ITechnologySpecificAttributes & technologySpecificAttributes(long technology)
const DatabaseConnectionPolicy & defaultConnectionPolicy() const
Retrieves the default connection policy.
DatabaseConnectionPolicy * m_policy
std::vector< std::string > connectedDatabases() const
Returns a vector with the file identifiers of the presently open databases.
GlobalTransaction * m_transaction
DatabaseRegistry * m_registry
bool disconnectAll()
Explicitly disconnects all the databases.
TechnologyDispatcher * m_technologyDispatcher
virtual ~UserSession()
Destructor.
IDatabase * databaseHandle(const std::string &dbName, DatabaseSpecification::NameType dbNameType)
Returns a pointer to a database object. The user acquires ownership of that object.
UserSession(const UserSession &)=delete
UserSession(IFileCatalog &fileCatalog)
Constructor.
void setDefaultConnectionPolicy(const DatabaseConnectionPolicy &policy)
Sets the default policy when databases are opened/connected.
IFileCatalog & fileCatalog()
Returns the file catalog in use.