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

CdbSQLPartition Class Reference

A partition. More...

#include <CdbSQLPartition.hh>

Inheritance diagram for CdbSQLPartition:

CdbSQLCloneOf< CdbSQLPartition > CdbMySQLPartition List of all members.

Public Member Functions

virtual ~CdbSQLPartition ()
 Destructor.

CdbCPtr< CdbSQLOriginparent () const
 Back link to the parent.

unsigned short id () const
unsigned short originId () const
bool isInstantiated () const
bool isClosed () const
BdbTime created () const
BdbTime modified () const
const CdbSQLCellcell () const
BdbTime beginValidity () const
BdbTime endValidity () const
BdbTime beginInsertion () const
BdbTime endInsertion () const
std::string description () const
bool isInValidityInterval (const BdbTime &theValidityTime) const
 Get the cell Find out of the specific validity time is within the partition.

virtual void dump (const std::string &theIndent="") const
 Print object's contents onto the Standard Output Stream.

virtual void dump (std::ostream &os, const std::string &theIndent="") const
 Print object's contents onto the specified output stream.

virtual CdbStatus number_of_increments (unsigned short &theNumber)=0
 Get the number of increments.

virtual CdbStatus find_last_increment (CdbCPtr< CdbSQLPartitionIncrement > &thePtr)=0
 Find the last increment of the partition.

virtual CdbStatus find_increment (CdbCPtr< CdbSQLPartitionIncrement > &thePtr, unsigned int thId)=0
 Find all increments of the partition.

virtual CdbStatus increments (std::vector< CdbCPtr< CdbSQLPartitionIncrement > > &theList)=0
 Get a list of increments for the partition.

virtual CdbStatus update (const BdbTime &theUpdateTime)=0
 Update the modification time of the partition.


Protected Member Functions

 CdbSQLPartition (const CdbCPtr< CdbSQLOrigin > &theParentPtr, unsigned short theId, unsigned short theOriginId, bool isInstantiatedFlag, bool isClosedFlag, const BdbTime &theCreationTime, const BdbTime &theModificationTime, const BdbTime &theBeginValidity, const BdbTime &theEndValidity, const BdbTime &theBeginInsertion, const BdbTime &theEndInsertion, const std::string &theDescription)
 Normal constructor.

 CdbSQLPartition (const CdbSQLPartition &theOther)
 Copy constructor.

void setModified (const BdbTime &theTime)
 Cange the modification time.


Detailed Description

A partition.

This class reresents a partition.

Definition at line 25 of file CdbSQLPartition.hh.


Constructor & Destructor Documentation

CdbSQLPartition::CdbSQLPartition const CdbCPtr< CdbSQLOrigin > &    theParentPtr,
unsigned short    theId,
unsigned short    theOriginId,
bool    isInstantiatedFlag,
bool    isClosedFlag,
const BdbTime   theCreationTime,
const BdbTime   theModificationTime,
const BdbTime   theBeginValidity,
const BdbTime   theEndValidity,
const BdbTime   theBeginInsertion,
const BdbTime   theEndInsertion,
const std::string &    theDescription
[protected]
 

Normal constructor.

Definition at line 21 of file CdbSQLPartition.cc.

References CdbCPtr< P, CLOSE_POLICY >::isNull().

CdbSQLPartition::CdbSQLPartition const CdbSQLPartition &    theOther [protected]
 

Copy constructor.

The c-tor is available to the current or derived classes. Its original use would be to implement the "deep" clone mechanism.

Definition at line 45 of file CdbSQLPartition.cc.

CdbSQLPartition::~CdbSQLPartition   [virtual]
 

Destructor.

Definition at line 56 of file CdbSQLPartition.cc.


Member Function Documentation

BdbTime CdbSQLPartition::beginInsertion   const [inline]
 

Definition at line 91 of file CdbSQLPartition.hh.

References CdbSQLCell::beginInsertion.

Referenced by dump(), and CdbMySQLPartition::equals().

BdbTime CdbSQLPartition::beginValidity   const [inline]
 

Definition at line 89 of file CdbSQLPartition.hh.

References CdbSQLCell::beginValidity.

Referenced by dump(), CdbMySQLPartition::equals(), and isInValidityInterval().

const CdbSQLCell& CdbSQLPartition::cell   const [inline]
 

Definition at line 87 of file CdbSQLPartition.hh.

Referenced by CdbMySQLPartition::equals().

BdbTime CdbSQLPartition::created   const [inline]
 

