|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.bl.BaseMgr
com.konakart.bl.BillingMgr
public class BillingMgr
Manager for recurring billing
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log |
| Fields inherited from class com.konakart.bl.BaseMgr |
|---|
templateBaseDir |
| Constructor Summary | |
|---|---|
BillingMgr(KKEngIf eng)
Constructor |
|
| Method Summary | |
|---|---|
PaymentSchedule |
getPaymentSchedule(int id)
Returns the payment schedule object for the id parameter, or Null if the payment
schedule object doesn't exist in the DB. |
Subscription[] |
getSubscriptionsPerCustomer(java.lang.String sessionId)
Returns an array of Subscription objects for a customer referred to by the sessionId parameter. |
int |
insertSubscription(java.lang.String sessionId,
SubscriptionIf subscription)
A Subscription object is inserted into the database. |
int |
insertSubscription(SubscriptionIf subscription)
A Subscription object is inserted into the database. |
protected void |
setPaymentScheduleCriteriaWithStandardAttributes(KKCriteria c,
int customerId)
Set the attributes for reading a payment schedule object |
protected void |
setSubscriptionCriteriaWithStandardAttributes(KKCriteria c)
Common code to avoid duplication |
protected void |
validateSubscription(SubscriptionIf subscription)
Used to validate a subscription |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public BillingMgr(KKEngIf eng)
throws java.lang.Exception
eng -
java.lang.Exception| Method Detail |
|---|
public int insertSubscription(java.lang.String sessionId,
SubscriptionIf subscription)
throws java.lang.Exception
insertSubscription in interface BillingMgrIfsessionId - subscription -
java.lang.Exception
public int insertSubscription(SubscriptionIf subscription)
throws java.lang.Exception
insertSubscription in interface BillingMgrIfsubscription -
java.lang.Exception
protected void validateSubscription(SubscriptionIf subscription)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
subscription -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public PaymentSchedule getPaymentSchedule(int id)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
id parameter, or Null if the payment
schedule object doesn't exist in the DB.
getPaymentSchedule in interface BillingMgrIfid - The id of the payment schedule object
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected void setPaymentScheduleCriteriaWithStandardAttributes(KKCriteria c,
int customerId)
c - customerId -
public Subscription[] getSubscriptionsPerCustomer(java.lang.String sessionId)
throws java.lang.Exception
getSubscriptionsPerCustomer in interface BillingMgrIfsessionId -
java.lang.Exceptionprotected void setSubscriptionCriteriaWithStandardAttributes(KKCriteria c)
c -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||