Definition at line 339 of file ratingfn-gw.h.
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.
session | Database session. | |
rf | Slot rating function to be populated. |
OsbException | for the following errors:
|
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.
session | Database session. | |
rf | New discount rental rating function to be added. |
OsbException | for the following errors:
|
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.
session | Database session. | |
rf | Rating function to be deleted. |
OsbException | for the following errors:
|
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.
session | Database session. | |
rf | Slot rating function to be updated, which contains the new set of data within. |
OsbException | for the following errors:
|
friend class OSB_LIB::RfSlot [friend] |
Rating function needs to call the private member functions.
Definition at line 343 of file ratingfn-gw.h.