Definition at line 58 of file tariffclass-gw.h.
OSB_LIB::ObjectStatus OSB_DB::TariffClassGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::TariffClass & | tc | |||
) | [private] |
Check the current object version.
session | Database session. | |
tc | Tariff class to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::TariffClassGw::delTariffClass | ( | const Session & | session, | |
OSB_LIB::TariffClass & | tc | |||
) | [private] |
Delete a tariff class object from database.
This function will delete a tariff class entry from database based on the object id of the passed in tariff class object. After a successful deletion, the passed in tariff class object will have its object id unset.
session | Database session. | |
tc | Tariff class to be deleted. |
OsbException | for the following errors:
|
bool OSB_DB::TariffClassGw::fetch | ( | const Session & | session, | |
OSB_LIB::TariffClass & | tc | |||
) |
Populate a tariff class object with data.
This function accept an empty tariff class object with only its object id set. With the object id, it retrieve all other data from database and populate the tariff class object.
session | Database session. | |
tc | Tariff class object to be populated. |
OsbException | for any database errors. |
long OSB_DB::TariffClassGw::fetch | ( | const Session & | session, | |
OSB_LIB::TariffClasses & | tcs | |||
) |
Get a list of all tariff classes from database.
session | Database session. | |
tcs | Container for the tariff classes retrieved. |
OsbException | for any database errors. |
bool OSB_DB::TariffClassGw::insTariffClass | ( | const Session & | session, | |
OSB_LIB::TariffClass & | tc | |||
) | [private] |
Insert a new tariff class into database.
Before the function call, the new tariff class may have all its attributes set except object id. Only after a successfully insertion, the new tariff class will have its object id set.
session | Database session. | |
tc | New tariff class to be inserted. |
OsbException | for the following errors:
|
bool OSB_DB::TariffClassGw::updTariffClass | ( | const Session & | session, | |
OSB_LIB::TariffClass & | tc | |||
) | [private] |
Update a tariff class.
The function will update a tariff class entry in the database with the data from the passed in object based on the object id, also from the passed in tariff class object.
session | Database session. | |
tc | Updated tariff class. |
OsbException | for the following errors:
|
friend class OSB_LIB::TariffClass [friend] |
Tariff class need to call the private member functions.
Definition at line 62 of file tariffclass-gw.h.