Definition at line 66 of file ratedservice-gw.h.
bool OSB_DB::RatedServiceGw::allScCfgEditable | ( | const Session & | session, | |
const OSB_LIB::RatedService::Oid & | rsId, | |||
OSB_LIB::OsbErrors & | msgs | |||
) |
Check status consistency of rated service during unfreeze.
The function verifies that a rated service status change from standby to editable does not create a conflict with any service class configuration using the rated service.
session | Database session to use. | |
rsId | Object id of rated service to verify. | |
msgs | Container for detected conflicts. |
OSB_LIB::ObjectStatus OSB_DB::RatedServiceGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::RatedService & | service, | |||
bool | doThrow | |||
) |
Check the current object version.
session | Database session to use. | |
service | Service to verify. | |
doThrow | Flag to throw the appropriate exception if service is not up-to-date. |
OsbException | if doThrow is true and the object version of service does not match the database. |
long OSB_DB::RatedServiceGw::fetch | ( | const Session & | session, | |
OSB_LIB::RatedServices & | services | |||
) |
Get all rated services from database.
session | Database session to use. | |
services | STL-container to populate. |
bool OSB_DB::RatedServiceGw::fetch | ( | const Session & | session, | |
OSB_LIB::RatedService * | service | |||
) |
Read a rated service from database.
session | Database session to use. | |
service | Rated to service to read, its object id is used selection criteria. |
bool OSB_DB::RatedServiceGw::insert | ( | const Session & | session, | |
OSB_LIB::RatedService * | service | |||
) |
Create new rated service in database.
session | Database session to use. | |
service | Service to insert. If the function returns successful, its object id is set. |
void OSB_DB::RatedServiceGw::lock | ( | const Session & | session, | |
OSB_LIB::RatedService * | service | |||
) |
Lock a rated service in the database.
session | Database session to use. | |
service | Rated service to lock, its object version is increased by 1 if the function does not throw. |
OsbException | if the rated service can not be locked, i.e., inconsistent object version. |
bool OSB_DB::RatedServiceGw::noScCfgReleased | ( | const Session & | session, | |
const OSB_LIB::RatedService::Oid & | rsId, | |||
OSB_LIB::OsbErrors & | msgs | |||
) |
Check status consistency of rated service during revoke.
The function verifies that a rated service status change from released to standby does not create a conflict with any service class configuration using the rated service.
session | Database session to use. | |
rsId | Object id of rated service to verify. | |
msgs | Container for detected conflicts. |
bool OSB_DB::RatedServiceGw::remove | ( | const Session & | session, | |
OSB_LIB::RatedService * | service | |||
) |
Delete a rated service from the database.
session | Database session to use. | |
service | Service to delete. If the function returns successful, its object id is cleared. |
bool OSB_DB::RatedServiceGw::updAttr | ( | const Session & | session, | |
const OSB_LIB::RatedService & | service | |||
) |
Update attributes of a rated service in the database.
session | Database session to use. | |
service | Service to update, its object version is increased if the function return successful. |
void OSB_DB::RatedServiceGw::updCfg | ( | const Session & | session, | |
const OSB_LIB::RatedService & | service | |||
) |
Update the configuration of a rated service in the database.
session | Database session to use. | |
service | Service to update, its object version is increased if the function return successful. |
bool OSB_DB::RatedServiceGw::updStatus | ( | const Session & | session, | |
const OSB_LIB::RatedService & | service | |||
) |
Change the status of rated service.
session | Database session. | |
service | Rated service to update, its new status must be set. |