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

CdbBdbSViewCollectionP Class Reference

A persistent implementation the collection of persistent "view". More...

Inheritance diagram for CdbBdbSViewCollectionP:

CdbBdbSCollectionP BdbPersObj List of all members.

Public Member Functions

 CdbBdbSViewCollectionP ()
 Default constructor.

virtual ~CdbBdbSViewCollectionP ()
 Destructor.

virtual CdbStatus insert (const BdbRef(CdbBdbSCollectionElementP)&theRef)
 Insert an element.

virtual CdbStatus newest (BdbRef(CdbBdbSCollectionElementP)&theRef)
 Find the most recent view.


Detailed Description

A persistent implementation the collection of persistent "view".

In addition to its base class, the current collection brings in the concept and extended API for the "newest" element. The "newest" element is the view, which has the most recent creation time.

Definition at line 16 of file CdbBdbSViewCollectionP.ddl.


Constructor & Destructor Documentation

CdbBdbSViewCollectionP::CdbBdbSViewCollectionP  
 

Default constructor.

Initializes empty collection.

Definition at line 19 of file CdbBdbSViewCollectionP.cc.

CdbBdbSViewCollectionP::~CdbBdbSViewCollectionP   [virtual]
 

Destructor.

Definition at line 24 of file CdbBdbSViewCollectionP.cc.


Member Function Documentation

CdbStatus CdbBdbSViewCollectionP::insert const BdbRef(CdbBdbSCollectionElementP)&    theRef [virtual]
 

Insert an element.

Override the method of the base class to perform additional tests which are important in the current context.

See also:
CdbBdbSCollectionP::insert()

Reimplemented from CdbBdbSCollectionP.

Definition at line 28 of file CdbBdbSViewCollectionP.cc.

References BdbRef(), CdbStatus::Error, CdbBdbSCollectionP::insert(), and CdbStatus::Success.

CdbStatus CdbBdbSViewCollectionP::newest BdbRef(CdbBdbSCollectionElementP)&    theRef [virtual]
 

Find the most recent view.

The most recent view is the one having the most recent creation time. The method will return CdbStatus::NotFound if the collection is empty.

Definition at line 76 of file CdbBdbSViewCollectionP.cc.

References CdbStatus::NotFound, and CdbStatus::Success.


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