This object represent a service category. Every used service will belong to a specific service class. Then a tariff system will be selected to rate the service used.
Definition at line 79 of file serviceclass.h.
typedef Id<ServiceClass> OSB_LIB::ServiceClass::Oid |
bool OSB_LIB::ServiceClass::insert | ( | const OSB_DB::Session & | session | ) | [private] |
Insert a service class into database.
A new object is inserted. All attribute 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::ServiceClass::oid | ( | ) | const |
Return the object id of this object.
bool OSB_LIB::ServiceClass::read | ( | const OSB_DB::Session & | session | ) |
Read a service class from database.
The object id is used to gather other info from database and then populate the object's service tuple list.
session | Database session. |
bool OSB_LIB::ServiceClass::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Remove a service 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::ServiceClass::update | ( | const OSB_DB::Session & | session | ) | [private] |
Update a service class in the database.
Old entry in the database identify by the object id will be replaced with the new data from this object.
session | Database session. |
OsbException | for the following errors:
|
friend struct OSB_DB::ServiceClassGw [friend] |
The database gateway needs to populate data members after construction.
Definition at line 84 of file serviceclass.h.
friend class TariffCatalogue [friend] |
Tariff Catalogue is the only object that is allow to invoke the private functions of this class.
Definition at line 90 of file serviceclass.h.
Oid OSB_LIB::ServiceClass::oid_ [private] |