Restrictions:
Definition at line 445 of file pricelist.h.
typedef Id2<PricelistCfg> OSB_LIB::PricelistCfg::Oid |
typedef std::list<OnetimeChargeDef> OSB_LIB::PricelistCfg::OnetimeChargeDefs |
OSB_LIB::PricelistCfg::PricelistCfg | ( | const Oid & | , | |
const std::string & | name = "" | |||
) | [explicit] |
Copy constructor and assignment by compiler.
OSB_LIB::PricelistCfg::~PricelistCfg | ( | ) | [inline] |
Definition at line 463 of file pricelist.h.
int OSB_LIB::PricelistCfg::addEventCharge | ( | EventCharges::EventId | eventId, | |
const OnetimeChargeDef::Oid & | chargeId | |||
) |
Add a link event - onetime charge.
bool OSB_LIB::PricelistCfg::addOnetimeChargeDef | ( | OSB_DB::Session & | session, | |
OnetimeChargeDef & | otc | |||
) |
Add a one-time charge.
bool OSB_LIB::PricelistCfg::check | ( | const OSB_DB::Session & | session | ) | [private] |
Change the status of a pricelist configuration into from edit to standby.
session | Database session. |
void OSB_LIB::PricelistCfg::checkObjVs | ( | const OSB_DB::Session & | session | ) | [private] |
Check that the object has the latest object version.
const EventCharges& OSB_LIB::PricelistCfg::eventCharges | ( | ) | const [inline] |
const OnetimeChargeDef* OSB_LIB::PricelistCfg::findOnetimeChargeDef | ( | const OnetimeChargeDef::Oid & | chargeId | ) | const |
Find a one-time charge.
const OnetimeChargeDefs& OSB_LIB::PricelistCfg::getOnetimeChargeDefs | ( | ) | const [inline] |
Give read access to list of onetime charges definitions.
Definition at line 505 of file pricelist.h.
References onetimeCharges_.
bool OSB_LIB::PricelistCfg::insert | ( | const OSB_DB::Session & | session | ) | [private] |
Insert a pricelist configuration into the database.
session | Database session. |
const std::string& OSB_LIB::PricelistCfg::name | ( | ) | const [inline] |
long OSB_LIB::PricelistCfg::objVs | ( | ) | const [inline] |
const Oid& OSB_LIB::PricelistCfg::oid | ( | ) | const [inline] |
Return unique id and version number of price list configuration.
Definition at line 470 of file pricelist.h.
References id_.
OnetimeChargeDefs& OSB_LIB::PricelistCfg::onetimeChargeDefs | ( | ) | [inline] |
Give write access to list of onetime charges definitions.
Definition at line 511 of file pricelist.h.
References onetimeCharges_.
const PricelistId OSB_LIB::PricelistCfg::pricelistId | ( | ) | const [inline] |
Return id of price list.
Definition at line 488 of file pricelist.h.
References OSB_LIB::Id2< I >::id1_, and id_.
bool OSB_LIB::PricelistCfg::read | ( | const OSB_DB::Session & | session | ) | [private] |
Read a pricelist configuration from the database.
session | Database session. |
bool OSB_LIB::PricelistCfg::release | ( | const OSB_DB::Session & | session | ) | [private] |
Change the status of a pricelist configuration into from standby to release.
session | Database session. |
const Date& OSB_LIB::PricelistCfg::releaseDate | ( | ) | const [inline] |
Return date when PricelistCfg was released.
Definition at line 485 of file pricelist.h.
References releaseDate_.
bool OSB_LIB::PricelistCfg::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Remove a pricelist configuration into the database.
session | Database session. |
int OSB_LIB::PricelistCfg::removeEventCharge | ( | EventCharges::EventId | eventId | ) |
Remove a event - onetime charge.
bool OSB_LIB::PricelistCfg::revoke | ( | const OSB_DB::Session & | session | ) | [private] |
Change the status of a pricelist configuration into from release to standby.
session | Database session. |
void OSB_LIB::PricelistCfg::setSubsFuncCfg | ( | const SubsFuncCfg::Oid | pCfg | ) | [inline] |
Price list construction + set pointer to subscription function configuration
Definition at line 520 of file pricelist.h.
References subsFuncCfgId_.
CfgStatus OSB_LIB::PricelistCfg::status | ( | ) | const [inline] |
const SubsFuncCfg::Oid OSB_LIB::PricelistCfg::subsFuncCfgId | ( | ) | const [inline] |
bool OSB_LIB::PricelistCfg::unfreeze | ( | const OSB_DB::Session & | session | ) | [private] |
Change the status of a pricelist configuration into from standby to edit.
session | Database session. |
bool OSB_LIB::PricelistCfg::update | ( | const OSB_DB::Session & | session | ) | [private] |
Update a pricelist configuration into the database.
session | Database session. |
friend class OSB_DB::PricelistGw [friend] |
friend class ProductCatalogue [friend] |
Allow product catalogue to access read and insert function.
Definition at line 447 of file pricelist.h.
Link events to one-time charges.
Definition at line 631 of file pricelist.h.
Referenced by eventCharges().
Oid OSB_LIB::PricelistCfg::id_ [private] |
Unique id: database link: Price list and version id.
Definition at line 620 of file pricelist.h.
Referenced by oid(), and pricelistId().
std::string OSB_LIB::PricelistCfg::name_ [private] |
long OSB_LIB::PricelistCfg::objVs_ [private] |
Master list of one-time charges.
Definition at line 629 of file pricelist.h.
Referenced by getOnetimeChargeDefs(), and onetimeChargeDefs().
Date OSB_LIB::PricelistCfg::releaseDate_ [private] |
Date when the PricelistCfg was last released.
Definition at line 627 of file pricelist.h.
Referenced by releaseDate().
CfgStatus OSB_LIB::PricelistCfg::status_ [private] |
Subscription function id.
Definition at line 624 of file pricelist.h.
Referenced by setSubsFuncCfg(), and subsFuncCfgId().