Definition at line 57 of file filter-gw.h.
OSB_LIB::ObjectStatus OSB_DB::FilterGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::Filter & | filt | |||
) | [private] |
Check the current object version.
session | Database session. | |
filt | FilterVersion to be checked. |
Exception | if object not found. |
long OSB_DB::FilterGw::fetch | ( | const Session & | session, | |
OSB_LIB::Filters & | filts | |||
) |
Get the list of all available filters.
This function retrieves all the filters from the table filter.
session | Database session to use. | |
filts | Container to populate all the filter Objects. |
bool OSB_DB::FilterGw::fetch | ( | const Session & | session, | |
OSB_LIB::Filter & | filt | |||
) |
This will read the filter object from the table filter.
This function accept an empty filter object with only its Oid. It will populate all other attributes from the filter table.
session | Database session to use. | |
filt | Filter object to be populated. |
Exception | for the following errors:
|
bool OSB_DB::FilterGw::insFc | ( | const Session & | session, | |
OSB_LIB::Filter & | filt | |||
) | [private] |
Insert the filter into database.
This will insert the new filter into the table filter. The object should contain the name and the description before insertion. The unique object id and the object version will be assigned to this object after insertion.
session | Database session to use. | |
filt | Filter object to use. |
Exception | for the folloing errors:
|
bool OSB_DB::FilterGw::removeFc | ( | const Session & | session, | |
OSB_LIB::Filter & | filt | |||
) | [private] |
Remove the filter from database.
This will remove the filter object from the filter table. The object id is used to identify the filter object to remove from the database.
session | Database session to use. | |
filt | Filter object to remove. |
For | the following errors:
|
bool OSB_DB::FilterGw::updFc | ( | const Session & | session, | |
OSB_LIB::Filter & | filt | |||
) | [private] |
Update the filter in database.
This will update the filter with the available values in the filter table. The object id and object version are used to identify the filter object for updation.
session | Database session to use. | |
filt | Filter object to use. |
Exception | for the following errors:
|
friend class OSB_LIB::Filter [friend] |
For all database operations filter will call this private functions.
Definition at line 63 of file filter-gw.h.