|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INCLUDE_PERSISTENCYSVC_ISESSION_H
6 #define INCLUDE_PERSISTENCYSVC_ISESSION_H
15 class DatabaseConnectionPolicy;
18 class ITechnologySpecificAttributes;
virtual ~ISession()
Default destructor.
virtual bool disconnectAll()=0
Explicitly disconnects all the databases.
NameType
Enumeration type specifying the database name field, wherever the latter is used in methods accessing...
virtual ITransaction & transaction()=0
Returns the transaction object.
virtual const ITechnologySpecificAttributes & technologySpecificAttributes(long technology) const =0
Returns the object holding the technology specific attributes for a given technology domain.
virtual IFileCatalog & fileCatalog()=0
Returns the file catalog in use.
virtual const ITransaction & transaction() const =0
virtual IDatabase * databaseHandle(const std::string &dbName, DatabaseSpecification::NameType dbNameType)=0
Returns a pointer to a database object. The user acquires ownership of that object.
virtual void setDefaultConnectionPolicy(const DatabaseConnectionPolicy &policy)=0
Sets the default policy when databases are opened/connected.
virtual const DatabaseConnectionPolicy & defaultConnectionPolicy() const =0
Retrieves the default connection policy.
virtual std::vector< std::string > connectedDatabases() const =0
Returns a vector with the file identifiers of the presently open databases.
virtual ITechnologySpecificAttributes & technologySpecificAttributes(long technology)=0