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

CdbBdbObjectTranslatorPT< P, T > Class Template Reference

The transient & persistent type specific specialization of persistent-to-transient translators. More...

#include <CdbBdbObjectTranslatorPT.hh>

Inheritance diagram for CdbBdbObjectTranslatorPT< P, T >:

CdbObjectTranslatorT< T > CdbObjectTranslator CdbBdbObjectTranslatorP2T< P, T > List of all members.

Public Member Functions

virtual ~CdbBdbObjectTranslatorPT ()
 Destructor.


Protected Member Functions

 CdbBdbObjectTranslatorPT ()
 Default constructor.

virtual CdbStatus toTransientPT (T *&theTransientPtr, const BdbHandle(P)&theObjectH) const=0
 Translate into a transient object (persistent & transient type specific translation).


Detailed Description

template<class P, class T>
class CdbBdbObjectTranslatorPT< P, T >

The transient & persistent type specific specialization of persistent-to-transient translators.

This class is an element of the "persistent-to-transient" translation facility extending the core CDB API and allowing a better (and more confined) controll over persistency in client applications.

Roles of this class are:

1. to translate an actual persistent type into its name 2. to be a direct base class for concrete persistent-technology translators

See also:
class CdbObjectTranslatorT

Definition at line 28 of file CdbBdbObjectTranslatorPT.hh.


Constructor & Destructor Documentation

template<class P, class T>
CdbBdbObjectTranslatorPT< P, T >::CdbBdbObjectTranslatorPT   [protected]
 

Default constructor.

IMPLEMENTATION NOTES:

The constructor may start a short transaction of none is available yet. The transaction is needed to translate the specified persistent type into its name.

Definition at line 58 of file CdbBdbObjectTranslatorPT.cc.

template<class P, class T>
virtual CdbBdbObjectTranslatorPT< P, T >::~CdbBdbObjectTranslatorPT   [inline, virtual]
 

Destructor.

Definition at line 104 of file CdbBdbObjectTranslatorPT.hh.


Member Function Documentation

template<class P, class T>
virtual CdbStatus CdbBdbObjectTranslatorPT< P, T >::toTransientPT T *&    theTransientPtr,
const BdbHandle(P)&    theObjectH
const [protected, pure virtual]
 

Translate into a transient object (persistent & transient type specific translation).

This is a redefined version of a similar method CdbObjectTranslatorT::toTransientT() defined in the base class and implemented above. Its role is to force translation procedures of subclasses be written in terms of the specified persistent & transinet types.

The method is supposed to be implemented by subclasses. The method is guaranteed to be called with the correct parameters.

See also:
CdbObjectTranslatorT::toTransientT()
Parameters:
theTransientPtr  the pointer to be initialized with the result
theObjectH  the input persistent object

Implemented in CdbBdbObjectTranslatorP2T< P, T >.


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