Definition at line 58 of file serviceclass-gw.h.
OSB_LIB::ObjectStatus OSB_DB::ServiceClassGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::ServiceClass & | sc | |||
) | [private] |
Check the current object version.
session | Database session to use. | |
sc | Service class for which to check the object version. |
bool OSB_DB::ServiceClassGw::delServiceClass | ( | const Session & | session, | |
OSB_LIB::ServiceClass & | sc | |||
) | [private] |
Delete a service class.
The service class to delete must already exist in the database table. Besides that, the object version of the service class to delete must match the object version in the database. This is to ensure that the object to delete represent the entry in the database. After the function call, the object's id will be unset but the object itself is not deleted automaticaly. Application will have to delete the object itself.
session | Database session to use. | |
sc | Service class to delete from database. |
OsbException | for the following errors:
|
long OSB_DB::ServiceClassGw::fetch | ( | const Session & | session, | |
OSB_LIB::ServiceClasses & | scs | |||
) |
Get a list of all available service class.
This function retrieve all the available service classes from the database.
session | Database session to use. | |
scs | STL container to store all fetched objects. |
bool OSB_DB::ServiceClassGw::fetch | ( | const Session & | session, | |
OSB_LIB::ServiceClass & | sc | |||
) |
Populate a service class object with data.
This function accept an empty service class with only its oid set. It will populate all other attribute of the object.
session | Database session to use. | |
sc | Service class to populate. |
bool OSB_DB::ServiceClassGw::insServiceClass | ( | const Session & | session, | |
OSB_LIB::ServiceClass & | sc | |||
) | [private] |
Add a new service class.
Before the function call, the object must have all its member attributes assigned (except oid and object version). After the function call, the object will get its oid_ and objVs_. In case of an error, exception is thrown.
session | Database session to use. | |
sc | Service class to be add. |
OsbException | for the following errors:
|
bool OSB_DB::ServiceClassGw::updServiceClass | ( | const Session & | session, | |
OSB_LIB::ServiceClass & | sc | |||
) | [private] |
Update a service class.
The function will modify the data of an object in the database with the data contained within the input object. The object entry in the database will only be updated if the input object represent the current entry in the database (the object version is the same).
session | Database session to use. | |
sc | Service class to update. |
OsbException | for the following errors:
|
friend class OSB_LIB::ServiceClass [friend] |
Service class needs to call the private member functions.
Definition at line 60 of file serviceclass-gw.h.