5#ifndef INCLUDE_PERSISTENCYSVC_ISESSION_H
6#define INCLUDE_PERSISTENCYSVC_ISESSION_H
57 virtual std::unique_ptr<IDatabase>
databaseHandle(
const std::string& dbName,
This class holds all the necessary information to guide the writing of an object in a physical place.
This class provides a token that identifies in a unique way objects on the persistent storage.
DatabaseConnectionPolicy is a class holding information on the policy to be followed whenever a datab...
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...
virtual Type type() const =0
Returns the transaction type.
ISession is the interface class for user (macroscopic) sessions Every transaction and connection to a...
virtual ITransaction & transaction()=0
Returns the transaction interface.
virtual const ITransaction & transaction() const =0
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 void * readObject(const Token &token, void *object=0)=0
Retrieves an object from persistent store and return with type information The handle to the reflecti...
virtual const ITechnologySpecificAttributes & technologySpecificAttributes(long technology) const =0
Returns the object holding the technology specific attributes for a given technology domain.
virtual Token * registerForWrite(const Placement &place, const void *object, const RootType &type)=0
registerForWrite registers an object for writing to the persistent medium higher level interactions w...
virtual void setDefaultConnectionPolicy(const DatabaseConnectionPolicy &policy)=0
Sets the default policy when databases are opened/connected.
virtual IFileCatalog & fileCatalog()=0
Returns the file catalog in use.
virtual ~ISession()=default
virtual destructor for the interface
virtual const DatabaseConnectionPolicy & defaultConnectionPolicy() const =0
Retrieves the default connection policy.
virtual bool disconnectAll()=0
Explicitly disconnects all the databases.
virtual ITechnologySpecificAttributes & technologySpecificAttributes(long technology)=0
std::unique_ptr< ISession > createSession(IFileCatalog &catalog)
NameType
Enumeration type specifying the database name field, wherever the latter is used in methods accessing...