Definition at line 181 of file tariffclass-gw.h.
OSB_LIB::ObjectStatus OSB_DB::TcSystemGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::TcSystem & | tcs | |||
) |
Check the current object version.
session | Database session. | |
tcs | Object where the object version is to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::TcSystemGw::delTcSystem | ( | const Session & | session, | |
OSB_LIB::TcSystem & | tcs | |||
) |
Delete a tariff classification system from database.
This function removes the tariff classification system from the database base on the object id of the passed in tariff classification system object. On successful deletion, the object id of the passed in tariff classification system object will be unset.
session | Database session. | |
tcs | Tariff classification system to be deleted. |
OsbException | if encounter problem during process. |
bool OSB_DB::TcSystemGw::fetch | ( | const Session & | session, | |
OSB_LIB::TcSystem & | tcs | |||
) |
Populate a tariff classification system object.
This function will retrieve the data from database, based on the object id of the passed in tariff classification system object. Then the data retrieved will be used to populater the passed in object.
session | Database session. | |
tcs | Tariff classification system to be populated. |
OsbException | for any database errors. |
long OSB_DB::TcSystemGw::fetch | ( | const Session & | session, | |
OSB_LIB::TcSystems & | tcses | |||
) |
Load all tariff classification systems into the argument STL container.
session | Database session. | |
tcses | Container for the tariff classification system retrieved. |
OsbException | when encounter problem during process. |
bool OSB_DB::TcSystemGw::insTcSystem | ( | const Session & | session, | |
OSB_LIB::TcSystem & | tcs | |||
) |
Create a record in the database.
Insert a new tariff classification system entry into the database. The passed in object will have its object id set if the insertion is successful.
session | Database session. | |
tcs | New tariff classification system object. |
OsbException | if name and description is longer than the number of characters allowed and if encounter problem during process. |
bool OSB_DB::TcSystemGw::updTcSystem | ( | const Session & | session, | |
OSB_LIB::TcSystem & | tcs | |||
) |
Modify tariff classification system.
Update the database entry with the data from the updated tariff classification system object passed in. This function will update te database entry based on the object id of the passed in object.
session | Database session. | |
tcs | Updated tariff classification system. |
OsbException | if name and description is longer than the number of characters allowed and if encounter problem during process. |
friend class OSB_LIB::TcSystem [friend] |
Tariff classification system needs to call the private member functions.
Definition at line 186 of file tariffclass-gw.h.