OSB_DB::RfSlotGw Struct Reference

List of all members.

Detailed Description

Database interface for RfSlot.

Definition at line 339 of file ratingfn-gw.h.

Public Member Functions

Private Member Functions

Friends


Member Function Documentation

bool OSB_DB::RfSlotGw::fetch ( const Session session,
OSB_LIB::RfSlot rf 
)

Populate a slot rating function object with data.

This function accept an empty slot rating function with only its oid set. It will populate all other attributes of the object.

Parameters:
session Database session.
rf Slot rating function to be populated.
Returns:
true if the object is found, else false.
Exceptions:
OsbException for the following errors:
  • Database error.

bool OSB_DB::RfSlotGw::insert ( const Session session,
OSB_LIB::RfSlot rf 
) [private]

Add a new slot rating function.

Before the function call, the object must have all its member attributes assigned (including oid and object version). The object will get its oid_ and objVs_ after the base class insert function completed successfully. In case of an error, exception is thrown.

Parameters:
session Database session.
rf New discount rental rating function to be added.
Returns:
true if creation is successful else false.
Exceptions:
OsbException for the following errors:
  • Database error.

bool OSB_DB::RfSlotGw::remove ( const Session session,
OSB_LIB::RfSlot rf 
) [private]

Delete a slot rating function.

The rating function to be deleted must already exist in the database. After the function call, the object's id will not be unset. The base class delete function will unset the oid if completed successfully.

Parameters:
session Database session.
rf Rating function to be deleted.
Returns:
true if deletion is successful else false.
Exceptions:
OsbException for the following errors:
  • Database error.

bool OSB_DB::RfSlotGw::update ( const Session session,
OSB_LIB::RfSlot rf 
) [private]

Update a slot rating function.

The function will modify the data of an object in the database with the data contained within the input rating function object.

Parameters:
session Database session.
rf Slot rating function to be updated, which contains the new set of data within.
Returns:
true if updated successfully else false.
Exceptions:
OsbException for the following errors:
  • Database error.


Friends And Related Function Documentation

friend class OSB_LIB::RfSlot [friend]

Rating function needs to call the private member functions.

Definition at line 343 of file ratingfn-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