5#ifndef INCLUDE_PERSISTENCYSVC_IDATABASE_H
6#define INCLUDE_PERSISTENCYSVC_IDATABASE_H
50 virtual const std::string&
fid() = 0;
53 virtual const std::string&
pfn() = 0;
DatabaseConnectionPolicy is a class holding information on the policy to be followed whenever a datab...
IContainer is the base class for container objects.
IDatabase is the base class for database objects.
virtual void connectForWrite()=0
Connects explicitly to the database for write/update operations.
virtual ITechnologySpecificAttributes & technologySpecificAttributes()=0
virtual ~IDatabase()
Empty destructor.
virtual void connectForRead(const DatabaseConnectionPolicy &policy)=0
virtual void disconnect()=0
Disconnects from the database.
virtual OpenMode openMode() const =0
Returns the opening mode. It can be used to check whether the database is connected.
virtual bool setTechnology(long technology)=0
Sets the technology identifier for this database.
virtual const std::string & pfn()=0
Returns the physical file name of this database.
virtual std::vector< std::string > containers()=0
Returns the names of the containers in this database.
virtual const std::string & fid()=0
Returns the file identifier of this database.
OpenMode
Current open mode enumeration.
virtual void connectForRead()=0
Connects explicitly to the database for read operations.
virtual const ITechnologySpecificAttributes & technologySpecificAttributes() const =0
Returns the object holding the technology specific attributes.
virtual IContainer * containerHandle(const std::string &name)=0
Returns a pointer to a container object. The user acquires ownership of that object.
virtual long technology() const =0
Returns the technology identifier for this database.
virtual void connectForWrite(const DatabaseConnectionPolicy &policy)=0
ITechnologySpecificAttributes is the interface for an object holding technology-specific attributes.