Definition at line 61 of file tariffsystem-gw.h.
| OSB_LIB::ObjectStatus OSB_DB::TariffSystemGw::checkObjVs | ( | const Session & | session, | |
| const OSB_LIB::TariffSystem & | ts | |||
| ) |
Check the current object version.
| session | Database session to use. | |
| ts | Tariff system to be checked. |
| bool OSB_DB::TariffSystemGw::delTariffSystem | ( | const Session & | session, | |
| OSB_LIB::TariffSystem & | ts | |||
| ) |
Delete tariff system from the database.
This function removes the tariff system from the database. It does not remove the tariff system object from the list of tariff systems.
| session | Database session to use. | |
| ts | Tariff system object to be deleted. |
| OsbException | for the following errors:
|
| bool OSB_DB::TariffSystemGw::fetch | ( | const Session & | session, | |
| OSB_LIB::TariffSystem & | ts | |||
| ) |
Load all tariff systems into the argument STL container.
This function supports the interface to retrieve data from tariff system.
| session | Database session to use. | |
| ts | Tariff system to be populated. |
| bool OSB_DB::TariffSystemGw::fetch | ( | const Session & | session, | |
| OSB_LIB::TariffSystems & | tss | |||
| ) |
Load all tariff systems into a STL container.
This function supports the interface to retrieve data from tariff system.
| session | Database session to use. | |
| tss | Container to store the tariff system retrieved. |
| long OSB_DB::TariffSystemGw::getGracePeriod | ( | const Session & | session, | |
| const OSB_LIB::ModuleId | module | |||
| ) |
Get grace period from system configuration.
| session | Database session to use. | |
| module | Module for which to get the grace period. |
| bool OSB_DB::TariffSystemGw::insTariffSystem | ( | const Session & | session, | |
| OSB_LIB::TariffSystem & | ts | |||
| ) |
Create a record in the database.
Create a new tariff system object, which is to be returned to the caller. The function does not add the object into the list of tariff systems.
| session | Database session to use. | |
| ts | Reference to tariff system object. |
| OsbException | if name or value is longer than the characters allowed and if encounter problem during process. |
| bool OSB_DB::TariffSystemGw::lock | ( | const Session & | session, | |
| const long | lockId, | |||
| bool | nowait = true | |||
| ) |
Temporary locks for groups of tariff objects.
The functions tries to lock the row that is identified by lockId in the table TARIFF_OBJECT_LOCK. If the lock fails and waitflag is set to true, the function waits until the row becomes available. The function returns true if the requested row could be locked, else false.
| session | Database session to use. | |
| lockId | Sequence number: It determines the order in which the tariff object groups are to be locked. Use this as primary key related to database. | |
| nowait | This input will tell database whether it will wait to access this table until the previous lock function finishes. |
| bool OSB_DB::TariffSystemGw::updTariffSystem | ( | const Session & | session, | |
| OSB_LIB::TariffSystem & | ts | |||
| ) |
Modify tariff system.
Update the tariff system in the database with the one passed in. After a successful update, the passed in object will have its objVs_ increment.
| session | Database session to use. | |
| ts | Updated tariff system. |
| OsbException | for the following errors:
|
1.4.7