Definition at line 170 of file filter-gw.h.
OSB_LIB::ObjectStatus OSB_DB::FilterVersionGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::FilterVersion & | fv | |||
) | [private] |
Check the current object version.
session | Database session. | |
fv | FilterVersion to be checked. |
Exception | if object not found. |
long OSB_DB::FilterVersionGw::fetch | ( | const Session & | session, | |
OSB_LIB::FilterVersions & | fvs | |||
) |
Get the list of all available filter versions.
This function retrieves all the filter version objects from the database.
session | Database session to use. | |
fvs | Container to populate all the filter version objects. |
bool OSB_DB::FilterVersionGw::fetch | ( | const Session & | session, | |
OSB_LIB::FilterVersion & | fv | |||
) |
Read the filter version object from database.
This will read the filter version object from the filter version table. The filter id is used to identify the object in the database. Before reading the filter version object the object id should be set.
session | Database session to use. | |
fv | Filter version object to use. |
Exception | if object not found. |
OSB_LIB::CfgStatus OSB_DB::FilterVersionGw::getStatus | ( | const Session & | session, | |
const OSB_LIB::FilterVersion::Oid & | oid | |||
) | [private] |
Get the status of filter version in database.
session | Database session. | |
oid | Id of the filter version to be checked. |
Exception | if object not found. |
bool OSB_DB::FilterVersionGw::insFv | ( | const Session & | session, | |
OSB_LIB::FilterVersion & | fv | |||
) | [private] |
Insert the filter version object into the database.
This will insert the filter version object into the filter version table.
session | Database session to use. | |
fv | Filter version object to be inserted. |
Exception | for the following errors:
|
bool OSB_DB::FilterVersionGw::isReleasedInFuture | ( | const Session & | session, | |
const OSB_LIB::FilterVersion::Oid & | oid | |||
) | [private] |
Ensure the release date is in future.
This function checks whether the filter version has its release date in the future.
session | Database Session to use. | |
oid | Unique id of the filter version to be checked. |
Exception | if object not found. |
bool OSB_DB::FilterVersionGw::removeFv | ( | const Session & | session, | |
OSB_LIB::FilterVersion & | fv | |||
) | [private] |
Remove the filter version object from database.
This will remove the filter version object from the filter version table. Object id and object version are used to identify the filter version object for deletion.
session | Database session to use. | |
fv | Filter version object to be deleted. |
Exception | for the following error:
|
void OSB_DB::FilterVersionGw::setStatus | ( | const Session & | session, | |
const OSB_LIB::FilterVersion::Oid & | oid, | |||
const OSB_LIB::CfgStatus & | status | |||
) | [private] |
Change the status of filter version.
This function will change the status for the given filter version with the given status.
session | Database session. | |
oid | Object identifier for the filter version. | |
status | Status to be changed. |
Exception | if object not found. |
bool OSB_DB::FilterVersionGw::updFv | ( | const Session & | session, | |
OSB_LIB::FilterVersion & | fv | |||
) | [private] |
Update the filter version object in database.
This will update the filter version object into the filter version table with the current values. Object id and object version are used to identify the filter version object for updation.
session | Database session to use. | |
fv | Filter version object to be updated. |
Exception | for the following error:
|
friend class OSB_LIB::FilterVersion [friend] |
Definition at line 172 of file filter-gw.h.