Definition at line 72 of file tsitem.h.
typedef std::auto_ptr<PersTariffSystem> OSB_LIB::PersTariffSystem::AutoPtr |
Short-cut for an auto pointer.
For details see quality manual, implementation patterns: Virtual copy construction.
Reimplemented from OSB_LIB::PersProductItem.
Default constructor with optional object id.
oid | Object id of PersProductItem. This is not the the tariff system id! |
OSB_LIB::PersTariffSystem::PersTariffSystem | ( | const TsId & | tsid | ) | [inline, explicit] |
bool OSB_LIB::PersTariffSystem::canConfig | ( | ) | const [virtual] |
AutoPtr OSB_LIB::PersTariffSystem::clone | ( | ) | const |
Virtual copy construction.
For details see quality manual, implementation patterns.
Reimplemented from OSB_LIB::PersProductItem.
PersProductItem* OSB_LIB::PersTariffSystem::clone_ | ( | ) | const [private, virtual] |
Internal virtual copy constructor.
For details see quality manual, implementation patterns.
Implements OSB_LIB::PersProductItem.
bool OSB_LIB::PersTariffSystem::delSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Delete a pers tariff system item from the database.
The function uses a OSB_DB::TsItemGw to remove data link from pers item to tariff system that is to remove a pers tariff system item.
session | Database session to use. |
OsbException |
|
Implements OSB_LIB::PersProductItem.
bool OSB_LIB::PersTariffSystem::insSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Insert a pers tariff system item to the database.
The function uses a OSB_DB::TsItemGw to insert data link from pers item to tariff system in the database that is to create a pers tariff system item.
session | Database session to use. |
OsbException |
|
Implements OSB_LIB::PersProductItem.
std::string OSB_LIB::PersTariffSystem::personalization | ( | ) | const [virtual] |
bool OSB_LIB::PersTariffSystem::readSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Read a pers tariff system item from the database.
The function uses a OSB_DB::TsItemGw to read the data members from the database.
session | Database session to use. |
OsbException |
|
Implements OSB_LIB::PersProductItem.
void OSB_LIB::PersTariffSystem::setTsId | ( | const TsId & | tsid | ) | [inline] |
Set tariff system id to the PersTariffSystem. Do not save to database.
tsid | Tariff system id (as in TARIFF_SYSTEM). |
Definition at line 118 of file tsitem.h.
References tsId_.
const TsId& OSB_LIB::PersTariffSystem::tsId | ( | ) | const [inline] |
Type OSB_LIB::PersTariffSystem::type | ( | ) | const [inline, virtual] |
The type of the product item.
The function returns the type of the product item. It is needed for only one reason: Corba clients must provide a configuration window that depends on the actual type.
No appropriate design can be provided: Unless on-line clients use the real product item type through-out the whole live cycle of an object, there must be a way to determine the actual type of a product item. No matter how clever we make our design, for on-line clients there will always be one step where they need to determine a product item's type in a switch-like statement. For this step I personally perfer to work with an enumeration type (and compiler warnings) rather than relying on dynamic casts (where errors can be detected only during run-time).
Implements OSB_LIB::ProductItemBase.
Definition at line 128 of file tsitem.h.
References type_.
bool OSB_LIB::PersTariffSystem::updSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Update a pers tariff system item in the database.
The function uses a OSB_DB::TsItemGw to update data member in the database.
session | Database session to use. |
OsbException |
|
Implements OSB_LIB::PersProductItem.
friend class OSB_DB::TsItemGw [friend] |
friend class TariffSystemItem [friend] |
TsId OSB_LIB::PersTariffSystem::tsId_ [private] |
const Type OSB_LIB::PersTariffSystem::type_ [static] |
The product item type id: PiType::piTariffSystem.
Definition at line 86 of file tsitem.h.
Referenced by type().