Definition at line 84 of file CdbSQLPartition.hh.

Referenced by dump(), and CdbMySQLPartition::equals().

std::string CdbSQLPartition::description   const [inline]
 

Definition at line 95 of file CdbSQLPartition.hh.

Referenced by dump(), and CdbMySQLPartition::equals().

void CdbSQLPartition::dump std::ostream &    os,
const std::string &    theIndent = ""
const [virtual]
 

Print object's contents onto the specified output stream.

Definition at line 73 of file CdbSQLPartition.cc.

References beginInsertion(), beginValidity(), created(), description(), endInsertion(), endValidity(), id(), isClosed(), isInstantiated(), modified(), originId(), and CdbTimeUtils::time2string().

void CdbSQLPartition::dump const std::string &    theIndent = "" const [virtual]
 

Print object's contents onto the Standard Output Stream.

Definition at line 66 of file CdbSQLPartition.cc.

BdbTime CdbSQLPartition::endInsertion   const [inline]
 

Definition at line 92 of file CdbSQLPartition.hh.

References CdbSQLCell::endInsertion.

Referenced by dump(), and CdbMySQLPartition::equals().

BdbTime CdbSQLPartition::endValidity   const [inline]
 

Definition at line 90 of file CdbSQLPartition.hh.

References CdbSQLCell::endValidity.

Referenced by dump(), CdbMySQLPartition::equals(), and isInValidityInterval().

virtual CdbStatus CdbSQLPartition::find_increment CdbCPtr< CdbSQLPartitionIncrement > &    thePtr,
unsigned int    thId
[pure virtual]
 

Find all increments of the partition.

Implemented in CdbMySQLPartition.

virtual CdbStatus CdbSQLPartition::find_last_increment CdbCPtr< CdbSQLPartitionIncrement > &    thePtr [pure virtual]
 

Find the last increment of the partition.

Implemented in CdbMySQLPartition.

unsigned short CdbSQLPartition::id   const [inline]
 

Definition at line 78 of file CdbSQLPartition.hh.

Referenced by dump(), CdbMySQLPartition::equals(), CdbMySQLPartition::find_increment(), CdbMySQLPartition::find_last_increment(), CdbMySQLPartition::increments(), and CdbMySQLPartition::update().

virtual CdbStatus CdbSQLPartition::increments std::vector< CdbCPtr< CdbSQLPartitionIncrement > > &    theList [pure virtual]
 

Get a list of increments for the partition.

Implemented in CdbMySQLPartition.

bool CdbSQLPartition::isClosed   const [inline]
 

Definition at line 82 of file CdbSQLPartition.hh.

Referenced by dump(), and CdbMySQLPartition::equals().

bool CdbSQLPartition::isInstantiated   const [inline]
 

Definition at line 81 of file CdbSQLPartition.hh.

Referenced by dump(), and CdbMySQLPartition::equals().

bool CdbSQLPartition::isInValidityInterval const BdbTime   theValidityTime const [inline]
 

Get the cell Find out of the specific validity time is within the partition.

Definition at line 102 of file CdbSQLPartition.hh.

References beginValidity(), and endValidity().

BdbTime CdbSQLPartition::modified   const [inline]
 

Definition at line 85 of file CdbSQLPartition.hh.

Referenced by dump(), CdbMySQLPartition::equals(), and CdbMySQLPartition::update().

virtual CdbStatus CdbSQLPartition::number_of_increments unsigned short &    theNumber [pure virtual]
 

Get the number of increments.

Implemented in CdbMySQLPartition.

unsigned short CdbSQLPartition::originId   const [inline]
 

Definition at line 79 of file CdbSQLPartition.hh.

Referenced by dump(), CdbMySQLPartition::equals(), CdbMySQLPartition::find_increment(), CdbMySQLPartition::find_last_increment(), CdbMySQLPartition::increments(), and CdbMySQLPartition::update().

CdbCPtr< CdbSQLOrigin > CdbSQLPartition::parent   const
 

Back link to the parent.

Definition at line 60 of file CdbSQLPartition.cc.

void CdbSQLPartition::setModified const BdbTime   theTime [inline, protected]
 

Cange the modification time.

Definition at line 64 of file CdbSQLPartition.hh.

Referenced by CdbMySQLPartition::update().

virtual CdbStatus CdbSQLPartition::update const BdbTime   theUpdateTime [pure virtual]
 

Update the modification time of the partition.

Implemented in CdbMySQLPartition.


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