Definition at line 58 of file tariffperiod-gw.h.
OSB_LIB::ObjectStatus OSB_DB::DayClassGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::DayClass & | dc | |||
) | [private] |
Check the current object version.
session | Database session. | |
dc | Object where the object version is to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::DayClassGw::delDayClass | ( | const Session & | session, | |
OSB_LIB::DayClass & | dc | |||
) | [private] |
Delete a day class.
This function will delete the day class from database. After a successful deletion, the passed in day class object will have its object id unset.
session | Database session. | |
dc | Day class to be deleted. |
OsbException | for the following errors:
|
bool OSB_DB::DayClassGw::fetch | ( | const Session & | session, | |
OSB_LIB::DayClass & | dc | |||
) |
Read a day class from database.
This function will use the object id of the day class object to be populated to retrieve all other info from database and later populate them into the passed in object.
session | Database session. | |
dc | Day class to be populated. |
OsbException | for any database errors. |
long OSB_DB::DayClassGw::fetch | ( | const Session & | session, | |
OSB_LIB::DayClasses & | dcs | |||
) |
Retrieve all day classes from database.
session | Database session. | |
dcs | Container to store the data retrieved. |
OsbException | for any database errors. |
OSB_LIB::CfgStatus OSB_DB::DayClassGw::getStatus | ( | const Session & | session, | |
const OSB_LIB::DayClass::Oid & | oid | |||
) | [private] |
Get the status of a day class in database.
session | Database session. | |
oid | Object id of the day class to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::DayClassGw::hasFreezedSpecialDate | ( | const Session & | session, | |
const OSB_LIB::DayClass::Oid & | oid | |||
) | [private] |
Check whether any freezed special date refered it.
This function will check whether is there exists any special date in status freezed, that is refering this day class.
session | Database session. | |
oid | Object id of the day class to be checked. |
OsbException | for any database errors. |
bool OSB_DB::DayClassGw::hasReleasedSpecialDate | ( | const Session & | session, | |
const OSB_LIB::DayClass::Oid & | oid | |||
) | [private] |
Check whether any released special date refered it.
This function will check whether is there exists any special date in status released, that is refering this day class.
session | Database session. | |
oid | Object id of the day class to be checked. |
OsbException | for any database errors. |
bool OSB_DB::DayClassGw::insDayClass | ( | const Session & | session, | |
OSB_LIB::DayClass & | dc | |||
) | [private] |
Create a new day class.
This function accept a new day class object and insert the data into the database. After a successful insertion, the day class object will have its object id set.
session | Database session. | |
dc | Day class object. |
OsbException | for the following errors:
|
bool OSB_DB::DayClassGw::isUsedByFreezedTpVersion | ( | const Session & | session, | |
const OSB_LIB::DayClass::Oid & | oid | |||
) | [private] |
Check whether any freezed tariff period version is using this day class.
session | Database session. | |
oid | Object id of the day class to be checked. |
OsbException | for any database errors. |
bool OSB_DB::DayClassGw::isUsedByReleasedTpVersion | ( | const Session & | session, | |
const OSB_LIB::DayClass::Oid & | oid | |||
) | [private] |
Check whether any released tariff period version is using this day class.
session | Database session. | |
oid | Object id of the day class to be checked. |
OsbException | for any database errors. |
bool OSB_DB::DayClassGw::updDayClass | ( | const Session & | session, | |
OSB_LIB::DayClass & | dc | |||
) | [private] |
Modify the day class definitions.
This function will update the day class entry in the database with the new passed in day class object.
session | Database session. | |
dc | New day class object. |
OsbException | for the following errors:
|
void OSB_DB::DayClassGw::updStatus | ( | const Session & | session, | |
OSB_LIB::DayClass & | dc | |||
) | [private] |
Change the status of a day class.
session | Database session. | |
dc | Day class to update, its new status must be already set. |
friend class OSB_LIB::DayClass [friend] |
Day class needs to call the private member functions.
Definition at line 60 of file tariffperiod-gw.h.