|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wireless.billing.BillingManager
Billing manager provides the helper funtinalities to create and lookup service detail records
Constructor Summary | |
BillingManager() |
Method Summary | |
ServiceDetailRecord |
createServiceDetailRecord(java.lang.String id, java.lang.String userName, java.lang.String serviceName, java.sql.Timestamp accessTime, java.lang.String componentName) Creates the Service Detail Record Object with the given service detail values A passed sdr id is used for this transaction. |
ServiceDetailRecord |
createServiceDetailRecord(java.lang.String userName, java.lang.String serviceName, java.sql.Timestamp accessTime, java.lang.String componentName) Creates the Service Detail Record Object with the given service detail values A unique sdr id is generated for this transaction. |
void |
deleteSDR(ServiceDetailRecord sdr) |
void |
deleteSDRS(java.sql.Timestamp ts) Delete the SDRs which access timestamp before the specifiec timestamp |
static BillingManager |
getInstance() |
ServiceDetailRecord |
getServiceDetailRecord(java.lang.String userName, java.lang.String serviceName, java.sql.Timestamp accessTime, java.lang.String id, java.lang.String externalBillingReferenceid, java.lang.String componentName) Creates the Service Detail Record Object with the given service detail values This is used at lookup time or billing time when the reference id was already generated and available at the time of authorization. |
ServiceDetailRecord[] |
getServiceDetailRecords(java.lang.String userInfo) Returns the service detail records for the user |
ServiceDetailRecord[] |
getServiceDetailRecordsAccessedBefore(java.sql.Timestamp accessTime) Returns the service detail records for actions with "access time" before the specified time stamp |
ServiceDetailRecord[] |
getServiceDetailRecordsByExtendedAttribute(java.lang.String attributeName, java.lang.String attributeValue) Returns the service detail records for a given extended attribute name and value |
ServiceDetailRecord[] |
getServiceDetailRecordsByServiceComponent(java.lang.String serviceName, java.lang.String componentName) Returns the service detail records for the service and component |
ServiceDetailRecord[] |
getServiceDetailRecordsByUserComponent(java.lang.String userInfo, java.lang.String componentName) Returns the service detail records for the user and component |
ServiceDetailRecord[] |
getServiceDetailRecordsForBillingReferenceId(java.lang.String billingRefId) Returns the service detail records for the billing reference id |
ServiceDetailRecord[] |
getServiceDetailRecordsForComponent(java.lang.String componentName) Returns the service detail records for the component |
ServiceDetailRecord[] |
getServiceDetailRecordsForService(java.lang.String serviceName) Returns the service detail records for the service |
java.util.ArrayList |
getServiceDetailRecordsForTransaction(java.lang.String transactionId) Returns the service detail records for the transaction id |
void |
insertSDR(ServiceDetailRecord sdr) |
void |
updateSDR(ServiceDetailRecord sdr) Deletes the SDR with the id and inserts the new one |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BillingManager()
Method Detail |
public ServiceDetailRecord createServiceDetailRecord(java.lang.String id, java.lang.String userName, java.lang.String serviceName, java.sql.Timestamp accessTime, java.lang.String componentName) throws BillingException
id
- the service detail record iduserName
- The name of phonenumber of the user of this billed serviceserviceName
- The billed serviceaccessTime
- The service access time. if null, current timestamp is used.componentName
- the component nameBillingException
- when mandatory attributes (userName, service or component name) are nullpublic ServiceDetailRecord createServiceDetailRecord(java.lang.String userName, java.lang.String serviceName, java.sql.Timestamp accessTime, java.lang.String componentName) throws BillingException
userName
- The name of phonenumber of the user of this billed serviceserviceName
- The billed serviceaccessTime
- The service access time. if null, current timestamp is used.componentName
- the component nameBillingException
- when mandatory attributes (userName, service or component name) are nullpublic void deleteSDR(ServiceDetailRecord sdr) throws PanamaException
PanamaException
public void deleteSDRS(java.sql.Timestamp ts) throws PanamaException
ts
- timestamp before which the SDRs need to be purgedPanamaException
- when delete operation failedpublic static BillingManager getInstance()
public ServiceDetailRecord getServiceDetailRecord(java.lang.String userName, java.lang.String serviceName, java.sql.Timestamp accessTime, java.lang.String id, java.lang.String externalBillingReferenceid, java.lang.String componentName) throws BillingException
userName
- The name or phone number of the user of this billed serviceserviceName
- The billed serviceaccessTime
- The service access time. if null, current timestamp is used.id
- wireless internal billing reference id or service detail record idexternalBillingReferenceid
- external billing reference idBillingException
- thrown when mandatory parameters are null user == null || service == null || accessTime == null || billingReferenceId == null || componentName == nullpublic ServiceDetailRecord[] getServiceDetailRecords(java.lang.String userInfo) throws PanamaException
userInfo
- the user's name of phone numberPanamaException
public ServiceDetailRecord[] getServiceDetailRecordsAccessedBefore(java.sql.Timestamp accessTime) throws PanamaException
accessTime
- the cut-off accessTime before which the SDRs are returnedPanamaException
public ServiceDetailRecord[] getServiceDetailRecordsByExtendedAttribute(java.lang.String attributeName, java.lang.String attributeValue) throws PanamaException
attributeName
- the extended attribute nameattributeValue
- the extende attribute valuePanamaException
public ServiceDetailRecord[] getServiceDetailRecordsByServiceComponent(java.lang.String serviceName, java.lang.String componentName) throws PanamaException
serviceName
- the service namecomponentName
- the component namePanamaException
public ServiceDetailRecord[] getServiceDetailRecordsByUserComponent(java.lang.String userInfo, java.lang.String componentName) throws PanamaException
userInfo
- the user's name of phone numbercomponentName
- the component name. One of the predefined list of components or '%' or '*'PanamaException
public ServiceDetailRecord[] getServiceDetailRecordsForBillingReferenceId(java.lang.String billingRefId) throws PanamaException
billingRefId
- the billingRefIdPanamaException
public ServiceDetailRecord[] getServiceDetailRecordsForComponent(java.lang.String componentName) throws PanamaException
componentName
- the service namePanamaException
public ServiceDetailRecord[] getServiceDetailRecordsForService(java.lang.String serviceName) throws PanamaException
serviceName
- the service namePanamaException
public java.util.ArrayList getServiceDetailRecordsForTransaction(java.lang.String transactionId) throws PanamaException
transactionId
- the transactionIdPanamaException
public void insertSDR(ServiceDetailRecord sdr) throws PanamaException
PanamaException
public void updateSDR(ServiceDetailRecord sdr) throws PanamaException
sdr
- the service detail recordPanamaException
- thrown if sdr is invalid or some operational error
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |