OSB_DB::ChargeTraitsGw Class Reference

List of all members.

Detailed Description

Database-gateway class for ChargeTraits.

Definition at line 56 of file chargetraits-gw.h.

Public Member Functions

Private Member Functions


Constructor & Destructor Documentation

OSB_DB::ChargeTraitsGw::ChargeTraitsGw ( const ChargeTraitsGw rhs  )  [private]

Prevent copying: Copy constructor not implemented.

OSB_DB::ChargeTraitsGw::ChargeTraitsGw (  )  [inline]

Constructor.

Definition at line 64 of file chargetraits-gw.h.


Member Function Documentation

bool OSB_DB::ChargeTraitsGw::delChargeTraits ( const Session session,
const OSB_LIB::ChargeTraits ct 
)

Remove a charge traits from the database.

Parameters:
session Database session to use.
ct Ref to chargetraits.
Returns:
True if the charge traits was removed from the database.

long OSB_DB::ChargeTraitsGw::fetch ( const Session session,
OSB_LIB::ChargeTraitsList::List pCtList 
)

Read the list of charge traits from the database.

Parameters:
session Database session to use.
pCtList Pointer to the list of charge traits.
Exceptions:
OsbException if the charge type in the database is not valid.
Returns:
Number of objects fetched.

bool OSB_DB::ChargeTraitsGw::insert ( const Session session,
OSB_LIB::ChargeTraits ct 
)

Insert a charge traits to the database.

The function creates an entry in CHARGE_TRAITS. It sets the new object id of `ct'.

Parameters:
session Database session to use.
ct Ref to chargetraits.
Exceptions:
OsbException if the charge type of ct is unknown.
Returns:
True if the charge traits was inserted into the database.

ChargeTraitsGw& OSB_DB::ChargeTraitsGw::operator= ( const ChargeTraitsGw rhs  )  [private]

Prevent assignment: Assignment not implemented.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:08:53 2006 for OSB Library by  doxygen 1.4.7