OSB_DB::UsagerecordGw Struct Reference

List of all members.

Detailed Description

Usage record database gateway.

Controls the access to the OSB database table USAGE_RECORD.

Definition at line 60 of file usagerecord-gw.h.

Public Member Functions


Member Function Documentation

long OSB_DB::UsagerecordGw::fetch ( const Session session,
OSB_LIB::UrContainer usageRecords,
short  size,
const OSB_LIB::Contract::Oid contractId,
const OSB_LIB::Date from,
const OSB_LIB::Date upto 
)

Load usage records for a contract and a given time period from the database into the supplied container.

Parameters:
session Database session.
usageRecords Pointer to the usage record container.
size Database host array size.
contractId Contract identifier.
from Load all records starting from this date.
upto Load all records up to (excluding) this date.
Returns:
Number of records loaded.

void OSB_DB::UsagerecordGw::insUsagerecord ( const Session session,
const OSB_LIB::UrContainer urs 
)

Insert all the usage records which are stored in the UrContainer, into the DB.

Parameters:
session Database session.
urs usage records container.
Exceptions:
OsbException 
Remarks:
If there is a unique constraint violation while inserting the usage record, the CallId is incremented by one and then the usage record is inseted into the DB. This process is continued until the record is inserted successfully. An exception is thrown in case of any other errors that may occur while inserting the usage record in the DB.


The documentation for this struct was generated from the following file:
Generated on Sat Sep 2 14:08:52 2006 for OSB Library by  doxygen 1.4.7