OSB_DB::ServiceElementGw Struct Reference

List of all members.

Detailed Description

Database interface ServiceElement.

Definition at line 55 of file service-gw.h.

Public Member Functions


Member Function Documentation

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.

Parameters:
s Database session to use.
se Service element to be deleted from database.
Returns:
true if deletion is successful else false.

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.

Parameters:
s Database session to use.
ses STL-container that stores all the returned object.
Returns:
Number of service element available.

bool OSB_DB::ServiceElementGw::fetch ( const Session s,
OSB_LIB::ServiceElement se 
)

Populate a service element object with data.

Parameters:
s Database session to use.
se Service element to read.
Returns:
true if the object is found, else false.
This function accept an empty service element with only its oid set. It will populate all other attribute of the object.

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.

Parameters:
s Database session to use.
se New service element to be inserted into database.
Returns:
true if creation is successful else false.

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.

Parameters:
s Database session to use.
se Service element to be updated.
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