Definition at line 57 of file timezone-gw.h.
long OSB_DB::TimeZoneGw::fetch | ( | const Session & | session, | |
OSB_LIB::TimeZones & | tzs | |||
) |
Read all the timezone objects from the database.
This will read all the timezone objects from the database and insert it into the container of timezone.
session | Database session to use. | |
tzs | Container to populate all the timezone objects. |
Exception | on general database errors. |
bool OSB_DB::TimeZoneGw::fetch | ( | const Session & | session, | |
OSB_LIB::TimeZone & | tz | |||
) |
It will fetch the timezone object from the database.
Before calling this function the object id of the timezone object should be set. It will fetch the timezone object from the database using the object identifier.
session | Database session to use. | |
tz | Timezone object to be fetched. |
Exception | for the following
|
bool OSB_DB::TimeZoneGw::insTimeZone | ( | const Session & | session, | |
OSB_LIB::TimeZone & | tz | |||
) | [private] |
Insert the timezone object into the database.
This will insert the timezone object into the database. Once the insertion is successful the object identifier will be assigned to the object.
session | Database session to use. | |
tz | Timezone object to insert. |
Exception | on general database errors. |
bool OSB_DB::TimeZoneGw::removeTimeZone | ( | const Session & | session, | |
OSB_LIB::TimeZone & | tz | |||
) | [private] |
Remove the timezone object from the database.
This will remove the timezone object from the database. Befor calling this function the object identifier should be set to identify the object.
session | Database session to use. | |
tz | Timezone object to remove. |
Exception | for the following
|
friend class OSB_LIB::TimeZone [friend] |
For all database operations TimeZone will call the private functions.
Definition at line 62 of file timezone-gw.h.