Definition at line 453 of file tariffperiod-gw.h.
OSB_LIB::ObjectStatus OSB_DB::TariffPeriodGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::TariffPeriod & | tp | |||
) | [private] |
Check the current object version.
session | Database session. | |
tp | Object where the object version is to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::TariffPeriodGw::delTariffPeriod | ( | const Session & | session, | |
OSB_LIB::TariffPeriod & | tp | |||
) | [private] |
Delete a tariff period.
session | Database session. | |
tp | Tariff period to be deleted. |
OsbException | for the following errors:
|
bool OSB_DB::TariffPeriodGw::fetch | ( | const Session & | session, | |
OSB_LIB::TariffPeriod & | tp | |||
) |
Read a tariff period from database.
This function populates a tariff period based on its oid.
session | Database session. | |
tp | Tariff period to be populated. |
OsbException | for any database errors. |
long OSB_DB::TariffPeriodGw::fetch | ( | const Session & | session, | |
OSB_LIB::TariffPeriods & | tps | |||
) |
Retrieve all tariff periods.
This function retrieves all tariff periods from database.
session | Database session. | |
tps | A container to store all object retrieved. |
OsbException | for any database errors. |
bool OSB_DB::TariffPeriodGw::insTariffPeriod | ( | const Session & | session, | |
OSB_LIB::TariffPeriod & | tp | |||
) | [private] |
Create a new tariff period.
session | Database session. | |
tp | New tariff period object. |
OsbException | for the following errors:
|
bool OSB_DB::TariffPeriodGw::updTariffPeriod | ( | const Session & | session, | |
OSB_LIB::TariffPeriod & | tp | |||
) | [private] |
Update a tariff period.
This funtion will update the tariff period entry in the database with the one passed in.
session | Database session. | |
tp | Updated tariff period object. |
OsbException | for the following errors:
|
friend class OSB_LIB::TariffPeriod [friend] |
Tariff period needs to call the private member functions.
Definition at line 455 of file tariffperiod-gw.h.