5#ifndef INCLUDE_PERSISTENCYSVC_ISESSION_H
6#define INCLUDE_PERSISTENCYSVC_ISESSION_H
57 virtual std::unique_ptr<IDatabase>
databaseHandle(
const std::string& dbName,
DatabaseConnectionPolicy is a class holding information on the policy to be followed whenever a datab...
NameType
Enumeration type specifying the database name field, wherever the latter is used in methods accessing...
IDatabase is the base class for database objects.
ISession is the interface class for user (macroscopic) sessions Every transaction and connection to a...
virtual std::vector< std::string > connectedDatabases() const =0
Returns a vector with the file identifiers of the presently open databases.
virtual std::unique_ptr< 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 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 const ITransaction & transaction() const =0
virtual IFileCatalog & fileCatalog()=0
Returns the file catalog in use.
virtual ~ISession()
Default destructor.
virtual const DatabaseConnectionPolicy & defaultConnectionPolicy() const =0
Retrieves the default connection policy.
virtual void setDefaultConnectionPolicy(const DatabaseConnectionPolicy &policy)=0
Sets the default policy when databases are opened/connected.
virtual ITechnologySpecificAttributes & technologySpecificAttributes(long technology)=0
virtual bool disconnectAll()=0
Explicitly disconnects all the databases.
ITechnologySpecificAttributes is the interface for an object holding technology-specific attributes.
ITransaction is the interface class for user (macroscopic transactions) Every operation with the pool...