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

DbContainerConverter Class Reference

Db objects: DbContainerConverter. More...

#include <DbContainerConverter.h>

Inheritance diagram for DbContainerConverter:

DbGenericConverter DbBaseConverter Converter DbExportContCnv DbOOMsContainerConverter List of all members.

Protected Methods

 DbContainerConverter (const CLID& clid, IOODataBase* db, ISvcLocator* svc)
 Standard Constructor. More...

virtual ~DbContainerConverter ()
 Standard Destructor. More...

virtual StatusCode doTransientUpdate ( dbHandle<DbDefObject>& objH, DataObject* pObject)
 Overridable callback when actually updating the transient data. More...

virtual StatusCode doPersistentUpdate ( dbHandle<DbDefObject>& objH, const DataObject* pObject)
 Overridable callback when actually updating the persistent data. More...

ContainedObject* createContained (const CLID& clid)
 Create contained object according to CLID. More...

IContainedObjectFactory* locateCreator (const CLID& clid)
 Locate creator factory using the object manager. More...

IContainedObjectFactory* objCreator (const CLID& clid)
 Locate creator factory using the object manager and add to local map. More...

StatusCode checkObject ( ContainedObject* pObj, const CLID& clid )
 Validate retrieved object. More...


Protected Attributes

void* m_factories
 Vector with object factories. More...


Private Attributes

friend CnvFactory<DbContainerConverter>
 Declare factory as friend. More...


Detailed Description

Db objects: DbContainerConverter.

Description: Definition of the generic Db data converter for container objects like ObjectVector<TYPE> or ObjectList<TYPE>.

For a detailed description of the overridden function see the the base classes.

Base class: DbGenericConverter.

History :

    +---------+----------------------------------------------+--------+
    |    Date |                 Comment                      | Who    |
    +---------+----------------------------------------------+--------+
    | 21/02/00| Initial version.                             | MF     |
    +---------+----------------------------------------------+--------+
    
Author: M.Frank Version: 1.0

Definition at line 48 of file DbContainerConverter.h.


Constructor & Destructor Documentation

DbContainerConverter::DbContainerConverter ( const CLID & clid,
IOODataBase * db,
ISvcLocator * svc ) [protected]
 

Standard Constructor.

Definition at line 30 of file DbContainerConverter.cpp.

DbContainerConverter::~DbContainerConverter ( ) [protected, virtual]
 

Standard Destructor.

Definition at line 37 of file DbContainerConverter.cpp.


Member Function Documentation

StatusCode DbContainerConverter::checkObject ( ContainedObject * pObj,
const CLID & clid ) [protected]
 

Validate retrieved object.

Definition at line 84 of file DbContainerConverter.cpp.

Referenced by doTransientUpdate().

ContainedObject * DbContainerConverter::createContained ( const CLID & clid ) [protected]
 

Create contained object according to CLID.

Definition at line 75 of file DbContainerConverter.cpp.

Referenced by doTransientUpdate().

StatusCode DbContainerConverter::doPersistentUpdate ( dbHandle< DbDefObject >& objH,
const DataObject * pObject ) [protected, virtual]
 

Overridable callback when actually updating the persistent data.

Definition at line 100 of file DbContainerConverter.cpp.

StatusCode DbContainerConverter::doTransientUpdate ( dbHandle< DbDefObject >& objH,
DataObject * pObject ) [protected, virtual]
 

Overridable callback when actually updating the transient data.

Definition at line 156 of file DbContainerConverter.cpp.

IContainedObjectFactory * DbContainerConverter::locateCreator ( const CLID & clid ) [protected]
 

Locate creator factory using the object manager.

Definition at line 58 of file DbContainerConverter.cpp.

Referenced by objCreator().

IContainedObjectFactory * DbContainerConverter::objCreator ( const CLID & clid ) [protected]
 

Locate creator factory using the object manager and add to local map.

Definition at line 42 of file DbContainerConverter.cpp.

Referenced by createContained(), and doTransientUpdate().


Member Data Documentation

friend DbContainerConverter::CnvFactory<DbContainerConverter> [private]
 

Declare factory as friend.

Definition at line 50 of file DbContainerConverter.h.

void * DbContainerConverter::m_factories [protected]
 

Vector with object factories.

Definition at line 53 of file DbContainerConverter.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:22:21 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000