This object will handle all database transaction between SumCdr and its related table SUM_CDR.
Definition at line 62 of file sumcdr-gw.h.
void OSB_DB::SumCdrGw::delChargeDetails | ( | const Session & | session, | |
const OSB_LIB::Id< OSB_LIB::BsPage > & | pageId | |||
) |
Delete all charge details of the summary CDRs of a balance page.
session | Database session. | |
pageId | Id of balance page. |
void OSB_DB::SumCdrGw::delMoneyInfoList | ( | const Session & | session, | |
const OSB_LIB::Id< OSB_LIB::BsPage > & | pageId | |||
) | [private] |
Delete all SUM_CDR_AMOUNT records of the summary CDRs of a balance page.
session | Database session to use. | |
pageId | Id of balance page. |
void OSB_DB::SumCdrGw::delVolume | ( | const Session & | session, | |
const OSB_LIB::Id< OSB_LIB::BsPage > & | pageId | |||
) | [private] |
Delete all SUM_CDR_VOLUME records of the summary CDRs of a balance page.
session | Database session to use. | |
pageId | Id of balance page. |
void OSB_DB::SumCdrGw::getChargeDetails | ( | const Session & | session, | |
OSB_LIB::SumCdr & | sumCdr | |||
) |
Read all charge details of a sumcdr.
Uses the object id of the given sumcdr to find the database records.
session | Database session. | |
sumCdr | Sumcdr record to read. |
void OSB_DB::SumCdrGw::getMoneyInfo | ( | const Session & | session, | |
OSB_LIB::MoneyInfoList & | mInfoList, | |||
const OSB_LIB::SumCdr::Oid & | sumCdrId, | |||
long | seq | |||
) | [private] |
Read one SUM_CDR_AMOUNT record.
session | Database session to use. | |
mInfoList | Money info list to add the records to. | |
sumCdrId | Sumcdr id. | |
seq | Sequence number (SUM_CDR_VOLUME.SEQ). |
void OSB_DB::SumCdrGw::insChargeDetails | ( | const Session & | session, | |
const OSB_LIB::SumCdr & | sumCdr | |||
) |
Insert all charge details of a sumcdr.
session | Database session. | |
sumCdr | Sumcdr record to insert. |
void OSB_DB::SumCdrGw::insMoney | ( | const Session & | session, | |
const OSB_LIB::SumCdr::Oid & | sumCdrId, | |||
long | seq, | |||
const OSB_LIB::Money & | money, | |||
const OSB_LIB::ChargeTraits::Oid & | ctId | |||
) | [private] |
Insert one SUM_CDR_AMOUNT record.
session | Database session to use. | |
sumCdrId | Sumcdr id. | |
seq | Sequence number (SUM_CDR_VOLUME.SEQ). | |
money | Amount to insert. | |
ctId | Charge traits id. |
void OSB_DB::SumCdrGw::insMoneyInfoList | ( | const Session & | session, | |
const OSB_LIB::SumCdr::Oid & | sumCdrId, | |||
long | seq, | |||
const OSB_LIB::MoneyInfoList & | mInfoList | |||
) | [private] |
Insert a list of SUM_CDR_AMOUNT records.
session | Database session to use. | |
sumCdrId | Sumcdr id. | |
seq | Sequence number (SUM_CDR_VOLUME.SEQ). | |
mInfoList | Money info list to insert. |
void OSB_DB::SumCdrGw::insVolume | ( | const Session & | session, | |
const OSB_LIB::SumCdr::Oid & | sumCdrId, | |||
long | seq, | |||
const OSB_LIB::ChargeDetail & | cDetail | |||
) | [private] |
Insert one SUM_CDR_VOLUME record.
session | Database session to use. | |
sumCdrId | Sumcdr id. | |
seq | Sequence number (SUM_CDR_VOLUME.SEQ). | |
cDetail | Charge detail to insert. |
long OSB_DB::SumCdrGw::nextSeq | ( | const Session & | session, | |
const OSB_LIB::SumCdr::Oid & | sumCdrId | |||
) | [private] |
Get the next SUM_CDR_VOLUME.SEQ number for a sumcdr. Does not do any locking.
session | Database session to use. | |
sumCdrId | Sumcdr id. |
Get the next sumcdr id.
session | Database session. |
void OSB_DB::SumCdrGw::updChargeDetails | ( | const Session & | session, | |
const OSB_LIB::SumCdr & | sumCdr | |||
) |
Update all charge details of a sumcdr, insert missing records.
session | Database session. | |
sumCdr | Sumcdr record to update. |
bool OSB_DB::SumCdrGw::updMoney | ( | const Session & | session, | |
const OSB_LIB::SumCdr::Oid & | sumCdrId, | |||
long | seq, | |||
const OSB_LIB::Money & | money, | |||
const OSB_LIB::ChargeTraits::Oid & | ctId | |||
) | [private] |
Updated one existing SUM_CDR_AMOUNT record.
session | Database session to use. | |
sumCdrId | Sumcdr id. | |
seq | Sequence number (SUM_CDR_VOLUME.SEQ). | |
money | Amount to update. | |
ctId | Charge traits id. |
void OSB_DB::SumCdrGw::updMoneyInfoList | ( | const Session & | session, | |
const OSB_LIB::SumCdr::Oid & | sumCdrId, | |||
long | seq, | |||
const OSB_LIB::MoneyInfoList & | mInfoList | |||
) | [private] |
Update all SUM_CDR_AMOUNT records of the list, insert missing records.
session | Database session to use. | |
sumCdrId | Sumcdr id. | |
seq | Sequence number (SUM_CDR_VOLUME.SEQ). | |
mInfoList | Money info list to update. |
long OSB_DB::SumCdrGw::updVolume | ( | const Session & | session, | |
const OSB_LIB::SumCdr::Oid & | sumCdrId, | |||
const OSB_LIB::ChargeDetail & | cDetail | |||
) | [private] |
Update one existing SUM_CDR_VOLUME record.
session | Database session to use. | |
sumCdrId | Sumcdr id. | |
cDetail | Charge detail to update. |