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

CdbBdbNTupleConversionImpl_Helper< PERSISTENT, T, NCOL, ELEMENT_CONVERSION_RULES > Struct Template Reference

Internal implementation helper class. More...

List of all members.

Static Public Member Functions

CdbStatus to_transient (CdbNTuple< T, NCOL > *&thePtr, const ooRef(BdbObject)&thePersRef)
 Try to convert into a transient form.

CdbStatus to_persistent (ooRef(BdbObject)&thePersRef, const CdbCPtr< CdbNTuple< T, NCOL > > &thePtr, const BdbRefAny &theHintRef)
 Try to produce a persistent object out of a transient tuple.


Detailed Description

template<class PERSISTENT, class T, unsigned int NCOL, class ELEMENT_CONVERSION_RULES>
struct CdbBdbNTupleConversionImpl_Helper< PERSISTENT, T, NCOL, ELEMENT_CONVERSION_RULES >

Internal implementation helper class.

This class will perform the actual conversion operations based on the persistent class specified as its template parameter.

DESIGN NOTES:

The model of a class passed as a value of the 'PERSISTENT' parameter must be the same one as in case of the "CdbBdbNTupleP" class except signatures for constructors (the issue of different constructors will be solved later).

Definition at line 44 of file CdbBdbNTupleConversionImpl.cc.


Member Function Documentation

template<class PERSISTENT, class T, unsigned int NCOL, class ELEMENT_CONVERSION_RULES>
CdbStatus CdbBdbNTupleConversionImpl_Helper< PERSISTENT, T, NCOL, ELEMENT_CONVERSION_RULES >::to_persistent ooRef(BdbObject)&    thePersRef,
const CdbCPtr< CdbNTuple< T, NCOL > > &    thePtr,
const BdbRefAny &    theHintRef
[inline, static]
 

Try to produce a persistent object out of a transient tuple.

The method will attempt to use the specified persistent type to store the contents of the specified transient tuple.

Definition at line 161 of file CdbBdbNTupleConversionImpl.cc.

References CdbStatus::Error, CdbStatus::IllegalParameters, and CdbStatus::Success.

template<class PERSISTENT, class T, unsigned int NCOL, class ELEMENT_CONVERSION_RULES>
CdbStatus CdbBdbNTupleConversionImpl_Helper< PERSISTENT, T, NCOL, ELEMENT_CONVERSION_RULES >::to_transient CdbNTuple< T, NCOL > *&    thePtr,
const ooRef(BdbObject)&    thePersRef
[inline, static]
 

Try to convert into a transient form.

The method will check if the specified reference matches the specified persistent type as well as parameters of the transient n-tuple.

Definition at line 51 of file CdbBdbNTupleConversionImpl.cc.

References CdbNTuple< T, NCOL >::append_row(), CdbNTupleFactoryFE::createSimple(), CdbStatus::Error, CdbStatus::IllegalParameters, CdbBdbSchemaUtils::instance(), ooRef(), CdbStatus::Success, and CdbBdbSchemaUtils::typeNumberToClassName().


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