OSB_DB::TimeZoneGw Struct Reference

List of all members.

Detailed Description

This will perform all the database operations for the timezone.

Definition at line 57 of file timezone-gw.h.

Public Member Functions

Private Member Functions

Friends


Member Function Documentation

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.

Parameters:
session Database session to use.
tzs Container to populate all the timezone objects.
Exceptions:
Exception on general database errors.
Returns:
True if objects read successfully else false.

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.

Parameters:
session Database session to use.
tz Timezone object to be fetched.
Exceptions:
Exception for the following
  • General database error.
  • Object not found.
Returns:
True if object read successfully else false.

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.

Parameters:
session Database session to use.
tz Timezone object to insert.
Exceptions:
Exception on general database errors.
Returns:
True if object inserted successfully else false.

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.

Parameters:
session Database session to use.
tz Timezone object to remove.
Exceptions:
Exception for the following
  • Object not found.
  • General database errors.
Returns:
True if object removed successfully else false.


Friends And Related Function Documentation

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.


The documentation for this struct was generated from the following file:
Generated on Sat Sep 2 14:09:02 2006 for OSB Library by  doxygen 1.4.7