com.konakartadmin.blif
Interface AdminBillingMgrIf

All Known Implementing Classes:
AdminBillingMgr

public interface AdminBillingMgrIf

AdminCurrencyMgrIf


Method Summary
 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.
 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.
 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.
 int updatePaymentSchedule(AdminPaymentSchedule ps)
          Update an AdminPaymentSchedule object.
 int updateSubscription(AdminSubscription subscription)
          Update an AdminSubscription object.
 

Method Detail

deletePaymentSchedule

int deletePaymentSchedule(int id)
                          throws KKAdminException,
                                 org.apache.torque.TorqueException
Delete a Payment Schedule Object

Parameters:
id - The id of the payment schedule object to delete
Returns:
Returns the id of the deleted payment schedule object
Throws:
KKAdminException
org.apache.torque.TorqueException

getPaymentSchedule

AdminPaymentSchedule getPaymentSchedule(int id)
                                        throws KKAdminException,
                                               org.apache.torque.TorqueException,
                                               com.workingdogs.village.DataSetException
Returns the payment schedule object for the id parameter, or Null if the payment schedule object doesn't exist in the DB.

Parameters:
id - The id of the payment schedule object
Returns:
Returns a payment schedule object
Throws:
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException

getPaymentSchedules

AdminPaymentScheduleSearchResult getPaymentSchedules(AdminPaymentScheduleSearch search,
                                                     int offset,
                                                     int size)
                                                     throws org.apache.torque.TorqueException,
                                                            com.workingdogs.village.DataSetException,
                                                            KKAdminException
This returns an AdminPaymentScheduleSearchResult object.

Parameters:
search - The object containing the search constraints
offset - the offset in the db
size - the number of records from the specified offset
Returns:
Returns an AdminPaymentScheduleSearchResult object
Throws:
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException

insertPaymentSchedule

int insertPaymentSchedule(AdminPaymentSchedule ps)
                          throws KKAdminException,
                                 org.apache.torque.TorqueException
An AdminPaymentSchedule object is inserted into the database. The following payment schedule attributes are compulsory: The id of the new object is returned.

Parameters:
ps -
Returns:
Returns the id of the PaymentSchedule object
Throws:
KKAdminException
org.apache.torque.TorqueException

updatePaymentSchedule

int updatePaymentSchedule(AdminPaymentSchedule ps)
                          throws KKAdminException,
                                 org.apache.torque.TorqueException,
                                 com.workingdogs.village.DataSetException
Update an AdminPaymentSchedule object. If the value of an attribute is null, the current value is not updated.

Parameters:
ps - An AdminPaymentSchedule object
Returns:
returns the id of the updated AdminPaymentSchedule object
Throws:
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException

deleteSubscription

int deleteSubscription(int id)
                       throws KKAdminException,
                              org.apache.torque.TorqueException
Delete a Subscription Object

Parameters:
id - The id of the subscription object to delete
Returns:
Returns the id of the deleted subscription object
Throws:
KKAdminException
org.apache.torque.TorqueException

getSubscription

AdminSubscription getSubscription(int id)
                                  throws KKAdminException,
                                         org.apache.torque.TorqueException,
                                         com.workingdogs.village.DataSetException
Returns the subscription object for the id parameter, or Null if the subscription object doesn't exist in the DB.

Parameters:
id - The id of the subscription object
Returns:
Returns a subscription object
Throws:
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException

getSubscriptions

AdminSubscriptionSearchResult getSubscriptions(AdminSubscriptionSearch search,
                                               int offset,
                                               int size)
                                               throws org.apache.torque.TorqueException,
                                                      com.workingdogs.village.DataSetException,
                                                      KKAdminException
This returns an AdminSubscriptionSearchResult object.

Parameters:
search - The object containing the search constraints
offset - the offset in the db
size - the number of records from the specified offset
Returns:
Returns an AdminSubscriptionSearchResult object
Throws:
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException

insertSubscription

int insertSubscription(AdminSubscription subscription)
                       throws KKAdminException,
                              org.apache.torque.TorqueException
An AdminSubscription object is inserted into the database. The following subscription attributes are compulsory: The id of the new object is returned.

Parameters:
subscription -
Returns:
Returns the id of the Subscription object
Throws:
KKAdminException
org.apache.torque.TorqueException

updateSubscription

int updateSubscription(AdminSubscription subscription)
                       throws KKAdminException,
                              org.apache.torque.TorqueException,
                              com.workingdogs.village.DataSetException
Update an AdminSubscription object. If the value of an attribute is null, the current value is not updated.

Parameters:
subscription - An AdminSubscription object
Returns:
Returns the id of the updated AdminSubscription object
Throws:
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException


Copyright © 2011 DS Data Systems UK Ltd.