Definition at line 541 of file tcdist-gw.h.
void OSB_DB::MappingDistTcsGw::delMappings | ( | const Session & | session, | |
const OSB_LIB::MappingDistTcs & | tcs | |||
) | [private] |
Delete the mapping definitions of a mapping TCS.
session | Database session to use. | |
tcs | Mapping TCS for which to delete the mapping definitions. |
OsbException |
|
bool OSB_DB::MappingDistTcsGw::delSpecific | ( | const Session & | session, | |
OSB_LIB::MappingDistTcs & | tcs | |||
) | [private] |
Delete MappingDistTcs specific data.
session | Database session to use. | |
tcs | Object to with data to update. |
OsbException |
|
bool OSB_DB::MappingDistTcsGw::distTcsFreezed | ( | const Session & | session, | |
const OSB_LIB::MappingDistTcs::Oid & | tcsId, | |||
OSB_LIB::OsbErrors & | errors | |||
) | [private] |
Check distance TCS of a mapping TCS.
Verifies that a distance TCS is assigned to a mapping TCS, that it exists, has the correct type (OSB_LIB::TcSystem::tcsDist) and at least one version of that distance TCS is in a freezed status.
session | Database session to use. | |
tcsId | Id of the mapping TCS to check. | |
errors | Container for detected errors. |
OsbException |
|
bool OSB_DB::MappingDistTcsGw::distTcsReleased | ( | const Session & | session, | |
const OSB_LIB::MappingDistTcs::Oid & | tcsId, | |||
const OSB_LIB::DateTime & | releaseDate, | |||
OSB_LIB::OsbErrors & | errors | |||
) | [private] |
Verify that a distance TCS of a mapping TCS is released.
Verifies that at least one released version of the distance TCS assigned to a mapping TCS at the release date of the latter exists.
session | Database session to use. | |
tcsId | Id of the mapping TCS to check. | |
releaseDate | Release date of the mapping TCS. | |
errors | Container for detected errors. |
void OSB_DB::MappingDistTcsGw::insMappings | ( | const Session & | session, | |
const OSB_LIB::MappingDistTcs & | tcs | |||
) | [private] |
Insert the mapping definitions of a mapping TCS.
The function inserts all mapping definitions of the TCS object.
Mapping definitions for an unknown usage type are not inserted into the database but NOT deleted from the mapping TCS.
session | Database session to use. | |
tcs | Mapping TCS for which to insert the mapping definitions. |
OsbException |
|
bool OSB_DB::MappingDistTcsGw::insSpecific | ( | const Session & | session, | |
const OSB_LIB::MappingDistTcs & | tcs | |||
) | [private] |
Insert MappingDistTcs specific data.
session | Database session to use. | |
tcs | Object to with data to insert. |
OsbException |
|
bool OSB_DB::MappingDistTcsGw::mappingsComplete | ( | const Session & | session, | |
const OSB_LIB::MappingDistTcs::Oid & | tcsId, | |||
OSB_LIB::OsbErrors & | errors | |||
) | [private] |
Check completeness of mapping definitions.
For a mappping TCS that functions verifies, that for each configured usage type, a mapping for the origin and destination is defined.
session | Database session to use. | |
tcsId | Id of the mapping TCS to check. | |
errors | Container for detected errors. |
void OSB_DB::MappingDistTcsGw::readMappings | ( | const Session & | session, | |
OSB_LIB::MappingDistTcs & | tcs | |||
) | [private] |
Read the mapping definitions of a mapping TCS.
The function clears the current mapping definitions of the mapping TCS and then reads them from the database.
session | Database session to use. | |
tcs | Mapping TCS for which to read the mapping definitions. |
OsbException |
|
bool OSB_DB::MappingDistTcsGw::readSpecific | ( | const Session & | session, | |
OSB_LIB::MappingDistTcs & | tcs | |||
) | [private] |
Read MappingDistTcs specific data.
The function uses the object id of `tcs' to read its specific data. The function is not exception-save: If it throws, the status of `tcs' is undefined.
session | Database session to use. | |
tcs | Object to populate. |
OsbException |
|
bool OSB_DB::MappingDistTcsGw::sameTariffClasses | ( | const Session & | session, | |
const OSB_LIB::MappingDistTcs::Oid & | tcsId, | |||
OSB_LIB::OsbErrors & | errors | |||
) | [private] |
Check consistency of tariff classes.
The function first checks if another version of a mapping TCS with a freezed status exists.
If this is the case, the function verifies that the set of tariff classes for `tcsId' is identical to the set of tariff classes for other freezed versions the mapping TCS.
session | Database session to use. | |
tcsId | Id of the mapping TCS to check. | |
errors | Container for detected errors. |
OsbException |
|
bool OSB_DB::MappingDistTcsGw::updSpecific | ( | const Session & | session, | |
OSB_LIB::MappingDistTcs & | tcs | |||
) | [private] |
Update MappingDistTcs specific data.
session | Database session to use. | |
tcs | Object to with data to update. |
OsbException |
|
friend class OSB_LIB::MappingDistTcs [friend] |