OSB_DB::PersServiceGw Struct Reference

List of all members.

Detailed Description

Database interface for PersService.

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

Public Member Functions


Member Function Documentation

bool OSB_DB::PersServiceGw::delPersService ( const Session s,
const OSB_LIB::PersService ps 
)

Delete a pers service from database.

This function will take the oid of the input object as a reference to the to-be-deleted object in the database.

Parameters:
s Database session to use.
ps Pers. service to be deleted.
Returns:
true if deletion is successful else false.

bool OSB_DB::PersServiceGw::fetch ( const Session s,
OSB_LIB::PersService ps 
)

Populate a pers service object with data.

Pers service (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.
ps Pers. service to be populated.
Returns:
true if object is successfully populated else false

bool OSB_DB::PersServiceGw::insPersService ( const Session s,
const OSB_LIB::PersService ps 
)

Add a new pers service into database.

The function will insert the input object into database. In case of an error, exception is thrown.

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

bool OSB_DB::PersServiceGw::updPersService ( const Session s,
const OSB_LIB::PersService ps 
)

Update a pers service in database.

This function will modify an existing pers service in the database with the input object. Oid of the input object will be unset.

Parameters:
s Database session to use.
ps 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