Definition at line 129 of file serviceitem-gw.h.
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.
s | Database session to use. | |
ps | Pers. service to be deleted. |
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.
s | Database session to use. | |
ps | Pers. service to be populated. |
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.
s | Database session to use. | |
ps | New pers. service to be added. |
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.
s | Database session to use. | |
ps | New object to be updated into database. |