ATLAS Offline Software
Static Public Member Functions | List of all members
pool::DbObjectAccessor Class Reference

Db objects: class DbObjectAccessor. More...

#include <DbObjectAccessor.h>

Collaboration diagram for pool::DbObjectAccessor:

Static Public Member Functions

static DbStatus read (void **ptr, ShapeH shape, DbContainer &cntH, const Token::OID_t &oid)
 Read object from a container, using its OID. More...
 
static const DbContainercontainedIn (const DbObject *pObj)
 Retrieve hosting container. More...
 
static Token::OID_tobjectOid (DbObject *ptr)
 Access object oid. More...
 
static const Token::OID_tobjectOid (const DbObject *ptr)
 Access object oid. More...
 
static DbStatus makeObjectLink ATLAS_NOT_THREAD_SAFE (const DbObject *pObj, Token *pToken, Token::OID_t &tokenH)
 Add persistent association entry. More...
 

Detailed Description

Db objects: class DbObjectAccessor.

Description: Access class to implement handle actions

Author
M.Frank
Version
1.0

Definition at line 29 of file DbObjectAccessor.h.

Member Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

static DbStatus makeObjectLink pool::DbObjectAccessor::ATLAS_NOT_THREAD_SAFE ( const DbObject pObj,
Token pToken,
Token::OID_t tokenH 
)
static

Add persistent association entry.

◆ containedIn()

static const DbContainer& pool::DbObjectAccessor::containedIn ( const DbObject pObj)
static

Retrieve hosting container.

◆ objectOid() [1/2]

static const Token::OID_t& pool::DbObjectAccessor::objectOid ( const DbObject ptr)
static

Access object oid.

◆ objectOid() [2/2]

static Token::OID_t& pool::DbObjectAccessor::objectOid ( DbObject ptr)
static

Access object oid.

◆ read()

static DbStatus pool::DbObjectAccessor::read ( void **  ptr,
ShapeH  shape,
DbContainer cntH,
const Token::OID_t oid 
)
static

Read object from a container, using its OID.

Parameters
ptr[OUT] Pointer to the retrieved object
shape[IN] Object type information
cntH[IN] Handle to source object's container.
OID[IN] OID of the target object.
Returns
DbStatus code indicating success or failure.

The documentation for this class was generated from the following file: