|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef POOL_DBSTORAGESVC_H
7 #define POOL_DBSTORAGESVC_H
20 class DbStorageExplorer;
99 virtual const std::string&
name()
const {
return m_name; }
116 const std::string& refCont,
159 const Token& persToken,
202 const std::string& cntName,
371 #endif // POOL_DBSTORAGESVC_H
class DatabaseConnection * ConnectionH
virtual DbStatus allocate(FileDescriptor &refDB, const std::string &refCont, int technology, const void *object, ShapeH shapeH, Token *&refpTok)
Register object for write.
std::vector< const Token * > TokenVec
virtual ~DbStorageSvc()
Standard destructor.
DbStorageSvc & operator=(const DbStorageSvc &)=delete
virtual const std::string & name() const
IService implementation: Retrieve name of the service
virtual DbStatus connect(const SessionH sessionH, int mode, FileDescriptor &refDB)
Connect to a logical Database unit.
unsigned int m_refCount
Reference counter
virtual DbStatus existsConnection(const SessionH sessionH, int mode, const FileDescriptor &refDB)
Check the existence of a logical Database unit.
virtual DbStatus destroy(FileDescriptor &refDB, Token &refToken)
Destroy an existing persistent object.
virtual DbStatus finalize()
IService implementation override: Finalize Service
virtual DbStatus disconnect(FileDescriptor &refDB)
Disconnect from a logical Database unit.
Db objects: class DbSession.
virtual DbStatus read(const FileDescriptor &refDB, const Token &persToken, ShapeH shapeH, void **object)
Read a persistent object from the medium.
DbDomain m_domH
Database domain handle.
virtual std::string getContName(FileDescriptor &refDB, Token &persToken)
Get container name for object.
This class provides a token that identifies in a unique way objects on the persistent storage.
const class Shape * ShapeH
DbDomain & domainHdl()
Database domain handle.
virtual DbStatus openMode(FileDescriptor &refDB, int &mode)
Query the access mode of a Database unit.
DbStorageSvc(const DbStorageSvc &)=delete
int m_ageLimit
Property: AgeLimit indicating the maximal allowed age of files.
virtual DbStatus getShape(FileDescriptor &refDB, const Guid &objType, ShapeH &shapeH)
Retrieve persistent shape from Storage manager.
virtual DbStatus update(FileDescriptor &refDB, const void *object, ShapeH shapeH, Token &refToken)
In place update of an existing object.
virtual DbStatus createShape(const FileDescriptor &refDB, const std::string &cntName, const Guid &shapeID, ShapeH &shapeH)
Create a persistent shape a given Database container location.
DbSession & sessionHdl()
Database session handle.
virtual DbStatus getDomainOption(const SessionH sessionH, DbOption &opt)
Access options for a given database domain.
virtual unsigned int addRef()
IInterface implementation: Reference Interface instance
virtual DbStatus reconnect(FileDescriptor &refDB, int mode)
Reconnect to a logical Database unit with different access mode.
DbStorageExplorer * m_explorer
Reference to storage explorer object.
virtual DbStatus endSession(const SessionH session)
End the Database session.
virtual DbStatus startSession(int mode, int tech, SessionH &session)
Start a new Database Session.
virtual DbStatus setDomainOption(const SessionH sessionH, const DbOption &opt)
Set options for a given database domain.
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
DbStorageSvc(const std::string &name)
Initializing Constructor: Constructs an object of type DbStorageSvc.
virtual DbStatus queryInterface(const Guid &riid, void **ppvUnknown)
IInterface implementation: Query interfaces of Interface.
static const char * catalogLabel()
Label of the specific class.
std::string m_name
Service Name
virtual DbStatus endTransaction(ConnectionH conn, Transaction::Action typ)
End/Finish an existing Transaction sequence.
virtual unsigned int release()
IInterface implementation: Release Interface instance
DbType m_type
Technology type.
DbSession m_sesH
Database session handle.
virtual DbStatus initialize()
IService implementation override: Initilize Service.
DbStorageSvc()
Standard Constructor: Constructs an object of type DbStorageSvc.