Gaudi Framework, version v22r2

Home   Generated: Tue May 10 2011
Public Types | Public Member Functions

IPoolDbMgr Class Reference

Description: More...

#include <PoolDb/IPoolDbMgr.h>

Inheritance diagram for IPoolDbMgr:
Inheritance graph
[legend]
Collaboration diagram for IPoolDbMgr:
Collaboration graph
[legend]

List of all members.

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

 DeclareInterfaceID (IPoolDbMgr, 2, 0)
 InterfaceID.
virtual IPoolCacheSvccacheSvc () 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::DbSelectcreateSelect (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
 Read existing object. Open transaction in read mode if not active.

Detailed Description

Description:

The IPoolDbMgr service interface allows to store and retrieve data stored with the POOL persistency mechanism.

Author:
Markus Frank
Version:
1.0

Definition at line 51 of file IPoolDbMgr.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
BAD_DATA_CONNECTION 

Definition at line 61 of file IPoolDbMgr.h.

anonymous enum
Enumerator:
UNKNOWN 
PFN 
LFN 
FID 

Definition at line 56 of file IPoolDbMgr.h.


Member Function Documentation

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.

Parameters:
type_stringGaudi storage string identifier
gaudi_typeGaudi storage identifier
Returns:
Status code indicating failure or success.

Implemented in PoolDbCnvSvc.

virtual IPoolCacheSvc* IPoolDbMgr::cacheSvc (  ) const [pure virtual]

Access to cache service.

Implemented in PoolDbCnvSvc.

virtual StatusCode IPoolDbMgr::commitOutput ( const std::string outputFile,
bool  do_commit 
) [pure virtual]

Commit pending output.

Parameters:
outputFileString containig output file
do_commitif 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!
Returns:
Status code indicating success or failure.

Implemented in PoolDbCnvSvc.

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.

Parameters:
dbNameString containing name of the database
cntNameString containing the name of the container object
cntHReference to the POOL container object
Returns:
Status code indicating success or failure.

Implemented in PoolDbCnvSvc.

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.

Parameters:
typDatabase technology type
dbNameString containing name of the database
cntNameString containing the name of the container object
openModeOpen mode (READ,WRITE,UPDATE,...)
shapeDefault shape of objects in the container
cntHReference to the POOL container object
Returns:
Status code indicating success or failure.

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.

Parameters:
outputFileString containig output file
openModeString containig opening mode of the output file
Returns:
Status code indicating success or failure.

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.

Parameters:
svc_typeTechnology identifier encapsulated in this address.
clidClass identifier of the DataObject represented by the opaque address
parArray of strings needed to construct the opaque address.
iparArray of integers needed to construct the opaque address.
refpAddressReference to pointer to the address where the created Address should be stored.
Returns:
Status code indicating success or failure.

Implemented in PoolDbCnvSvc.

virtual StatusCode IPoolDbMgr::createAddress ( pool::Token pToken,
PoolDbAddress **  ppAddress 
) [pure virtual]

Create a Generic address using explicit arguments to identify a single object.

Parameters:
pTokenPointer to valid POOL token object
ppAddressReference to pointer to the address where the created Address should be stored.
Returns:
Status code indicating success or failure.

Implemented in PoolDbCnvSvc.

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.

Parameters:
criteriaSelection criteria to restrict iteration
dbNameString containing name of the database
cntNameString containing the name of the container object
Returns:
Reference to the iterator object

Implemented in PoolDbCnvSvc.

IPoolDbMgr::DeclareInterfaceID ( IPoolDbMgr  ,
,
 
)
virtual StatusCode IPoolDbMgr::disconnect ( const std::string dbName ) [pure virtual]

Disconnect from an existing data stream.

Parameters:
dbNameString containing name of the database
Returns:
Status code indicating success or failure.

Implemented in PoolDbCnvSvc.

virtual StatusCode IPoolDbMgr::markUpdate ( pool::DataCallBack call,
PoolDbAddress pAddr 
) [pure virtual]

Mark an object for update.

Parameters:
callPointer to callback object
pAddrPersistent object location to be used for link setup.
Returns:
Status code indicating success or failure.

Implemented in PoolDbCnvSvc.

virtual StatusCode IPoolDbMgr::markWrite ( pool::DataCallBack call,
const std::string cntName,
PoolDbAddress **  ppAddr = 0 
) [pure virtual]

Marks a reference to be written.

Parameters:
callPointer to callback object
cntNameContainer name the object should be written to.
refpAddrPersistent object location to be used for link setup.
Returns:
Status code indicating success or failure.

Implemented in PoolDbCnvSvc.

virtual StatusCode IPoolDbMgr::read ( pool::DataCallBack call,
PoolDbAddress pAddr 
) [pure virtual]

Read existing object.

Open transaction in read mode if not active.

Parameters:
callPointer to callback object
pAddrPointer to valid object address.
Returns:
Status code indicating success or failure.

Implemented in PoolDbCnvSvc.

virtual StatusCode IPoolDbMgr::read ( pool::DataCallBack call,
pool::Token tok 
) [pure virtual]

Read existing object. Open transaction in read mode if not active.

Parameters:
callPointer to callback object
tokReference to pool token describing the object
Returns:
Status code indicating success or failure.

Implemented in PoolDbCnvSvc.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Tue May 10 2011 18:54:53 for Gaudi Framework, version v22r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004