As a product item a credit is a mere generator of personalized credit.
Definition at line 286 of file credit.h.
typedef std::auto_ptr<CreditItem> OSB_LIB::CreditItem::AutoPtr |
Short-cut for an auto pointer.
For details see quality manual, implementation patterns: Virtual copy construction.
Reimplemented from OSB_LIB::ProductItem.
OSB_LIB::CreditItem::CreditItem | ( | const ProductItem::Oid & | oid | ) |
Constructor with object id.
OSB_LIB::CreditItem::CreditItem | ( | const ProductItem::Oid & | oid, | |
const std::string & | name, | |||
const std::string & | des, | |||
const Money & | money | |||
) |
Constructor with object id, name, des and initial value.
ProductItem::CfgType OSB_LIB::CreditItem::canConfigure | ( | ) | const [inline, virtual] |
The configuration type of credit item.
Implements OSB_LIB::ProductItem.
Definition at line 330 of file credit.h.
References OSB_LIB::ProductItem::cfgNone.
ProductItem::DefPersType OSB_LIB::CreditItem::canDefPers | ( | ) | const [inline, virtual] |
The default personalization type of credit item.
Implements OSB_LIB::ProductItem.
Definition at line 336 of file credit.h.
References OSB_LIB::ProductItem::defPersMandatory.
virtual CfgPersType OSB_LIB::CreditItem::canPersonalize | ( | ) | const [virtual] |
AutoPtr OSB_LIB::CreditItem::clone | ( | ) | const |
Virtual copy construction.
For details see quality manual, implementation patterns.
Reimplemented from OSB_LIB::ProductItem.
ProductItem* OSB_LIB::CreditItem::clone_ | ( | ) | const [private, virtual] |
Virtual copy construction.
For details see quality manual, implementation patterns.
Implements OSB_LIB::ProductItem.
std::auto_ptr<PersProductItem> OSB_LIB::CreditItem::crePersProductItem | ( | ) | const [virtual] |
Create a personalized credit.
Id of pers credit will be ID_NOT_SET, initial value will be setted to the credit of pers credit.
Implements OSB_LIB::ProductItem.
const PersProductItem* OSB_LIB::CreditItem::defPersItem | ( | ) | const [virtual] |
bool OSB_LIB::CreditItem::delSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Delete a credit item from the database.
session | Database session to use, transactions are not commited. |
Implements OSB_LIB::ProductItem.
const Money& OSB_LIB::CreditItem::initValue | ( | ) | const |
Access initial value of credit item.
bool OSB_LIB::CreditItem::insSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Insert a credit item to the database.
session | Database session to use, transactions are not commited. |
Implements OSB_LIB::ProductItem.
bool OSB_LIB::CreditItem::readSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Read a credit item from the database.
session | Database session to use, transactions are not commited. |
Implements OSB_LIB::ProductItem.
void OSB_LIB::CreditItem::setInitValue | ( | const Money & | money | ) |
Modify the initial value of credit item.
Type OSB_LIB::CreditItem::type | ( | ) | const [virtual] |
bool OSB_LIB::CreditItem::updSpecific | ( | const OSB_DB::Session & | session | ) | [private, virtual] |
Update a credit item in the database.
session | Database session to use, transactions are not commited. |
Implements OSB_LIB::ProductItem.
friend class OSB_DB::CreditItemGw [friend] |
const Type OSB_LIB::CreditItem::type_ [static] |