This object contains a number of service classes. This object will also contain at least one object of service class system version. A used service that comes in should match only one of the service tuple from one of the service class system version that resides in this object.
Definition at line 288 of file serviceclass.h.
typedef Id<ScSystem> OSB_LIB::ScSystem::Oid |
bool OSB_LIB::ScSystem::insert | ( | const OSB_DB::Session & | session | ) | [private] |
Insert a service class system 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 used. |
OsbException | for the following errors:
|
const Oid& OSB_LIB::ScSystem::oid | ( | ) | const |
Return the object id of this object.
bool OSB_LIB::ScSystem::read | ( | const OSB_DB::Session & | session | ) |
Read a service class system 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 object. |
bool OSB_LIB::ScSystem::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Remove a service class system 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 used. |
OsbException | for the following errors:
|
const std::set<ServiceClass::Oid> OSB_LIB::ScSystem::supportedSc | ( | ) | const |
Get list of supported service classes.
bool OSB_LIB::ScSystem::update | ( | const OSB_DB::Session & | session | ) | [private] |
Update a service class system 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 used. |
OsbException | for the following errors:
|
friend struct OSB_DB::ScSystemGw [friend] |
The database gateway needs to populate data members after construction.
Definition at line 293 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 299 of file serviceclass.h.
Oid OSB_LIB::ScSystem::oid_ [private] |