Definition at line 55 of file service-gw.h.
bool OSB_DB::ServiceElementGw::delServiceElement | ( | const Session & | s, | |
OSB_LIB::ServiceElement * | se | |||
) |
Delete a service element from SERVICE_ELEMENT table.
The service element to be deleted must already exist in the database table. The object is not deleted automaticaly. Application will have to delete the object itself. After the function call, the object's id will be unset.
s | Database session to use. | |
se | Service element to be deleted from database. |
long OSB_DB::ServiceElementGw::fetch | ( | const Session & | s, | |
OSB_LIB::ServiceElements & | ses | |||
) |
Populate a service elements object with data.
This function retrieve all the available service elements from the database.
s | Database session to use. | |
ses | STL-container that stores all the returned object. |
bool OSB_DB::ServiceElementGw::fetch | ( | const Session & | s, | |
OSB_LIB::ServiceElement * | se | |||
) |
Populate a service element object with data.
s | Database session to use. | |
se | Service element to read. |
bool OSB_DB::ServiceElementGw::insServiceElement | ( | const Session & | s, | |
OSB_LIB::ServiceElement * | se | |||
) |
Add a new service element into SERVICE_ELEMENT table.
Before the function call, the object must have all its member attributes assigned (except oid). After the function call, the object will get its oid_. In case of an error, exception is thrown.
s | Database session to use. | |
se | New service element to be inserted into database. |
bool OSB_DB::ServiceElementGw::updServiceElement | ( | const Session & | s, | |
const OSB_LIB::ServiceElement * | se | |||
) |
Update a service element in SERVICE_ELEMENT table.
The service element to be modified must already exist in the database table.
s | Database session to use. | |
se | Service element to be updated. |