OSB_LIB::StatusChange Class Reference

Collaboration diagram for OSB_LIB::StatusChange:

Collaboration graph
[legend]
List of all members.

Detailed Description

Effective activation status.

The class describes one applied status change for an entity of the contract related classes.

Definition at line 71 of file statuschange.h.

Public Types

Public Member Functions

Public Attributes

Private Attributes

Friends

Classes


Member Typedef Documentation

typedef Id<StatusChange> OSB_LIB::StatusChange::Oid

Typesave unique identifier, link to database table.

Definition at line 77 of file statuschange.h.


Constructor & Destructor Documentation

OSB_LIB::StatusChange::StatusChange ( const Oid oid = Oid()  )  [inline, explicit]

Constructor with optional object id.

Parameters:
oid Database id of the status change.
oldStatus_ and newStatus_ are set to svNone.

Definition at line 305 of file statuschange.h.


Member Function Documentation

void OSB_LIB::StatusChange::adjustNewStatus ( const Status prefStatus  )  [inline]

Adjust the new status to the preferred status.

Parameters:
prefStatus Preferred status to use.

Definition at line 317 of file statuschange.h.

References OSB_LIB::mkChildStatus(), newStatus_, and OSB_LIB::Status::status().

GeValidFrom OSB_LIB::StatusChange::geValidFrom (  )  const

Get predicate for greater-equal comparision of validFrom().

const StatusChange::Oid OSB_LIB::StatusChange::oid (  )  const [inline]

Get the status change id.

Definition at line 312 of file statuschange.h.

References oid_.

Referenced by OSB_LIB::StatusChanges::Cmp::operator()().

bool OSB_LIB::StatusChange::read ( const OSB_DB::Session session  ) 

Read data for a status change.

This function can read a status change based on the given object id and populate to the object.

Parameters:
session Database session to use.
Returns:
True if read succeed.
Exceptions:
OsbException 
  • as specified by the gateway class (see there).

std::ostream& OSB_LIB::StatusChange::write ( std::ostream &  os  )  const

Print to an output stream.

Parameters:
os Output stream to write to.
Returns:
Reference to argument ostream.


Friends And Related Function Documentation

friend class OSB_DB::StatusChangeGw [friend]

Allow to set the object id.

Definition at line 73 of file statuschange.h.


Member Data Documentation

StatusValue OSB_LIB::StatusChange::newStatus_

New status of entity.

Definition at line 142 of file statuschange.h.

Referenced by adjustNewStatus().

Oid OSB_LIB::StatusChange::oid_ [private]

Unique identification: database link.

Definition at line 135 of file statuschange.h.

Referenced by oid().

StatusValue OSB_LIB::StatusChange::oldStatus_

Previous, old status of entity.

Definition at line 140 of file statuschange.h.

StatusReason::Oid OSB_LIB::StatusChange::reasonId_

Reason for the status change.

Definition at line 144 of file statuschange.h.

Id<StatusRequest> OSB_LIB::StatusChange::requestId_

The request that triggered the status change.

Definition at line 138 of file statuschange.h.

DateTime OSB_LIB::StatusChange::validFrom_

Date when the status change was applied, i.e. became effective.

Definition at line 149 of file statuschange.h.

Referenced by OSB_LIB::StatusChanges::Cmp::operator()(), and OSB_LIB::StatusChange::GeValidFrom::operator()().


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:13:08 2006 for OSB Library by  doxygen 1.4.7