5#ifndef POOLSVC_ISESSION_H
6#define POOLSVC_ISESSION_H
43 virtual bool start( Io::IoFlag
type = Io::READ ) = 0;
52 virtual Io::IoFlag
type()
const = 0;
55 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.
ISession is the interface class for user (macroscopic) sessions Every connection to a database and ob...
virtual Io::IoFlag type() const =0
Returns the transaction type.
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 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 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 MicroSessionManager & microSessionManager(long technology)=0
Returns the technology given a technology type.
virtual bool start(Io::IoFlag type=Io::READ)=0
Starts a new transaction. Returns the success of the operation.
virtual ~ISession()=default
virtual destructor for the interface
virtual IStorageSvc & getStorageSvc(long technology)=0
Return StorageSvc for a given technology used in this session.
virtual bool commit()=0
Commits the transaction.
virtual bool commitAndHold()=0
Commits the holds transaction.
virtual bool disconnectAll()=0
Explicitly disconnects all the databases.
The IStorageSvc interface is able to handle user request for.
MicroSessionManager is a class taking care of starting sessions for a given major technology and mana...
std::unique_ptr< ISession > createSession(IFileCatalog &catalog, int ageLimit=-1)
NameType
Enumeration type specifying the database name field, wherever the latter is used in methods accessing...