A grouping of one or more origin and destination pairs that is distance dependent.
Definition at line 82 of file tcdist.h.
typedef Id<TariffZone> OSB_LIB::TariffZone::Oid |
bool OSB_LIB::TariffZone::insert | ( | const OSB_DB::Session & | session | ) | [private] |
Insert a tariff zone into database.
A new object is inserted. All attribute of the object has been set except object id. The object id will only be set by the function if the insertion is successful.
session | Database session to use. |
OsbException | for the following errors:
|
const Oid& OSB_LIB::TariffZone::oid | ( | ) | const [inline] |
bool OSB_LIB::TariffZone::read | ( | const OSB_DB::Session & | session | ) |
Read a tariff zone from database.
The object id is used to gather other info from database and then populate the object's data members.
session | Database session to use. |
bool OSB_LIB::TariffZone::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Remove a tariff zone from database.
After the function call, oid of this object will be unset to indicate that there is no such entry anymore in the database.
session | Database session to use. |
OsbException | for the following errors:
|
bool OSB_LIB::TariffZone::update | ( | const OSB_DB::Session & | session | ) | [private] |
Update a tariff zone in the database.
Old entry in the database identify by the object id will be replaced with the new data from this object.
session | Database session to use. |
OsbException | for the following errors:
|
friend struct OSB_DB::TariffZoneGw [friend] |
friend class TariffCatalogue [friend] |
Oid OSB_LIB::TariffZone::oid_ [private] |