All members of the class private, only OSB_LIB::RateCodes should use this gateway.
Definition at line 61 of file tariff-gw.h.
void OSB_DB::RateCodeGw::checkUniqueness | ( | const Session & | session, | |
const OSB_LIB::RateCode & | rc | |||
) | [private] |
Check uniqueness of name and mnemonic.
session | Database session to use. | |
rc | Rating code for which to check. |
OsbException | if a know unique constraint is violated. |
void OSB_DB::RateCodeGw::insert | ( | const Session & | session, | |
OSB_LIB::RateCode * | rc | |||
) | [private] |
Create a rate code in the database.
session | Database session to use. | |
rc | Rating code to create, if the function returns successful, its object id and version are set. |
OsbException | if the name of the rate code is duplicate. |
void OSB_DB::RateCodeGw::lock | ( | const Session & | session, | |
OSB_LIB::RateCode * | rc | |||
) | [private] |
Lock the rate code in the database.
session | Database session to use. | |
rc | Rating code to lock, if the function returns normally, its object version is increased. |
ObjectModified | if the object version does not match the database. | |
ObjectDeleted | if the rate code does not (or never existed) in the database. |
void OSB_DB::RateCodeGw::read | ( | const Session & | session, | |
OSB_LIB::RateCodes::Cont & | dest | |||
) | [private] |
Read all rate codes from the database.
session | Database session to use. | |
dest | STL container to populate. The caller is responsible to clear the container (or to take other suitable measures) before calling the function. |
void OSB_DB::RateCodeGw::remove | ( | const Session & | session, | |
OSB_LIB::RateCode * | rc | |||
) | [private] |
Delete a rate code from the database.
session | Database session to use. | |
rc | Rating code to delete, if the function returns successful, its object id is cleared. |
ObjectModified | if the object version does not match the database. | |
ObjectDeleted | if the rate code does not (or never existed) in the database. |
void OSB_DB::RateCodeGw::update | ( | const Session & | session, | |
OSB_LIB::RateCode * | rc | |||
) | [private] |
Update a rate code in the database.
session | Database session to use. | |
rc | Rating code to create, if the function returns successful, its object version is increased. |
OsbException | if the name of the rate code is duplicate. | |
ObjectModified | if the object version does not match the database. | |
ObjectDeleted | if the rate code does not (or never existed) in the database. |
friend class OSB_LIB::RateCodes [friend] |