PricelistGw is the database gateway to the tables related to price lists: PRICELIST, PRICELIST_VERSION, ....
Only read operations are supported.
Definition at line 73 of file pricelist-gw.h.
| OSB_DB::PricelistGw::PricelistGw | ( | ) | [inline] |
| bool OSB_DB::PricelistGw::checkName | ( | const Session & | session, | |
| const OSB_LIB::PricelistCfg & | plc | |||
| ) | [private] |
Check if the name of pricelist version already exist.
| session | Database session to use. | |
| plc | Reference to pricelist version. |
| bool OSB_DB::PricelistGw::checkName | ( | const Session & | session, | |
| const OSB_LIB::Pricelist & | pl | |||
| ) | [private] |
Check if the name of pricelist already exist.
| session | Database session to use. | |
| pl | Reference to pricelist. |
| OSB_LIB::ObjectStatus OSB_DB::PricelistGw::checkObjVs | ( | const Session & | session, | |
| const OSB_LIB::PricelistCfg & | plc | |||
| ) |
Check that the object versions of a pricelist version in the object itself and the database are consistent.
| session | Session to use. | |
| plc | Price list version object to be checked. |
| OSB_LIB::ObjectStatus OSB_DB::PricelistGw::checkObjVs | ( | const Session & | session, | |
| const OSB_LIB::Pricelist & | pl | |||
| ) |
Check that the object versions of a pricelist in the object itself and the database are consistent.
| session | Session to use. | |
| pl | Price list object to be checked. |
| void OSB_DB::PricelistGw::delOtcDef | ( | const Session & | session, | |
| const OSB_LIB::PricelistCfg & | plc | |||
| ) | [private] |
Delete all onetime charge definition of a pricelist configuration.
| session | Session to use. | |
| plc | Reference to one time charge definition. |
| bool OSB_DB::PricelistGw::delOtcDef | ( | const Session & | session, | |
| const OSB_LIB::OnetimeChargeDef::Oid & | otcId | |||
| ) |
Delete a onetime charge definition.
| session | Session to use. | |
| otcId | Unique id of one time charge definition. |
| bool OSB_DB::PricelistGw::delPricelist | ( | const Session & | session, | |
| const OSB_LIB::Pricelist::Oid & | plId | |||
| ) |
Delete a price list description.
| session | Session to use. | |
| plId | Unique id of price list to delete. |
| bool OSB_DB::PricelistGw::delPricelistCfg | ( | const Session & | session, | |
| const OSB_LIB::PricelistCfg & | plc | |||
| ) |
Delete a pricelist version.
| session | Session to use. | |
| plc | Reference to price list configuration to delete. |
| bool OSB_DB::PricelistGw::fetchOtcDef | ( | const Session & | session, | |
| OSB_LIB::OnetimeChargeDef & | otc | |||
| ) |
Read an onetime charge definition.
| session | Session to use. | |
| otc | Onetime charge definition to populate. |
| bool OSB_DB::PricelistGw::fetchPricelist | ( | const Session & | session, | |
| OSB_LIB::Pricelist & | pl | |||
| ) |
Read a price list description.
| session | Session to use. | |
| pl | Price list to populate. |
| long OSB_DB::PricelistGw::fetchPricelistCfg | ( | const Session & | session, | |
| OSB_LIB::PricelistCfg & | plc | |||
| ) |
Read a pricelist version.
| session | Session to use. | |
| plc | Price list configuration to populate. |
| long OSB_DB::PricelistGw::fetchPricelistCfgs | ( | const Session & | session, | |
| OSB_LIB::PricelistCfgs * | plcs | |||
| ) |
read all pricelist versions.
| session | Session to use. | |
| plcs | Container to populate. |
| long OSB_DB::PricelistGw::fetchPricelists | ( | const Session & | session, | |
| OSB_LIB::Pricelists * | pls | |||
| ) |
read all price list descriptions.
| session | Session to use. | |
| pls | Container to populate. |
| long OSB_DB::PricelistGw::fetchSubsChargeDefs | ( | const Session & | session, | |
| OSB_LIB::SubsFuncCfg * | sfc | |||
| ) |
read subs. charge definition of a subscription function.
| session | Session to use. | |
| sfc | Subs. function to read for and to store result. |
| long OSB_DB::PricelistGw::fetchSubsFuncCfgs | ( | const Session & | session, | |
| OSB_LIB::SubsFuncCfgs * | sfc | |||
| ) |
read subscription function configurations.
| session | Session to use. | |
| sfc | list to populate. |
| OSB_LIB::CfgStatus OSB_DB::PricelistGw::getStatus | ( | const Session & | session, | |
| const OSB_LIB::PricelistCfg::Oid & | plcId | |||
| ) |
Get the status of a pricelist version.
| session | Session to use. | |
| plcId | Unique id pricelist version. |
| bool OSB_DB::PricelistGw::insOtcDef | ( | const Session & | session, | |
| OSB_LIB::OnetimeChargeDef & | otc | |||
| ) |
Insert a onetime charge definition.
| session | Session to use. | |
| otc | Onetime charge definition to insert. |
| bool OSB_DB::PricelistGw::insPricelist | ( | const Session & | session, | |
| OSB_LIB::Pricelist & | pl | |||
| ) |
Insert a new price list description.
| session | Session to use. | |
| pl | Price list to insert. |
| long OSB_DB::PricelistGw::insPricelistCfg | ( | const Session & | session, | |
| OSB_LIB::PricelistCfg & | plc | |||
| ) |
Insert a pricelist version.
| session | Session to use. | |
| plc | Price list configuration to insert. |
| void OSB_DB::PricelistGw::insPricelistOtc | ( | const Session & | session, | |
| const OSB_LIB::PricelistCfg & | plc | |||
| ) | [private] |
Insert configuration of PricelistCfg into PRICELIST_OTC table.
| session | Database session to use. | |
| plc | Reference to pricelist version. |
| bool OSB_DB::PricelistGw::setStatus | ( | const Session & | session, | |
| const OSB_LIB::PricelistCfg & | plc, | |||
| const OSB_LIB::CfgStatus & | status | |||
| ) |
Set the status of a pricelist version.
| session | Session to use. | |
| plc | Reference of Pricelist version. | |
| status | New status to changed to. |
| bool OSB_DB::PricelistGw::updPricelist | ( | const Session & | session, | |
| const OSB_LIB::Pricelist & | pl | |||
| ) |
Update a new price list description.
| session | Session to use. | |
| pl | Price list to update. |
| bool OSB_DB::PricelistGw::updPricelistCfg | ( | const Session & | session, | |
| const OSB_LIB::PricelistCfg & | plc | |||
| ) |
Update a pricelist version.
| session | Session to use. | |
| plc | Price list configuration to update. |
1.4.7