The class describes one applied status change for an entity of the contract related classes.
Definition at line 71 of file statuschange.h.
typedef Id<StatusChange> OSB_LIB::StatusChange::Oid |
Constructor with optional object id.
oid | Database id of the status change. |
Definition at line 305 of file statuschange.h.
void OSB_LIB::StatusChange::adjustNewStatus | ( | const Status & | prefStatus | ) | [inline] |
Adjust the new status to the preferred status.
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.
session | Database session to use. |
OsbException |
|
std::ostream& OSB_LIB::StatusChange::write | ( | std::ostream & | os | ) | const |
Print to an output stream.
os | Output stream to write to. |
friend class OSB_DB::StatusChangeGw [friend] |
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().
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()().