|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminBillingMgr
public class AdminBillingMgr
The AdminBillingMgr - for Managing recurring billing
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
AdminBaseMgr.StaticData |
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
the log |
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir |
Constructor Summary | |
---|---|
AdminBillingMgr(KKAdminIf eng)
Constructor |
Method Summary | |
---|---|
protected void |
addPaymentScheduleOrderBy(com.konakart.bl.KKCriteria c,
AdminPaymentScheduleSearch search)
Add order by constraints for payment schedules |
protected int |
addPaymentScheduleSearchCriteria(com.konakart.bl.KKCriteria c,
AdminPaymentScheduleSearch search)
Add search criteria for payment schedule objects |
protected void |
addSubscriptionOrderBy(com.konakart.bl.KKCriteria c,
AdminSubscriptionSearch search)
Add order by constraints for subscriptions |
protected void |
addSubscriptionSearchCriteria(com.konakart.bl.KKCriteria c,
AdminSubscriptionSearch search)
Add search criteria for subscription objects |
int |
deletePaymentSchedule(int id)
Delete a Payment Schedule Object |
int |
deleteSubscription(int id)
Delete a Subscription Object |
AdminPaymentSchedule |
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. |
protected int |
getPaymentScheduleCount(AdminPaymentScheduleSearch search)
Returns a count of the number of PaymentSchedules |
AdminPaymentScheduleSearchResult |
getPaymentSchedules(AdminPaymentScheduleSearch search,
int offset,
int size)
This returns an AdminPaymentScheduleSearchResult object. |
AdminSubscription |
getSubscription(int id)
Returns the subscription object for the id parameter, or Null if the
subscription object doesn't exist in the DB. |
protected int |
getSubscriptionCount(AdminSubscriptionSearch search)
Returns a count of the number of Subscriptions |
AdminSubscriptionSearchResult |
getSubscriptions(AdminSubscriptionSearch search,
int offset,
int size)
This returns an AdminSubscriptionSearchResult object. |
int |
insertPaymentSchedule(AdminPaymentSchedule ps)
An AdminPaymentSchedule object is inserted into the database. |
int |
insertSubscription(AdminSubscription subscription)
An AdminSubscription object is inserted into the database. |
protected void |
setPaymentScheduleCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c,
int customerId)
Common code to avoid duplication |
protected void |
setSubscriptionCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
Common code to avoid duplication |
int |
updatePaymentSchedule(AdminPaymentSchedule ps)
Update an AdminPaymentSchedule object. |
int |
updateSubscription(AdminSubscription subscription)
Update an AdminSubscription object. |
protected void |
validatePaymentSchedule(AdminPaymentSchedule ps)
Common code used for inserting and for editing |
protected void |
validateSubscription(AdminSubscription subscription)
Common code used for inserting and for editing |
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 AdminBillingMgr(KKAdminIf eng) throws java.lang.Exception
eng
-
java.lang.Exception
Method Detail |
---|
public int deletePaymentSchedule(int id) throws KKAdminException, org.apache.torque.TorqueException
deletePaymentSchedule
in interface AdminBillingMgrIf
id
- The id of the payment schedule object to delete
KKAdminException
org.apache.torque.TorqueException
public int deleteSubscription(int id) throws KKAdminException, org.apache.torque.TorqueException
deleteSubscription
in interface AdminBillingMgrIf
id
- The id of the subscription object to delete
KKAdminException
org.apache.torque.TorqueException
public AdminPaymentSchedule getPaymentSchedule(int id) throws KKAdminException, 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 AdminBillingMgrIf
id
- The id of the payment schedule object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public AdminSubscription getSubscription(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the
subscription object doesn't exist in the DB.
getSubscription
in interface AdminBillingMgrIf
id
- The id of the subscription object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected int getPaymentScheduleCount(AdminPaymentScheduleSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
protected int getSubscriptionCount(AdminSubscriptionSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public AdminPaymentScheduleSearchResult getPaymentSchedules(AdminPaymentScheduleSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getPaymentSchedules
in interface AdminBillingMgrIf
search
- The object containing the search constraintsoffset
- the offset in the dbsize
- the number of records from the specified offset
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
public AdminSubscriptionSearchResult getSubscriptions(AdminSubscriptionSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getSubscriptions
in interface AdminBillingMgrIf
search
- The object containing the search constraintsoffset
- the offset in the dbsize
- the number of records from the specified offset
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
public int insertPaymentSchedule(AdminPaymentSchedule ps) throws KKAdminException, org.apache.torque.TorqueException
insertPaymentSchedule
in interface AdminBillingMgrIf
ps
-
KKAdminException
org.apache.torque.TorqueException
public int insertSubscription(AdminSubscription subscription) throws KKAdminException, org.apache.torque.TorqueException
insertSubscription
in interface AdminBillingMgrIf
subscription
-
KKAdminException
org.apache.torque.TorqueException
public int updatePaymentSchedule(AdminPaymentSchedule ps) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
updatePaymentSchedule
in interface AdminBillingMgrIf
ps
- An AdminPaymentSchedule object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public int updateSubscription(AdminSubscription subscription) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
updateSubscription
in interface AdminBillingMgrIf
subscription
- An AdminSubscription object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected void validatePaymentSchedule(AdminPaymentSchedule ps) throws KKAdminException
ps
-
KKAdminException
protected void validateSubscription(AdminSubscription subscription) throws KKAdminException, org.apache.torque.TorqueException
subscription
-
KKAdminException
org.apache.torque.TorqueException
protected void setPaymentScheduleCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c, int customerId)
c
- customerId
- protected void setSubscriptionCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
c
- protected int addPaymentScheduleSearchCriteria(com.konakart.bl.KKCriteria c, AdminPaymentScheduleSearch search)
c
- search
-
protected void addSubscriptionSearchCriteria(com.konakart.bl.KKCriteria c, AdminSubscriptionSearch search)
c
- search
- protected void addPaymentScheduleOrderBy(com.konakart.bl.KKCriteria c, AdminPaymentScheduleSearch search)
c
- search
- protected void addSubscriptionOrderBy(com.konakart.bl.KKCriteria c, AdminSubscriptionSearch search)
c
- search
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |