OSB_DB::ServiceItemGw Struct Reference

List of all members.

Detailed Description

Database interface for ServiceItem.

Definition at line 70 of file serviceitem-gw.h.

Public Member Functions


Member Function Documentation

bool OSB_DB::ServiceItemGw::delServiceItem ( const Session s,
const OSB_LIB::ServiceItem si 
)

Delete a service item from database.

This function will remove the database entry based on the input object's oid. Oid of the input object will be unset.

Parameters:
s Database session to use.
si Service item to be deleted.
Returns:
true if deletion is successful else false.

bool OSB_DB::ServiceItemGw::fetch ( const Session s,
OSB_LIB::ServiceItem si 
)

Populate a ServiceItem object with data.

ServiceItem (with its oid set) object is passed into this function. After the function call, the object will be initialize with data in the database.

Parameters:
s Database session to use.
si Service item to be populated.
Returns:
true if object is successfully populated else false

bool OSB_DB::ServiceItemGw::insServiceItem ( const Session s,
const OSB_LIB::ServiceItem si 
)

Add a new service item into database.

In case of an error, exception is thrown.

Parameters:
s Database session to use.
si New service item to be added.
Returns:
true if the creation is successful else false.

bool OSB_DB::ServiceItemGw::updServiceItem ( const Session s,
const OSB_LIB::ServiceItem si 
)

Update a service item in database.

This function will modify an existing service item in the database with the input object.

Parameters:
s Database session to use.
si New object to be updated into database.
Returns:
true if updated successfully else false.


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