Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbBdbObjectCreator Class Reference

This is a trait class for creating objects. More...

#include <CdbBdbObjectCreator.hh>

List of all members.

Static Public Member Functions

CdbStatus hint (BdbRefAny &theHint, const CdbConditionPtr &theConditionPtr, const BdbTime &theBegin, const BdbTime &theEnd)
 Provide a placement hint in specified context.

CdbStatus verify (const BdbRefAny &theHint, const BdbHandle(BdbObject)&thePersObj, const CdbConditionPtr &theConditionPtr)
 Verify if specified placement hint and persistent objects match each other.

CdbStatus object (CdbObjectPtr &theObjectPtr, const CdbConditionPtr &theConditionPtr, const BdbTime &theBeginOriginalValidity, const BdbTime &theEndOriginalValidity, const BdbTime &theBeginValidity, const BdbTime &theEndValidity, const BdbTime &theBeginDuration, const BdbTime &theEndDuration, const BdbTime &theInsertionTime, const BdbHandle(BdbObject)&thePersObj)
 Build an object of a concrete class from specified parameters.


Detailed Description

This is a trait class for creating objects.

This trait class provides object hint/creation/verification services to CDB API implementaions related to the current persistent technology.

The interface defines the following operations:

Definition at line 25 of file CdbBdbObjectCreator.hh.


Member Function Documentation

CdbStatus CdbBdbObjectCreator::hint BdbRefAny &    theHint,
const CdbConditionPtr   theConditionPtr,
const BdbTime   theBegin,
const BdbTime   theEnd
[static]
 

Provide a placement hint in specified context.

This operation may involves interactions with a database.

See also:
CdbCondition

CdbConditionPtr

BdbTime

CdbStatus

Parameters:
theHint  a reference to the hint to be initialized
theConditionPtr  a smart pointer onto a condition's API
theBegin  a point where the object's validity begins from
theEnd  ... and finishes (exclusing) at

Definition at line 27 of file CdbBdbObjectCreator.cc.

References CdbStatus::Error, CdbCPtr< CdbCondition, CdbAlwaysClosePolicy< CdbCondition > >::get(), CdbBdbHintProvider::hint(), CdbCPtr< Cdb, CdbDoNotClosePolicy< Cdb > >::isNull(), and CdbBdb::technology().

Referenced by CdbBdbObjectFactory::create().

CdbStatus CdbBdbObjectCreator::object CdbObjectPtr   theObjectPtr,
const CdbConditionPtr   theConditionPtr,
const BdbTime   theBeginOriginalValidity,
const BdbTime   theEndOriginalValidity,
const BdbTime   theBeginValidity,
const BdbTime   theEndValidity,
const BdbTime   theBeginDuration,
const BdbTime   theEndDuration,
const BdbTime   theInsertionTime,
const BdbHandle(BdbObject)&    thePersObj
[static]
 

Build an object of a concrete class from specified parameters.

This operation may involves interactions with a database.

See also:
CdbCondition

CdbConditionPtr

CdbObject

CdbObjectPtr

BdbTime

CdbStatus

Parameters:
theObjectPtr  a smart pointer onto an object to be created
theConditionPtr  a smart pointer onto a condition's API
theBeginOriginalValidity  a point where the object's 'original' validity begins from
theEndOriginalValidity  ... and finishes (exclusing) at
theBeginValidity  a point where the object's 'visible' validity begins from
theEndValidity  ... and finishes (exclusing) at
theBeginDuration  a point where the object's duration at insertin time begins from
theEndDuration  ... and finishes (exclusing) at
theInsertionTime  the time when a new object was created
thePersObj  a reference onto a persistent object

Definition at line 111 of file CdbBdbObjectCreator.cc.

References CdbStatus::Success.

Referenced by CdbBdbObjectFactory::create(), CdbBdbWCondition::findObject(), and CdbBdbSCondition::findObject().

CdbStatus CdbBdbObjectCreator::verify const BdbRefAny &    theHint,
const BdbHandle(BdbObject)&    thePersObj,
const CdbConditionPtr   theConditionPtr
[static]
 

Verify if specified placement hint and persistent objects match each other.

This operation is meant to verify of specified persistent object was properly created in the place suggested by the hint.

This operation may involves interactions with a database.

See also:
CdbStatus
Parameters:
theHint  a reference to the hint
thePersObj  a reference onto a persistent object
theConditionPtr  a smart pointer onto a condition's API

Definition at line 70 of file CdbBdbObjectCreator.cc.

References CdbStatus::Error, CdbCPtr< CdbCondition, CdbAlwaysClosePolicy< CdbCondition > >::get(), CdbCPtr< Cdb, CdbDoNotClosePolicy< Cdb > >::isNull(), CdbBdb::technology(), and CdbBdbHintProvider::verify().

Referenced by CdbBdbObjectFactory::create().


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:18 2005 for CDB by doxygen1.3-rc3