OSB_DB::SumCdrGw Class Reference

List of all members.

Detailed Description

Database gateway for the class SumCdr.

This object will handle all database transaction between SumCdr and its related table SUM_CDR.

Definition at line 62 of file sumcdr-gw.h.

Public Member Functions

Charge details helper functions
To work with records in SUM_CDR_VOLUME and SUM_CDR_AMOUNT.

Private Member Functions

Miscellaneous helper functions

Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
session Database session to use.
sumCdrId Sumcdr id.
Returns:
The next SUM_CDR_VOLUME.SEQ number.

long OSB_DB::SumCdrGw::nextSumCdrId ( const Session session  ) 

Get the next sumcdr id.

Parameters:
session Database session.
Returns:
The next sumcdr Id.

void OSB_DB::SumCdrGw::updChargeDetails ( const Session session,
const OSB_LIB::SumCdr sumCdr 
)

Update all charge details of a sumcdr, insert missing records.

Parameters:
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.

Parameters:
session Database session to use.
sumCdrId Sumcdr id.
seq Sequence number (SUM_CDR_VOLUME.SEQ).
money Amount to update.
ctId Charge traits id.
Returns:
true if the update succeeded, false if the record is missing.

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.

Parameters:
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.

Parameters:
session Database session to use.
sumCdrId Sumcdr id.
cDetail Charge detail to update.
Returns:
SEQ of the updated record, 0 if record is missing.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:09:03 2006 for OSB Library by  doxygen 1.4.7