Definition at line 308 of file serviceclass-gw.h.
bool OSB_DB::ScsVersionGw::allRsFreezed | ( | const Session & | session, | |
const OSB_LIB::ScsVersion::Oid & | oid, | |||
OSB_LIB::OsbErrors & | errors | |||
) | [private] |
Check that all rated services are freezed.
This function verifies that no rated service of a SCS version is editable.
session | Database session to use. | |
oid | Object id of the SCS version to check. | |
errors | Container for detected errors. |
bool OSB_DB::ScsVersionGw::allRsReleased | ( | const Session & | session, | |
const OSB_LIB::ScsVersion::Oid & | oid, | |||
OSB_LIB::OsbErrors & | errors | |||
) | [private] |
Check that all rated services are released.
This function verifies that all rated services of a SCS version are released.
session | Database session to use. | |
oid | Object id of the SCS version to check. | |
errors | Container for detected errors. |
OSB_LIB::ObjectStatus OSB_DB::ScsVersionGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::ScsVersion & | scsVs | |||
) | [private] |
Check the current object version.
session | Database session to use. | |
scsVs | SCS version for which to check the object version. |
bool OSB_DB::ScsVersionGw::delScsVersion | ( | const Session & | session, | |
OSB_LIB::ScsVersion & | scsVs | |||
) | [private] |
Delete a service class system version.
The service class system version to be deleted must already exist in the database table and in status editable. The object is not deleted automaticaly. Application will have to delete the object itself. After the function call, the object's id will be unset.
session | Database session to use. | |
scsVs | Service class system version to delete. |
OsbException | for the following errors:
|
bool OSB_DB::ScsVersionGw::fetch | ( | const Session & | session, | |
OSB_LIB::ScsVersions & | dest | |||
) |
Retrieve all service class system version from database.
session | Database session to use. | |
dest | STL container to store to SCS versions. |
bool OSB_DB::ScsVersionGw::fetch | ( | const Session & | session, | |
OSB_LIB::ScsVersion & | scsVs | |||
) |
Populate a service class system version object with data.
This function accept an empty service class system version with only its oid set. It will populate all other attribute of the object.
session | Database session to use. | |
scsVs | SCS version to populate. |
bool OSB_DB::ScsVersionGw::findReplacementFreezedScsVersion | ( | const Session & | session, | |
const OSB_LIB::ScsVersion::Oid & | oid | |||
) | [private] |
Find the replacement for a freezed service class system version.
session | Database session to use. | |
oid | Object id of the service class system version to be replaced. |
bool OSB_DB::ScsVersionGw::hasOtherReleasedScsVersion | ( | const Session & | session, | |
const OSB_LIB::ScsVersion::Oid & | oid | |||
) | [private] |
Check is there any other released service class system version exists.
session | Database session to use. | |
oid | Object id of the service class system version to check. |
bool OSB_DB::ScsVersionGw::identicalServiceClasses | ( | const Session & | session, | |
const OSB_LIB::ScsVersion::Oid & | oid | |||
) | [private] |
Ensure all versions of service class system support the same set of service classes.
This function will refer to the previous released versions of service class system to do the comparison. This function always return true if the object to be checked is the first version to be released.
session | Database session to use. | |
oid | Object id of the service class system version to be checked. |
bool OSB_DB::ScsVersionGw::insScsVersion | ( | const Session & | session, | |
OSB_LIB::ScsVersion & | scsVs | |||
) | [private] |
Add a new service class system version.
Before the function call, the object must have all its member attributes assigned (except oid). After the function call, the object will get its oid_. In case of an error, exception is thrown.
session | Database session to use. | |
scsVs | New service class system version to add. |
OsbException | for the following errors:
|
bool OSB_DB::ScsVersionGw::isReleasedInFuture | ( | const Session & | session, | |
const OSB_LIB::ScsVersion::Oid & | oid | |||
) | [private] |
Check whether the release date is in the future.
This function checks whether the release date of the service class system version with the given object id is in the future.
session | Database session to use. | |
oid | Object id of the service class system version to check. |
bool OSB_DB::ScsVersionGw::isScSystemUsedByFreezedTsVersion | ( | const Session & | session, | |
const OSB_LIB::ScSystem::Oid & | oid | |||
) | [private] |
Check whether service class system version is in used.
This function checks whether any freezed tariff system version is using the service class system version with the object id given.
session | Database session to use. | |
oid | Object id of the service class system to check. |
bool OSB_DB::ScsVersionGw::isScSystemUsedByReleasedTsVersion | ( | const Session & | session, | |
const OSB_LIB::ScSystem::Oid & | oid | |||
) | [private] |
Check whether service class system version is in used.
This function checks whether any released tariff system version is using the service class system version with the object id given.
session | Database session to use. | |
oid | Object id of the service class system to check. |
OSB_LIB::DateTime OSB_DB::ScsVersionGw::nextReleasedVersion | ( | const Session & | session, | |
const OSB_LIB::ScsVersion::Oid & | oid | |||
) | [private] |
Find the replacement for a released service class system version.
session | Database session to use. | |
oid | Object id of the service class system version to be replaced. |
bool OSB_DB::ScsVersionGw::serviceTuplesUnique | ( | const Session & | session, | |
const OSB_LIB::ScsVersion::Oid & | oid, | |||
OSB_LIB::OsbErrors & | errors | |||
) | [private] |
Check the uniqueness of service tuples.
session | Database session to use. | |
oid | Object id of the SCS version to check. | |
errors | Gets error messages for duplicate service tuples. |
bool OSB_DB::ScsVersionGw::uniqueReleaseTs | ( | const Session & | session, | |
const OSB_LIB::ScSystem::Oid & | oid, | |||
const OSB_LIB::DateTime & | ts | |||
) | const [private] |
Check whether the release date is unique.
This function will check whether the release date is unique among the different versions of the same service class system.
session | Database session to use. | |
oid | Object id of the service class system. | |
ts | Release time stamp to check. |
bool OSB_DB::ScsVersionGw::updScsVersion | ( | const Session & | session, | |
OSB_LIB::ScsVersion & | scsVs | |||
) | [private] |
Update a service class system version.
The function will modify the data of an object in the database with the data contained within the input object.
session | Database session to use. | |
scsVs | Service class system version to update. |
OsbException | for the following errors:
|
void OSB_DB::ScsVersionGw::updStatus | ( | const Session & | session, | |
OSB_LIB::ScsVersion & | scsVs | |||
) | [private] |
Change the status of service class system version.
This function will change the status of service class system version with the given object id based on the input status.
session | Database session to use. | |
scsVs | SCS version to update, its new status must be set. |
friend class OSB_LIB::ScsVersion [friend] |
Service class system version needs to call the private member functions.
Definition at line 313 of file serviceclass-gw.h.