Definition at line 108 of file tariff.h.
typedef std::map<RateCode::Oid, RateCode> OSB_LIB::RateCodes::Cont |
const Cont& OSB_LIB::RateCodes::codes | ( | ) | const |
Read access to all rate codes.
void OSB_LIB::RateCodes::create | ( | const OSB_DB::Session & | session, | |
RateCode * | rc | |||
) |
Create a rate code in the database.
session | Database session to use. | |
rc | RateCode to create, its object id is set if the function returns successful. |
OsbException | if
|
const RateCode* OSB_LIB::RateCodes::findRateCode | ( | const RateCode::Oid & | id | ) |
Get a rate code, non-throwing.
id | Object id of the rate code to find. |
const RateCode& OSB_LIB::RateCodes::getRateCode | ( | const RateCode::Oid & | id | ) |
Get a rate code.
id | Object id of the rate code to find. |
ObjectNotFound | if the rate code for id does not exist. |
void OSB_LIB::RateCodes::read | ( | const OSB_DB::Session & | session | ) |
Read rate codes from the database.
void OSB_LIB::RateCodes::remove | ( | const OSB_DB::Session & | session, | |
RateCode * | rc | |||
) |
Delete a rate code from the database.
session | Database session to use. | |
rc | RateCode to delete, its object id is cleared if the function return successful. |
OsbException | if the rate code is used by rating functions. | |
ObjectModified | if the object version does not match the database. |
void OSB_LIB::RateCodes::update | ( | const OSB_DB::Session & | session, | |
RateCode * | rc | |||
) |
Modify a rate code in the database.
session | Database session to use. | |
rc | RateCode to update, its object version is increased. |
OsbException | if
| |
ObjectNotFound | if rc does not exist in the database. | |
ObjectModified | if the object version does not match the database. |
Cont OSB_LIB::RateCodes::codes_ [private] |