Definition at line 497 of file filter-gw.h.
OSB_LIB::ObjectStatus OSB_DB::FilterCondGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::FilterCond & | fv | |||
) | [private] |
Check the current object version.
session | Database session. | |
fv | Filter condition to be checked. |
Exception | if object not found. |
long OSB_DB::FilterCondGw::fetch | ( | const Session & | session, | |
OSB_LIB::FilterConds & | fcs | |||
) |
Get the list of all available filter conditions.
This function retrieves all the FilterCond from the database.
session | Database session to use. | |
fcs | Cointainer to populate the filter condition objects. |
bool OSB_DB::FilterCondGw::fetch | ( | const Session & | session, | |
OSB_LIB::FilterCond & | fc | |||
) |
This will read the filter condition object from the table FILTER_COND.
This function accept an empty filter condition object with only its Oid. It will populate all other attributes from the filter condition table.
session | Database session to use. | |
fc | Filter condition object to be populated. |
Exception | if object not found. |
OSB_LIB::CfgStatus OSB_DB::FilterCondGw::getStatus | ( | const Session & | session, | |
const OSB_LIB::FilterCond::Oid & | oid | |||
) | [private] |
Get the status of filter condition in database.
session | Database session. | |
oid | Id of the filter condition to be checked. |
Exception | if object not found. |
bool OSB_DB::FilterCondGw::insFc | ( | const Session & | session, | |
OSB_LIB::FilterCond & | fc | |||
) | [private] |
Insert the filter condition object into database.
This will insert the new filter condition object into the table FILTER_COND. The unique object id will be assigned to this object after insertion.
session | Database session to use. | |
fc | Filter condition object to use. |
Exception | for the folloing errors:
|
bool OSB_DB::FilterCondGw::isReleasedInFuture | ( | const Session & | session, | |
const OSB_LIB::FilterCond::Oid & | oid | |||
) | [private] |
Ensure the release date is in future.
This function checks whether the filter condition has its release date in the future.
session | Database Session to use. | |
oid | Unique id of the filter condition. |
Exception | if object not found. |
bool OSB_DB::FilterCondGw::removeFc | ( | const Session & | session, | |
OSB_LIB::FilterCond & | fc | |||
) | [private] |
Remove the filter condition object from database.
This will remove the filter condition object from the FILTER_COND table. The object id is used to identify the filter condition object to remove from the database.
session | Database session to use. | |
fc | Filter condition object to remove. |
For | the following errors:
|
void OSB_DB::FilterCondGw::setStatus | ( | const Session & | session, | |
const OSB_LIB::FilterCond::Oid & | oid, | |||
const OSB_LIB::CfgStatus & | status | |||
) | [private] |
Change the status of filter condition.
This function will change the status for the given filter condition with the given status.
session | Database session. | |
oid | Object identifier for the filter condition. | |
status | Status to be changed. |
Exception | if object not found. |
bool OSB_DB::FilterCondGw::updFc | ( | const Session & | session, | |
OSB_LIB::FilterCond & | fc | |||
) | [private] |
Update the filter condition object in the database.
This will update the filter condition object with the available values in the FILTER_COND table. The object id is used to identify the filter condition object for updation.
session | Database session to use. | |
fc | Filter condition object to use. |
Exception | if object not found. |
friend class OSB_LIB::FilterCond [friend] |
This class is using this gateway to achieve all the database operations. To call all the private members it is made as friend.
Definition at line 504 of file filter-gw.h.