StatusChangeGw provides read access to the status changes of Associate, Contract, PersProduct and PersProductNode. Each of the 4 fetch member functions read the status changes for an object of one the classes above during a time period and adds the status changes to the list passed as parameter. The function does not modify any existing changes in this list.
The upper boundary of the time period is not included, i.e. if a status changes was applied exactly at the upper boundary this status change is not read from the database.
Definition at line 85 of file statuschange-gw.h.
bool OSB_DB::StatusChangeGw::fetch | ( | const Session & | session, | |
OSB_LIB::StatusChange & | stChange | |||
) |
Load one status change for the given id.
It will populate to status change if success.
session | Database session to use. | |
stChange | Ref of status change to read. |
long OSB_DB::StatusChangeGw::fetch | ( | const Session & | session, | |
OSB_LIB::StatusChanges * | changes, | |||
const OSB_LIB::Id2< OSB_LIB::PersProductNode > & | ppnId | |||
) |
Read all status changes of a pers. product part.
session | Database session to use. | |
changes | List to populate. | |
ppnId | Pers. product node to read for. |
long OSB_DB::StatusChangeGw::fetch | ( | const Session & | session, | |
OSB_LIB::StatusChanges * | changes, | |||
const OSB_LIB::Id< OSB_LIB::PersProduct > & | id | |||
) |
Read all status changes of a pers. product.
session | Database session to use. | |
changes | List to populate. | |
id | Pers. product to read for. |
long OSB_DB::StatusChangeGw::fetch | ( | const Session & | session, | |
OSB_LIB::StatusChanges * | changes, | |||
const OSB_LIB::Id< OSB_LIB::Contract > & | id | |||
) |
Read all status changes of a Contract.
session | Database session to use. | |
changes | List to populate. | |
id | Contract to read for. |
long OSB_DB::StatusChangeGw::fetch | ( | const Session & | session, | |
OSB_LIB::StatusChanges * | changes, | |||
const OSB_LIB::Id< OSB_LIB::Associate > & | id | |||
) |
Read all status changes of an associate.
session | Database session to use. | |
changes | List to populate. | |
id | Associate to read for. |
void OSB_DB::StatusChangeGw::insert | ( | const Session & | session, | |
OSB_LIB::StatusChange & | change | |||
) |
Create a status change.
session | Database session to use. | |
change | Status change to create. |