OSB_DB::StatusChangeGw Class Reference

List of all members.

Detailed Description

StatusChangeGw, access to STATUS_CHANGE.

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.

Public Member Functions


Member Function Documentation

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.

Parameters:
session Database session to use.
stChange Ref of status change to read.
Returns:
True for found, else false.

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.

Parameters:
session Database session to use.
changes List to populate.
ppnId Pers. product node to read for.
Returns:
The number of status changes read.

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.

Parameters:
session Database session to use.
changes List to populate.
id Pers. product to read for.
Returns:
The number of status changes read.

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.

Parameters:
session Database session to use.
changes List to populate.
id Contract to read for.
Returns:
The number of status changes read.

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.

Parameters:
session Database session to use.
changes List to populate.
id Associate to read for.
Returns:
The number of status changes read.

void OSB_DB::StatusChangeGw::insert ( const Session session,
OSB_LIB::StatusChange change 
)

Create a status change.

Parameters:
session Database session to use.
change Status change to create.


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