OSB_DB::TsItemGw Class Reference

List of all members.

Detailed Description

Database-gateway class for tariff systems.

Definition at line 60 of file tsitem-gw.h.

Public Member Functions

Database operations on tariff system item
Database operations on pers tariff system item

Private Member Functions


Constructor & Destructor Documentation

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

Prevent copying: Copy constructor not implemented.

OSB_DB::TsItemGw::TsItemGw (  )  [inline]

Constructor.

Definition at line 69 of file tsitem-gw.h.


Member Function Documentation

bool OSB_DB::TsItemGw::delTs ( const Session session,
const OSB_LIB::PersTariffSystem persTs 
)

Delete a tariff system item.

Parameters:
session Database session to use.
persTs Pers. tariff system to delete.
Returns:
True if success.

bool OSB_DB::TsItemGw::delTs ( const Session session,
const OSB_LIB::TariffSystemItem tsItem 
)

Delete a tariff system item.

Parameters:
session Database session to use.
tsItem Tariff system item to delete.
Exceptions:
OsbException in case of an OTL library exception.
Returns:
True if success.

bool OSB_DB::TsItemGw::fetchTs ( const Session session,
OSB_LIB::PersTariffSystem persTs 
)

Load a tariff system.

This function will load the tariff system based on a specific id which is in tariff system item.

Parameters:
session Database session to use.
persTs Personalized tariff system.
Returns:
True if populated.

bool OSB_DB::TsItemGw::fetchTs ( const Session session,
OSB_LIB::TariffSystemItem tsItem 
)

Load a tariff system.

Uses the product item id of a tariff system item to read the assigned TS and the default for personalization.

Parameters:
session Database session to use.
tsItem Tariff system item.
Exceptions:
OsbException in case of an OTL library exception.
Returns:
Always true.

bool OSB_DB::TsItemGw::insTs ( const Session session,
const OSB_LIB::PersTariffSystem persTs 
)

Insert a new tariff system item.

Parameters:
session Database session to use.
persTs Reference to the pers. tariff system item to be inserted.
Returns:
True if success.

bool OSB_DB::TsItemGw::insTs ( const Session session,
const OSB_LIB::TariffSystemItem tsItem 
)

Insert a new tariff system item.

Parameters:
session Database session to use.
tsItem Reference of tsItem to be inserted.
Exceptions:
OsbException in case of an OTL library exception.
Returns:
True if success.

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

Prevent assignment: Assignment not implemented.

bool OSB_DB::TsItemGw::updTs ( const Session session,
const OSB_LIB::PersTariffSystem persTs 
)

Update the given tariff system item.

Parameters:
session Database session to use.
persTs Pers. tariff system item to update.
Exceptions:
OsbException(196) if id mismatch.
Returns:
True if success.

bool OSB_DB::TsItemGw::updTs ( const Session session,
const OSB_LIB::TariffSystemItem tsItem 
)

Update the given tariff system item.

Parameters:
session Database session to use.
tsItem Reference of tsItem to be updated.
Exceptions:
OsbException in case of an OTL library exception.
Returns:
True if success.


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