#include <CdbObject.hh>
Inheritance diagram for CdbObject:

Public Member Functions | |
| const CdbConditionPtr & | parent () const |
| Return a smart pointer to the parent condition object. | |
| const BdbTime & | beginOriginal () const |
| The beginning of the "original" validity interval of an object. | |
| const BdbTime & | endOriginal () const |
| The end of the "original" validity interval of an object. | |
| const BdbTime & | begin () const |
| The beginning of the "visible" validity interval of an object. | |
| const BdbTime & | end () const |
| The end of the "visible" validity interval of an object. | |
| const BdbTime & | beginDuration () const |
| The beginning of the "duration" interval of an object at the insertion dimension. | |
| const BdbTime & | endDuration () const |
| The end of the "duration" interval of an object at the insertion dimension. | |
| const BdbTime & | inserted () const |
| The insertion time of an object. | |
| virtual std::string | id () const=0 |
| An object identifier. | |
| virtual std::string | legacyId () const=0 |
| A 'legacy' object identifier. | |
| virtual std::string | type () const=0 |
| A persistent type name. | |
Static Public Member Functions | |
| CdbStatus | instance (CdbObjectPtr &theObjectPtr, const char *theFullPath, const BdbTime &theValidityTime, const CdbStateId &theStateId, const char *theDatabaseName=0, const char *theImplementationName=0, const char *theTechnologyName=0) |
| The static locator for a condition object. | |
| template<class T> CdbStatus | transient (T *&theTransientPtr, const CdbObjectPtr &theObjectPtr) |
| Convert into a transient form. | |
Protected Member Functions | |
| CdbObject (const CdbConditionPtr &theConditionPtr, const BdbTime &theBeginOriginalValidity, const BdbTime &theEndOriginalValidity, const BdbTime &theBeginValidity, const BdbTime &theEndValidity, const BdbTime &theBeginDuration, const BdbTime &theEndDuration, const BdbTime &theInsertionTime) | |
| The normal constructor. | |
| virtual | ~CdbObject () |
| The destructor. | |
Friends | |
| class | CdbCPtrBase< CdbObject > |
More details to come...
Definition at line 22 of file CdbObject.hh.
|
||||||||||||||||||||||||||||||||||||
|
The normal constructor. Initialize context with specified parameters.
Definition at line 81 of file CdbObject.cc. |
|
|
The destructor. More details... Definition at line 99 of file CdbObject.cc. |
|
|
The beginning of the "visible" validity interval of an object. NOTE: that the difference between the "visible" validity interval of an object and the validity interval it was originally stored with in the database. The "visible" validity interval is how the object was seen in the database when iy was fetched from it at specific revision level. This interval may get shorten (or even completelly overshadowed) as new objects are stored in a condition. Meanwhile the original (stored) validity never changes.
Definition at line 122 of file CdbObject.cc. |
|
|
The beginning of the "duration" interval of an object at the insertion dimension. The "duration" interval is
Definition at line 134 of file CdbObject.cc. |
|
|
The beginning of the "original" validity interval of an object.
Definition at line 110 of file CdbObject.cc. |
|
|
The end of the "visible" validity interval of an object.
Definition at line 128 of file CdbObject.cc. |
|
|
The end of the "duration" interval of an object at the insertion dimension.
Definition at line 140 of file CdbObject.cc. |
|
|
The end of the "original" validity interval of an object.
Definition at line 116 of file CdbObject.cc. |
|
|
An object identifier. The contents and the semantic of the string is defined by the underlying persistent technology. The method has to be implemented by a subclass. Implemented in CdbBdbObject, CdbRooRoObject, and CdbRooDbObject. Referenced by transient(). |
|
|
The insertion time of an object. This is an actual time when an object was stored in the database.
Definition at line 146 of file CdbObject.cc. |
|
||||||||||||||||||||||||||||||||
|
The static locator for a condition object. This locator uses the "state identifier" to resolve the right instance of the condition object in the scope of a database. The database itself as well as the top-level API object are two optional parameters of this method. If either (or both) of them are not specified then the corresponding default values will be used.
Definition at line 21 of file CdbObject.cc. References CdbStatus::Error, CdbCondition::instance(), CdbStateId::isValid(), CdbStateId::modificationTime(), CdbStatus::Success, and CdbStateId::viewId(). |
|
|
A 'legacy' object identifier. The contents and the semantic of the string is defined by the underlying persistent technology. The method has to be implemented by a subclass. Implemented in CdbBdbObject, CdbRooRoObject, and CdbRooDbObject. |
|
|
Return a smart pointer to the parent condition object.
Definition at line 104 of file CdbObject.cc. |
|
||||||||||||||||
|
Convert into a transient form. The method will try to find and use a "persistnet-to-transient" translator to produce a transient object of the specified (by the pointer) type. The translator is supposed to be registered with the top-level CDB API object of the current "technology" and "implementation".
Definition at line 109 of file CdbObject.hh. References id(), CdbStatus::IllegalParameters, and CdbStatus::Success. Referenced by CdbEnvProxy< T >::redefinedFaultHandler(), and CdbPayloadUtils::transient(). |
|
|
A persistent type name. The contents and the semantic of the string is defined by the underlying persistent technology. The method has to be implemented by a subclass. Implemented in CdbBdbObject, CdbRooRoObject, and CdbRooDbObject. |
|
|
Definition at line 24 of file CdbObject.hh. |
1.3-rc3