ATLAS Offline Software
|
#include <PersistencySvc/IDatabase.h>
Public Types | |
enum | OpenMode { CLOSED, READ, UPDATE } |
Current open mode enumeration. More... | |
Public Member Functions | |
virtual | ~IDatabase () |
Empty destructor. More... | |
virtual void | connectForRead ()=0 |
Connects explicitly to the database for read operations. More... | |
virtual void | connectForRead (const DatabaseConnectionPolicy &policy)=0 |
virtual void | connectForWrite ()=0 |
Connects explicitly to the database for write/update operations. More... | |
virtual void | connectForWrite (const DatabaseConnectionPolicy &policy)=0 |
virtual void | disconnect ()=0 |
Disconnects from the database. More... | |
virtual OpenMode | openMode () const =0 |
Returns the opening mode. It can be used to check whether the database is connected. More... | |
virtual const std::string & | fid ()=0 |
Returns the file identifier of this database. More... | |
virtual const std::string & | pfn ()=0 |
Returns the physical file name of this database. More... | |
virtual bool | setTechnology (long technology)=0 |
Sets the technology identifier for this database. More... | |
virtual long | technology () const =0 |
Returns the technology identifier for this database. More... | |
virtual std::vector< std::string > | containers ()=0 |
Returns the names of the containers in this database. More... | |
virtual IContainer * | containerHandle (const std::string &name)=0 |
Returns a pointer to a container object. The user acquires ownership of that object. More... | |
virtual const ITechnologySpecificAttributes & | technologySpecificAttributes () const =0 |
Returns the object holding the technology specific attributes. More... | |
virtual ITechnologySpecificAttributes & | technologySpecificAttributes ()=0 |
IDatabase is the base class for database objects
Definition at line 25 of file IDatabase.h.
|
inlinevirtual |
|
pure virtual |
Connects explicitly to the database for read operations.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Connects explicitly to the database for write/update operations.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Returns a pointer to a container object. The user acquires ownership of that object.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Returns the names of the containers in this database.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Disconnects from the database.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Returns the file identifier of this database.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Returns the opening mode. It can be used to check whether the database is connected.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Returns the physical file name of this database.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Sets the technology identifier for this database.
This can only be called for newly created databases before the connect method is called. Otherwise false is returned.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Returns the technology identifier for this database.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Returns the object holding the technology specific attributes.
Implemented in pool::PersistencySvc::UserDatabase.
|
pure virtual |
Implemented in pool::PersistencySvc::UserDatabase.