|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INCLUDE_PERSISTENCYSVC_IDATABASE_H
6 #define INCLUDE_PERSISTENCYSVC_IDATABASE_H
15 class DatabaseConnectionPolicy;
17 class ITechnologySpecificAttributes;
50 virtual const std::string&
fid() = 0;
53 virtual const std::string&
pfn() = 0;
OpenMode
Current open mode enumeration.
virtual void connectForRead()=0
Connects explicitly to the database for read operations.
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.
virtual OpenMode openMode() const =0
Returns the opening mode. It can be used to check whether the database is connected.
virtual const ITechnologySpecificAttributes & technologySpecificAttributes() const =0
Returns the object holding the technology specific attributes.
virtual void connectForWrite(const DatabaseConnectionPolicy &policy)=0
virtual void connectForWrite()=0
Connects explicitly to the database for write/update operations.
virtual ITechnologySpecificAttributes & technologySpecificAttributes()=0
virtual bool setTechnology(long technology)=0
Sets the technology identifier for this database.
virtual void disconnect()=0
Disconnects from the database.
virtual void connectForRead(const DatabaseConnectionPolicy &policy)=0
virtual long technology() const =0
Returns the technology identifier for this database.
virtual IContainer * containerHandle(const std::string &name)=0
Returns a pointer to a container object. The user acquires ownership of that object.
virtual ~IDatabase()
Empty destructor.