Controls the access to the OSB database table USAGE_RECORD.
Definition at line 60 of file usagerecord-gw.h.
| 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.
| 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. |
| 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.
| session | Database session. | |
| urs | usage records container. |
| OsbException |
1.4.7