Definition at line 758 of file tcdist-gw.h.
bool OSB_DB::DistTcsGw::allReleasedTzConfigUnique | ( | const Session & | session, | |
const OSB_LIB::TcsVersion::Oid & | oid, | |||
OSB_LIB::OsbErrors & | errors | |||
) | [private] |
Ensure all tariff zone configurations are unique.
This function checks and ensures that all released tariff zone configurations bound to the distance TCS, with the given object id, are unique, which means, no any two tariff zone configurations have the same origin-destination pair AND their release date overlap each other.
session | Database session. | |
oid | Object id of the distance TCS to check. | |
errors | Container for error information. |
bool OSB_DB::DistTcsGw::delDistTcs | ( | const Session & | session, | |
OSB_LIB::DistTcs & | distTcs | |||
) | [private] |
Delete distance TCS specific data from database.
session | Database session. | |
distTcs | Distance TCS to delete. |
OsbException | for the following errors:
|
bool OSB_DB::DistTcsGw::fetch | ( | const Session & | session, | |
OSB_LIB::DistTcs & | distTcs | |||
) |
Populate a distance tariff classification system object with data.
This function accept an empty distance tariff classification system object with only its oid set. It will populate all other type specifig attributes of the object.
session | Database session. | |
distTcs | Distance TCS to populate. |
bool OSB_DB::DistTcsGw::findReplacementFreezedDistTcs | ( | const Session & | session, | |
const OSB_LIB::TcsVersion::Oid & | oid | |||
) | [private] |
Find the replacement for a freezed distance TCS.
session | Database session. | |
oid | Object id of the distance TCS to replace. |
OSB_LIB::DateTime OSB_DB::DistTcsGw::findReplacementReleasedDistTcs | ( | const Session & | session, | |
const OSB_LIB::TcsVersion::Oid & | oid | |||
) | [private] |
Find the replacement for a released distance TCS.
session | Database session. | |
oid | Object id of the distance TCS to replace. |
bool OSB_DB::DistTcsGw::hasConfiguration | ( | const Session & | session, | |
const OSB_LIB::TcsVersion::Oid & | oid | |||
) | [private] |
Ensure the distance TCS has been configured.
This function checks that the distance TCS has at least one entry in the "tariff zone -> tariff class" mapping.
session | Database session. | |
oid | Distance TCS to check. |
bool OSB_DB::DistTcsGw::hasOtherReleasedDistTcs | ( | const Session & | session, | |
const OSB_LIB::TcsVersion::Oid & | oid | |||
) | [private] |
Check is there any other released distance TCS exists.
session | Database session. | |
oid | Object id of the distance TCS to check. |
bool OSB_DB::DistTcsGw::identicalTariffClasses | ( | const Session & | session, | |
const OSB_LIB::TcsVersion::Oid & | oid | |||
) | [private] |
Ensure all version of distance TCS is consistence.
This function checks the distance TCS with the given object id to ensure that it consists the same set of tariff classes as the previous version does. If this is the first version of the distance TCS to be relased, no checkin will be performed.
session | Database session. | |
oid | Object id of the distance TCS to check. |
bool OSB_DB::DistTcsGw::insDistTcs | ( | const Session & | session, | |
OSB_LIB::DistTcs & | distTcs | |||
) | [private] |
Add a new distance tariff classification system.
This function will insert the type specific data of a distance tariff classification system into database.
session | Database session. | |
distTcs | Distance TCS to insert. |
bool OSB_DB::DistTcsGw::isUsedByFreezedMappingDistTcs | ( | const Session & | session, | |
const OSB_LIB::TcsVersion::Oid & | oid | |||
) | [private] |
Check whether distance TCS is used.
This function checks whether any freezed MappingDistTcs is using the distance TCS with the object id given.
session | Database session. | |
oid | Object id of the distance TCS to be checked. |
bool OSB_DB::DistTcsGw::isUsedByReleasedMappingDistTcs | ( | const Session & | session, | |
const OSB_LIB::TcsVersion::Oid & | oid | |||
) | [private] |
Check whether distance TCS is used.
This function checks whether any released MappingDistTcs is using the distance TCS with the object id given.
session | Database session. | |
oid | Object id of the distance TCS to be checked. |
bool OSB_DB::DistTcsGw::updDistTcs | ( | const Session & | session, | |
OSB_LIB::DistTcs & | distTcs | |||
) | [private] |
Update distance TCS specific data from database.
session | Database session. | |
distTcs | Distance TCS to update. |
OsbException | for the following errors:
|
friend class OSB_LIB::DistTcs [friend] |
Distance TCS needs to call the private member functions.
Definition at line 762 of file tcdist-gw.h.