Definition at line 270 of file tariffperiod-gw.h.
OSB_LIB::ObjectStatus OSB_DB::SpecialDateGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::SpecialDate & | sd | |||
) | [private] |
Check the current object version.
session | Database session. | |
sd | Object where the object version is to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::SpecialDateGw::dateInFuture | ( | const Session & | session, | |
const OSB_LIB::SpecialDate & | sd | |||
) | [private] |
Ensure the special date configured is in the future.
session | Database session. | |
sd | Special date to check. |
OsbException | for any database errors. |
bool OSB_DB::SpecialDateGw::dayClassFreezed | ( | const Session & | session, | |
const OSB_LIB::SpecialDate & | sd | |||
) | [private] |
Ensure the day class for this special date is freezed.
session | Database session. | |
sd | Special date to check. |
OsbException | for any database errors. |
bool OSB_DB::SpecialDateGw::dayClassReleased | ( | const Session & | session, | |
const OSB_LIB::SpecialDate & | sd | |||
) | [private] |
Ensure the day class for this special date is released.
session | Database session. | |
sd | Special date to check. |
OsbException | for any database errors. |
bool OSB_DB::SpecialDateGw::delSpecialDate | ( | const Session & | session, | |
OSB_LIB::SpecialDate & | sd | |||
) | [private] |
Delete a special date.
session | Database session. | |
sd | Special date to be deleted. |
OsbException | for the following errors:
|
bool OSB_DB::SpecialDateGw::fetch | ( | const Session & | session, | |
OSB_LIB::SpecialDate & | sd | |||
) |
Read a special date from database..
This function populate a special date object based on the object id it carries.
session | Database session. | |
sd | The special date object to be populated. be stored. |
OsbException | for database errors. |
long OSB_DB::SpecialDateGw::fetch | ( | const Session & | session, | |
OSB_LIB::SpecialDates & | sds | |||
) |
Retrieve all special dates.
This function retrieves all special dates from database.
session | Database session. | |
sds | The container where the retrieve data will be stored. |
OsbException | for database errors. |
OSB_LIB::CfgStatus OSB_DB::SpecialDateGw::getStatus | ( | const Session & | session, | |
const OSB_LIB::SpecialDate::Oid & | sdId | |||
) | [private] |
Get the status of a special date in database.
session | Database session. | |
sdId | Object id of the special date. |
OsbException | for the following errors:
|
bool OSB_DB::SpecialDateGw::insSpecialDate | ( | const Session & | session, | |
OSB_LIB::SpecialDate & | sd | |||
) | [private] |
Create a new special date.
session | Database session. | |
sd | Special date object. |
OsbException | for any database errors. |
bool OSB_DB::SpecialDateGw::updSpecialDate | ( | const Session & | session, | |
OSB_LIB::SpecialDate & | sd | |||
) | [private] |
Update an existing special date.
This function will match the given date from the object with the previous defined ones, if yes, it will changed the original values with new one, but the date will not be changed, and it also need to check whether the new DayClassId will bring conflict with that define in Day_Class; if not, error message will also be thown.
session | Database session. | |
sd | Special date object. |
void OSB_DB::SpecialDateGw::updStatus | ( | const Session & | session, | |
OSB_LIB::SpecialDate & | sd | |||
) | [private] |
Change the status of a special date.
session | Database session. | |
sd | Special date to update, its new status must be already set. |
friend class OSB_LIB::SpecialDate [friend] |
Special date needs to call the private member functions.
Definition at line 272 of file tariffperiod-gw.h.