![]() |
|
|
Generated: 18 Jul 2008 |
#include <PoolDb/IPoolDbMgr.h>
Inheritance diagram for IPoolDbMgr:


The IPoolDbMgr service interface allows to store and retrieve data stored with the POOL persistency mechanism.
Definition at line 53 of file IPoolDbMgr.h.
Public Types | ||||
| enum | { UNKNOWN = Gaudi::IIODataManager::UNKNOWN, PFN = Gaudi::IIODataManager::PFN, LFN = Gaudi::IIODataManager::LFN, FID = Gaudi::IIODataManager::FID } | |||
| enum | { BAD_DATA_CONNECTION = Gaudi::IDataConnection::BAD_DATA_CONNECTION } | |||
Public Member Functions | ||||
| virtual IPoolCacheSvc * | cacheSvc () const=0 | |||
| Access to cache service. | ||||
| virtual StatusCode | accessStorageType (const std::string &type_string, long &gaudi_type)=0 | |||
| Create access to the POOL persistency mechanism using the Gaudi String identifier. | ||||
| virtual StatusCode | createAddress (long svc_type, const CLID &clid, const std::string *par, const unsigned long *ipar, IOpaqueAddress *&refpAddress)=0 | |||
| Create a Generic address using explicit arguments to identify a single object. | ||||
| virtual StatusCode | createAddress (pool::Token *pToken, PoolDbAddress **ppAddress)=0 | |||
| Create a Generic address using explicit arguments to identify a single object. | ||||
| virtual StatusCode | connectOutput (const std::string &outputFile, const std::string &openMode)=0 | |||
| Connect the output file to the service with open mode. | ||||
| virtual StatusCode | commitOutput (const std::string &outputFile, bool do_commit)=0 | |||
| Commit pending output. | ||||
| virtual StatusCode | connect (const std::string &dbName, const std::string &cntName, pool::DbContainer &cntH)=0 | |||
| Connect to a database container in read mode. | ||||
| virtual StatusCode | connectContainer (int typ, const std::string &dbName, const std::string &cntName, pool::DbAccessMode openMode, const pool::DbTypeInfo *shape, pool::DbContainer &cntH)=0 | |||
| Connect to a database container. | ||||
| virtual pool::DbSelect * | createSelect (const std::string &criteria, const std::string &dbName, const std::string &cntName)=0 | |||
| Request an iterator over a container from the service. | ||||
| virtual StatusCode | disconnect (const std::string &dbName)=0 | |||
| Disconnect from an existing data stream. | ||||
| virtual StatusCode | markWrite (pool::DataCallBack *call, const std::string &cntName, PoolDbAddress **ppAddr=0)=0 | |||
| Marks a reference to be written. | ||||
| virtual StatusCode | markUpdate (pool::DataCallBack *call, PoolDbAddress *pAddr)=0 | |||
| Mark an object for update. | ||||
| virtual StatusCode | read (pool::DataCallBack *call, PoolDbAddress *pAddr)=0 | |||
| Read existing object. | ||||
| virtual StatusCode | read (pool::DataCallBack *call, pool::Token &tok)=0 | |||
| ||||
Static Public Member Functions | ||||
| static const InterfaceID & | interfaceID () | |||
| Retrieve interface ID. | ||||
| anonymous enum |
Definition at line 56 of file IPoolDbMgr.h.
00056 { UNKNOWN = Gaudi::IIODataManager::UNKNOWN, 00057 PFN = Gaudi::IIODataManager::PFN, 00058 LFN = Gaudi::IIODataManager::LFN, 00059 FID = Gaudi::IIODataManager::FID 00060 };
| anonymous enum |
| static const InterfaceID& IPoolDbMgr::interfaceID | ( | ) | [inline, static] |
Retrieve interface ID.
Reimplemented from IInterface.
Definition at line 64 of file IPoolDbMgr.h.
References IID_IPoolDbMgr.
00064 { return IID_IPoolDbMgr; }
| virtual IPoolCacheSvc* IPoolDbMgr::cacheSvc | ( | ) | const [pure virtual] |
| virtual StatusCode IPoolDbMgr::accessStorageType | ( | const std::string & | type_string, | |
| long & | gaudi_type | |||
| ) | [pure virtual] |
Create access to the POOL persistency mechanism using the Gaudi String identifier.
Also all appropriate DLLS will be loaded on the fly.
Implemented in PoolDbCnvSvc.
| virtual StatusCode IPoolDbMgr::createAddress | ( | long | svc_type, | |
| const CLID & | clid, | |||
| const std::string * | par, | |||
| const unsigned long * | ipar, | |||
| IOpaqueAddress *& | refpAddress | |||
| ) | [pure virtual] |
Create a Generic address using explicit arguments to identify a single object.
| svc_type | Technology identifier encapsulated in this address. | |
| clid | Class identifier of the DataObject represented by the opaque address | |
| par | Array of strings needed to construct the opaque address. | |
| ipar | Array of integers needed to construct the opaque address. | |
| refpAddress | Reference to pointer to the address where the created Address should be stored. |
Implemented in PoolDbCnvSvc.
Referenced by PoolDbEvtSelector::createAddress(), and PoolDbDirectoryCnv::updateObjRefs().
| virtual StatusCode IPoolDbMgr::createAddress | ( | pool::Token * | pToken, | |
| PoolDbAddress ** | ppAddress | |||
| ) | [pure virtual] |
Create a Generic address using explicit arguments to identify a single object.
| pToken | Pointer to valid POOL token object | |
| ppAddress | Reference to pointer to the address where the created Address should be stored. |
Implemented in PoolDbCnvSvc.
| virtual StatusCode IPoolDbMgr::connectOutput | ( | const std::string & | outputFile, | |
| const std::string & | openMode | |||
| ) | [pure virtual] |
Connect the output file to the service with open mode.
| outputFile | String containig output file | |
| openMode | String containig opening mode of the output file |
Implemented in PoolDbCnvSvc.
Referenced by PoolDbNTupleCnv::fillRepRefs(), and PoolDbStatCnv::saveDescription().
| virtual StatusCode IPoolDbMgr::commitOutput | ( | const std::string & | outputFile, | |
| bool | do_commit | |||
| ) | [pure virtual] |
Commit pending output.
| outputFile | String containig output file | |
| do_commit | if true commit the output and flush eventually pending items to the database if false, discard pending buffers. Note: The possibility to commit or rollback depends on the database technology used! |
Implemented in PoolDbCnvSvc.
Referenced by PoolDbNTupleCnv::createRep(), PoolDbNTupleCnv::fillRepRefs(), and PoolDbStatCnv::saveDescription().
| virtual StatusCode IPoolDbMgr::connect | ( | const std::string & | dbName, | |
| const std::string & | cntName, | |||
| pool::DbContainer & | cntH | |||
| ) | [pure virtual] |
Connect to a database container in read mode.
| dbName | String containing name of the database | |
| cntName | String containing the name of the container object | |
| cntH | Reference to the POOL container object |
Implemented in PoolDbCnvSvc.
Referenced by PoolDbNTupleCnv::createObj().
| virtual StatusCode IPoolDbMgr::connectContainer | ( | int | typ, | |
| const std::string & | dbName, | |||
| const std::string & | cntName, | |||
| pool::DbAccessMode | openMode, | |||
| const pool::DbTypeInfo * | shape, | |||
| pool::DbContainer & | cntH | |||
| ) | [pure virtual] |
Connect to a database container.
| typ | Database technology type | |
| dbName | String containing name of the database | |
| cntName | String containing the name of the container object | |
| openMode | Open mode (READ,WRITE,UPDATE,...) | |
| shape | Default shape of objects in the container | |
| cntH | Reference to the POOL container object |
Implemented in PoolDbCnvSvc.
Referenced by PoolDbNTupleCnv::createRep().
| virtual pool::DbSelect* IPoolDbMgr::createSelect | ( | const std::string & | criteria, | |
| const std::string & | dbName, | |||
| const std::string & | cntName | |||
| ) | [pure virtual] |
Request an iterator over a container from the service.
| criteria | Selection criteria to restrict iteration | |
| dbName | String containing name of the database | |
| cntName | String containing the name of the container object |
Implemented in PoolDbCnvSvc.
Referenced by PoolDbNTupleCnv::createObj(), PoolDbContext::selectInput(), and PoolDbDirectoryCnv::updateObjRefs().
| virtual StatusCode IPoolDbMgr::disconnect | ( | const std::string & | dbName | ) | [pure virtual] |
Disconnect from an existing data stream.
| dbName | String containing name of the database |
Implemented in PoolDbCnvSvc.
Referenced by PoolDbEvtSelector::next(), and PoolDbEvtSelector::rewind().
| virtual StatusCode IPoolDbMgr::markWrite | ( | pool::DataCallBack * | call, | |
| const std::string & | cntName, | |||
| PoolDbAddress ** | ppAddr = 0 | |||
| ) | [pure virtual] |
Marks a reference to be written.
| call | Pointer to callback object | |
| cntName | Container name the object should be written to. | |
| refpAddr | Persistent object location to be used for link setup. |
Implemented in PoolDbCnvSvc.
Referenced by PoolDbBaseCnv::createRep(), PoolDbNTupleCnv::fillRepRefs(), and PoolDbStatCnv::saveDescription().
| virtual StatusCode IPoolDbMgr::markUpdate | ( | pool::DataCallBack * | call, | |
| PoolDbAddress * | pAddr | |||
| ) | [pure virtual] |
Mark an object for update.
| call | Pointer to callback object | |
| pAddr | Persistent object location to be used for link setup. |
Implemented in PoolDbCnvSvc.
Referenced by PoolDbBaseCnv::updateRep().
| virtual StatusCode IPoolDbMgr::read | ( | pool::DataCallBack * | call, | |
| PoolDbAddress * | pAddr | |||
| ) | [pure virtual] |
Read existing object.
Open transaction in read mode if not active.
| call | Pointer to callback object | |
| pAddr | Pointer to valid object address. |
Implemented in PoolDbCnvSvc.
Referenced by PoolDbBaseCnv::createObj(), PoolDbNTupleCnv::updateObj(), and PoolDbDirectoryCnv::updateObjRefs().
| virtual StatusCode IPoolDbMgr::read | ( | pool::DataCallBack * | call, | |
| pool::Token & | tok | |||
| ) | [pure virtual] |
| call | Pointer to callback object |
| tok | Reference to pool token describing the object |
Implemented in PoolDbCnvSvc.