OSB_DB::TcFilterGw Struct Reference

List of all members.

Detailed Description

This will perform all the database operation for TcFilter.

Definition at line 764 of file filter-gw.h.

Public Member Functions

Private Member Functions

Friends


Member Function Documentation

bool OSB_DB::TcFilterGw::fetch ( const Session session,
OSB_LIB::TcFilter tcfc 
)

This will read the tariff class filter condition object from the table FILTER_TC.

This function accept an empty tariff class filter condition object with only its filter condition object id. It will populate all other attributes from the tariff class filter condition table.

Parameters:
session Database session to use.
tcfc Tariff class filter condition object to be populated.
Exceptions:
Exception if object not found.
Returns:
True if the tariff class filter condition object read successfully else false.

bool OSB_DB::TcFilterGw::insTcCond ( const Session session,
OSB_LIB::TcFilter tcfc 
) [private]

Insert the tariff class filter condition object into table FILTER_TC.

This will insert the new tariff class filter condition object into the table FILTER_TC. It contains the filter condition id, target tariff class id and the operator type(== or !=).

Parameters:
session Database session to use.
tcfc Tariff class filter condition object to use.
Exceptions:
Exception for the folloing errors:
  • Foreign key violation
Returns:
True if the tariff class filter condition object inserted successfully else false.

bool OSB_DB::TcFilterGw::removeTcCond ( const Session session,
OSB_LIB::TcFilter tcfc 
) [private]

Remove the tariff class filter condition object from the table FILTER_TC.

This will remove the tariff class filter condition object from the FILTER_TC table. The filter condition id is used to identify the tariff class filter condition object to remove from the database.

Parameters:
session Database session to use.
tcfc Tariff class filter condition object to remove.
Exceptions:
For the following errors:
  • Object not found,
  • Foreign key constraint
Returns:
True if the tariff class filter condition object removed successfully else false.

bool OSB_DB::TcFilterGw::updTcCond ( const Session session,
OSB_LIB::TcFilter tcfc 
) [private]

Update the tariff class filter condition object in the table FILTER_TC.

This will update the tariff class filter condition object with the available values in the FILTER_TC table. The filter condition id is used to identify the filter condition object for updation.

Parameters:
session Database session to use.
tcfc Tariff class filter condition object to use.
Exceptions:
Exception if object not found.
Returns:
True if the tariff class filter condition object updated successfully else false.


Friends And Related Function Documentation

friend class OSB_LIB::TcFilter [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 771 of file filter-gw.h.


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