#include <CdbBdbObjectConvertor.hh>
Static Public Member Functions | |
| CdbStatus | narrow (BdbHandle(BdbObject)&thePersObj, const CdbObjectPtr &thePtr) |
| Narrow a transient meta-data object into a real persistent object. | |
| template<class P> CdbStatus | typeSafeNarrow (BdbHandle(P)&thePersObj, const CdbObjectPtr &thePtr) |
| Narrow a transient meta-data object into a real persistent object of specified type. | |
This is a utility class providing an interface to technology-specific implementations of the persistent object conversion. It's sussposed to be a kind of "type bridge" between the technology-independent part of the API and the technology-specific one.
Definition at line 18 of file CdbBdbObjectConvertor.hh.
|
||||||||||||
|
Narrow a transient meta-data object into a real persistent object. This operation will verify if the specified object pointer has expected technology, and if so it will extract the persistent handle out of this object. Note, that it's up to teh end user to upcast from the resulting handle to a handle of the actual class.
Definition at line 26 of file CdbBdbObjectConvertor.cc. References CdbStatus::Error, CdbCPtr< CdbObject, CdbDoNotClosePolicy< CdbObject > >::get(), CdbCPtr< Cdb, CdbDoNotClosePolicy< Cdb > >::isNull(), CdbStatus::Success, and CdbBdb::technology(). Referenced by CdbBdbNTupleP2T< ELEMENT_CONVERSION_RULES >::convert(), main(), CdbBdbWCondition::storeAndTruncateObject(), CdbBdbWCondition::storeObject(), CdbBdbSCondition::storeObject(), typeSafeNarrow(), and CdbBdbProxyCache::updateCache(). |
|
||||||||||||||||
|
Narrow a transient meta-data object into a real persistent object of specified type. This operation is a functional superset of the CdbBdbObjectConvertor::narrow() method. In addition it does the type matching for specified type. If the type does not match then it returns a error status.
Definition at line 49 of file CdbBdbObjectConvertor.hh. References CdbStatus::Error, narrow(), and CdbStatus::Success. |
1.3-rc3