public class AdminBillingMgr extends AdminBaseMgr implements AdminBillingMgrIf
AdminBaseMgr.StaticData
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminBillingMgr(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPaymentScheduleOrderBy(com.konakart.db.KKCriteria c,
AdminPaymentScheduleSearch search)
Add order by constraints for payment schedules
|
protected int |
addPaymentScheduleSearchCriteria(com.konakart.db.KKCriteria c,
AdminPaymentScheduleSearch search)
Add search criteria for payment schedule objects
|
protected void |
addSubscriptionOrderBy(com.konakart.db.KKCriteria c,
AdminSubscriptionSearch search)
Add order by constraints for subscriptions
|
protected void |
addSubscriptionSearchCriteria(com.konakart.db.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. |
AdminPaymentSchedule |
getPaymentSchedule(int id,
java.sql.Connection con)
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.db.KKCriteria c,
int customerId)
Common code to avoid duplication
|
protected void |
setSubscriptionCriteriaWithStandardAttributes(com.konakart.db.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
|
addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkAPICallEnabled, checkIntInRange, checkIntIsSet, checkRequired, executeQuery, executeQuery, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminContentMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustPwdHistMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminEngineCacheMgr, getAdminEventMgr, getAdminExecuteMgr, getAdminFileMgr, getAdminFilterMgr, getAdminHtmlMgr, getAdminImportMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminMiscPriceMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminServletMgr, getAdminShipmentMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminSuggestionMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getDebugStackTraceExclusions, getEmailThreadGracefulShutdownTimeout, getExportMgr, getExportMgr, getExportXMLData, getIntFromString, getKkAdminPropsFilePath, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getNewCriteria, getNewCriteria, getOtherModuleByName, getPostSearchText, getPreSearchText, getProductsToCategoresCriteria, getPropertyValue, getPropertyValue, getPropertyValueAsBool, getPropertyValueAsInt, getPropertyValueAsLong, getRecordCount, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isCommunity, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, isUnix, isWindows, manageException, manageThrowable, refreshConfigs, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNow
public AdminBillingMgr(KKAdminIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic int deletePaymentSchedule(int id) throws KKAdminException, org.apache.torque.TorqueException
deletePaymentSchedule
in interface AdminBillingMgrIf
id
- The id of the payment schedule object to deleteKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public int deleteSubscription(int id) throws KKAdminException, org.apache.torque.TorqueException
deleteSubscription
in interface AdminBillingMgrIf
id
- The id of the subscription object to deleteKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)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 objectKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public AdminPaymentSchedule getPaymentSchedule(int id, java.sql.Connection con) 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 objectcon
- Connection for TransactionKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)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 objectKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)protected int getPaymentScheduleCount(AdminPaymentScheduleSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteriaorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineprotected int getSubscriptionCount(AdminSubscriptionSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteriaorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic 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 offsetcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic 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 offsetcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic int insertPaymentSchedule(AdminPaymentSchedule ps) throws KKAdminException, org.apache.torque.TorqueException
insertPaymentSchedule
in interface AdminBillingMgrIf
ps
- the psKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public int insertSubscription(AdminSubscription subscription) throws KKAdminException, org.apache.torque.TorqueException
insertSubscription
in interface AdminBillingMgrIf
subscription
- the subscriptionKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public int updatePaymentSchedule(AdminPaymentSchedule ps) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
updatePaymentSchedule
in interface AdminBillingMgrIf
ps
- An AdminPaymentSchedule objectKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public int updateSubscription(AdminSubscription subscription) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
updateSubscription
in interface AdminBillingMgrIf
subscription
- An AdminSubscription objectKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)protected void validatePaymentSchedule(AdminPaymentSchedule ps) throws KKAdminException
ps
- the psKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected void validateSubscription(AdminSubscription subscription) throws KKAdminException, org.apache.torque.TorqueException
subscription
- the subscriptionKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)protected void setPaymentScheduleCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c, int customerId)
c
- the ccustomerId
- the customerIdprotected void setSubscriptionCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
c
- the cprotected int addPaymentScheduleSearchCriteria(com.konakart.db.KKCriteria c, AdminPaymentScheduleSearch search)
c
- the csearch
- the searchprotected void addSubscriptionSearchCriteria(com.konakart.db.KKCriteria c, AdminSubscriptionSearch search)
c
- the csearch
- the searchprotected void addPaymentScheduleOrderBy(com.konakart.db.KKCriteria c, AdminPaymentScheduleSearch search)
c
- the csearch
- the searchprotected void addSubscriptionOrderBy(com.konakart.db.KKCriteria c, AdminSubscriptionSearch search)
c
- the csearch
- the searchCopyright © 2018 DS Data Systems UK Ltd.