A grouping of distance and service dependent charging parameters that together with TariffPeriod determines the tariff to be applied for a given call at any particular point of time.
Definition at line 114 of file tariffclass.h.
typedef Id<TariffClass> OSB_LIB::TariffClass::Oid |
Default constructor with optional object id.
bool OSB_LIB::TariffClass::insert | ( | const OSB_DB::Session & | session | ) | [private] |
Insert a tariff class into database.
A new object is inserted. All attributes of the object has been set except object id. The object id will only be set by the function if the insertion is successful.
session | Database session. |
OsbException | for the following errors:
|
const Oid& OSB_LIB::TariffClass::oid | ( | ) | const |
Get unique id of tariff class.
bool OSB_LIB::TariffClass::read | ( | const OSB_DB::Session & | session | ) |
Read a tariff class from database.
The object id is used to gather other info from database and then populate all the object's data members.
session | Database session. |
bool OSB_LIB::TariffClass::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Remove a tariff class from database.
After the function call, oid of this object will be unset to indicate that there is no such entry anymore in the database.
session | Database session. |
OsbException | for the following errors:
|
bool OSB_LIB::TariffClass::update | ( | const OSB_DB::Session & | session | ) | [private] |
Update a tariff class in the database.
Old entry in the database indentify by the object id will be replaced with the new data from the passed in, upated object.
session | Database session used. |
OsbException | for the following erros:
|
friend class OSB_DB::TariffClassGw [friend] |
friend class TariffCatalogue [friend] |
Allow tariff catalogue to invoke the private functions.
Definition at line 118 of file tariffclass.h.
Oid OSB_LIB::TariffClass::oid_ [private] |