This class gives the date definiton in detail, and also supports functions related to online implementations.
Definition at line 284 of file tariffperiod.h.
typedef Id<DayClass> OSB_LIB::SpecialDate::DcId [private] |
typedef Id<SpecialDate> OSB_LIB::SpecialDate::Oid |
Constructor with optional object id.
const bool& OSB_LIB::SpecialDate::annual | ( | ) | const [inline] |
bool OSB_LIB::SpecialDate::check | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [private] |
Set the status from editable to standby.
In order to set the status from editable to standby, the following criteria must be fulfilled:
session | Database session used. | |
errors | Container for error messages if any. |
OsbException | for any database errors. |
const Date& OSB_LIB::SpecialDate::date | ( | ) | const [inline] |
const DcId& OSB_LIB::SpecialDate::dcId | ( | ) | const [inline] |
bool OSB_LIB::SpecialDate::gracePeriodExpired | ( | ) | const |
Check if grace period has expired.
bool OSB_LIB::SpecialDate::insert | ( | const OSB_DB::Session & | session | ) | [private] |
Insert a special date into database.
session | Database session. |
OsbException | for the following errors:
|
const std::string& OSB_LIB::SpecialDate::name | ( | ) | const [inline] |
long OSB_LIB::SpecialDate::objVs | ( | ) | const [inline] |
const Oid& OSB_LIB::SpecialDate::oid | ( | ) | const [inline] |
bool OSB_LIB::SpecialDate::read | ( | const OSB_DB::Session & | session | ) |
Read a special date from database.
session | Database session. |
bool OSB_LIB::SpecialDate::release | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [private] |
Set the status from standby to release.
In order to set the status from standby to release, the following criteria must be fulfilled:
session | Database session used. | |
errors | Container for error messages if any. |
bool OSB_LIB::SpecialDate::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Remove a special date from database.
session | Database session. |
OsbException | for the following errors:
|
bool OSB_LIB::SpecialDate::revoke | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [private] |
Set the status from release to standby.
In order to set the status from release to standby, the following criteria must be fulfilled:
session | Database session used. | |
errors | Container for error messages if any. |
void OSB_LIB::SpecialDate::setAnnual | ( | const bool | newAnnual | ) |
Set whether a given special date is yearly or not.
newAnnual | A flag to assign whether it is yearly or not. |
void OSB_LIB::SpecialDate::setDate | ( | const Date & | newDate | ) |
Set a new special date.
newDate | A new special date. |
void OSB_LIB::SpecialDate::setDcId | ( | const DcId & | dcId | ) |
Set a day class id for a special date.
dcId | A day class id. |
void OSB_LIB::SpecialDate::setName | ( | const std::string & | name | ) |
Set a new name.
name | New name for the special date. |
OsbException | if:
|
const CfgStatus& OSB_LIB::SpecialDate::status | ( | ) | const [inline] |
bool OSB_LIB::SpecialDate::unfreeze | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [private] |
Set the status from standby to editable.
In order to set the status from standby to editable, the following criteria must be fulfilled:
session | Database session used. | |
errors | Container for error messages if any. |
bool OSB_LIB::SpecialDate::update | ( | const OSB_DB::Session & | session | ) | [private] |
Update a special date in the database.
session | Database session used. |
OsbException | for the following erros:
|
friend struct OSB_DB::SpecialDateGw [friend] |
friend class TariffCatalogue [friend] |
Let the class TariffCatalogue can save, change and delete the private members, and access the functions.
Definition at line 292 of file tariffperiod.h.
bool OSB_LIB::SpecialDate::annual_ [private] |
Flag whether the date is annual.
Definition at line 483 of file tariffperiod.h.
Referenced by annual().
Date OSB_LIB::SpecialDate::date_ [private] |
Unique identifier for SpecialDate.
Definition at line 482 of file tariffperiod.h.
Referenced by date().
DcId OSB_LIB::SpecialDate::dcId_ [private] |
std::string OSB_LIB::SpecialDate::name_ [private] |
long OSB_LIB::SpecialDate::objVs_ [private] |
Oid OSB_LIB::SpecialDate::oid_ [private] |
Unique object id, database link.
Definition at line 479 of file tariffperiod.h.
Referenced by oid().
CfgStatus OSB_LIB::SpecialDate::status_ [private] |