public class AdminTaxMgr extends AdminBaseMgr implements AdminTaxMgrIf
| Modifier and Type | Class and Description |
|---|---|
protected class |
AdminTaxMgr.StaticData
Used to store the static data of this manager
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.lang.String |
mutex
Mutex for this manager
|
protected static java.util.Map<java.lang.String,AdminTaxMgr.StaticData> |
staticDataHM
Hash Map that contains the static data
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir| Constructor and Description |
|---|
AdminTaxMgr(KKAdminIf eng)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCountryOrderBy(com.konakart.db.KKCriteria c,
AdminCountrySearch search) |
protected int |
addCountrySearchCriteria(com.konakart.db.KKCriteria c,
AdminCountrySearch search) |
protected void |
addCountryStandardAttributes(com.konakart.db.KKCriteria c)
Add the standard Country attributes to the Criteria
|
protected void |
addGeoZoneOrderBy(com.konakart.db.KKCriteria c,
AdminGeoZoneSearch search) |
protected int |
addGeoZoneSearchCriteria(com.konakart.db.KKCriteria c,
AdminGeoZoneSearch search) |
protected void |
addSubZoneOrderBy(com.konakart.db.KKCriteria c,
AdminSubZoneSearch search) |
protected int |
addSubZoneSearchCriteria(com.konakart.db.KKCriteria c,
AdminSubZoneSearch search) |
protected void |
addTaxClassOrderBy(com.konakart.db.KKCriteria c,
AdminTaxClassSearch search) |
protected int |
addTaxClassSearchCriteria(com.konakart.db.KKCriteria c,
AdminTaxClassSearch search) |
protected void |
addTaxRateOrderBy(com.konakart.db.KKCriteria c,
AdminTaxRateSearch search) |
protected int |
addTaxRateSearchCriteria(com.konakart.db.KKCriteria c,
AdminTaxRateSearch search) |
protected void |
addZoneOrderBy(com.konakart.db.KKCriteria c,
AdminZoneSearch search) |
protected int |
addZoneSearchCriteria(com.konakart.db.KKCriteria c,
AdminZoneSearch search) |
int |
deleteCountry(int id)
Delete a Country
|
int |
deleteGeoZone(int id)
Delete a Tax Area - and all it's mappings
|
int |
deleteSubZone(int id)
Delete a Zone
|
int |
deleteTaxClass(int id)
Delete a TaxClass
|
int |
deleteTaxRate(int id)
Delete a TaxRate
|
int |
deleteZone(int id)
Delete a Zone
|
boolean |
doesCountryExist(int id)
Checks to see whether a country already exists with this id
|
boolean |
doesGeoZoneExist(int id)
Return true if the zone exists.
|
boolean |
doesGeoZoneExist(int id,
java.sql.Connection con)
Return true if the zone exists.
|
boolean |
doesSubZoneExist(int taxClassId)
Return true if the tax class exists.
|
boolean |
doesSubZoneExist(int id,
java.sql.Connection con)
Return true if the zone exists.
|
boolean |
doesTaxClassExist(int taxClassId)
Return true if the tax class exists.
|
boolean |
doesTaxClassExist(int taxClassId,
java.sql.Connection con)
Return true if the tax class exists.
|
boolean |
doesTaxRateExist(int id)
Return true if the zone exists.
|
boolean |
doesZoneExist(int id)
Return true if the zone exists.
|
boolean |
doesZoneExist(int id,
java.sql.Connection con)
Return true if the zone exists.
|
AdminCountry[] |
getAllCountriesFull()
Returns an array of fully populated countries.
|
AdminGeoZone[] |
getAllGeoZones()
Get an array of AdminGeoZones from the DB.
|
AdminTaxClass[] |
getAllTaxClassesFull()
Returns an array of all tax class objects.
|
AdminTaxRateSearchResult |
getAllTaxRates()
This returns an AdminTaxRateSearchResult object.
|
int |
getAllTaxRatesCount()
Returns a count of the number of TaxRates
|
AdminCountrySearchResult |
getCountries(AdminCountrySearch search,
int offset,
int size)
This returns an AdminCountrySearchResult object.
|
int |
getCountriesCount(AdminCountrySearch search)
Returns a count of the number of Countries
|
AdminCountry |
getCountryById(int countryId)
Returns the country object for the country id, or Null if the country doesn't exist in the
DB.
|
AdminCountry |
getCountryByName(java.lang.String countryName)
Returns the country object for the country name, or Null if the country doesn't exist in the
DB.
|
AdminGeoZoneSearchResult |
getGeoZones(AdminGeoZoneSearch search,
int offset,
int size)
This returns an AdminGeoZoneSearchResult object.
|
int |
getGeoZonesCount(AdminGeoZoneSearch search)
Returns a count of the number of Zones with the specified search criteria
|
AdminSubZoneSearchResult |
getSubZones(AdminSubZoneSearch search,
int offset,
int size)
This returns an AdminSubZoneSearchResult object.
|
int |
getSubZonesCount(AdminSubZoneSearch search)
Returns a count of the number of Zones with the specified search criteria
|
AdminTaxClassSearchResult |
getTaxClasses(AdminTaxClassSearch search)
This returns an AdminTaxClassSearchResult object.
|
int |
getTaxQuantityRule()
Returns the rule used to calculate tax for products with multiple quantities.
|
AdminTaxRateSearchResult |
getTaxRates(AdminTaxRateSearch search,
int offset,
int size)
This returns an AdminTaxRateSearchResult object.
|
int |
getTaxRatesCount(AdminTaxRateSearch search)
Returns a count of the number of TaxRates with the specified search criteria
|
int |
getTaxScale()
Returns the precision use for calculating tax that matches the ADMIN_CURRENCY_DECIMAL_PLACES
configuration variable.
|
AdminZone |
getZonePerCountryAndCode(int countryId,
java.lang.String zoneDesc)
The zone name and zone code is compared with the zoneDesc parameter in order to determine
whether a zone exists in the DB matching zoneDesc for the country defined by countryId.
|
AdminZone |
getZonePerId(int zoneId)
Returns the zone if it exists, otherwise null
|
AdminZoneSearchResult |
getZones(AdminZoneSearch search,
int offset,
int size)
This returns an AdminZoneSearchResult object.
|
AdminZone[] |
getZonesById(int countryId)
Returns an array of AdminZones in the specified country - fully-populated
|
int |
getZonesCount(AdminZoneSearch search)
Returns a count of the number of Zones with the specified search criteria
|
int |
insertCountry(AdminCountry country)
Insert an AdminCountry object
|
int |
insertGeoZone(AdminGeoZone insertObj)
Insert an AdminGeoZone object
|
int |
insertSubZone(AdminSubZone insertObj)
Insert an AdminSubZone object
|
int |
insertTaxClass(AdminTaxClass taxClass)
Insert an AdminTaxClass object
|
int |
insertTaxRate(AdminTaxRate insertObj)
Insert an AdminTaxRate object
|
int |
insertZone(AdminZone insertObj)
Insert an AdminZone object
|
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager
|
protected void |
setZoneCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
Sets the criteria with the standard attributes so as not to have to repeat this code many
times.
|
int |
updateCountry(AdminCountry country)
Update an AdminCountry object
|
int |
updateGeoZone(AdminGeoZone updateObj)
Update an AdminGeoZone object
|
int |
updateSubZone(AdminSubZone updateObj)
Update an AdminSubZone object
|
int |
updateTaxClass(AdminTaxClass taxClass)
Update an AdminTaxClass object
|
int |
updateTaxRate(AdminTaxRate updateObj)
Update an AdminTaxRate object
|
int |
updateZone(AdminZone updateObj)
Update an AdminZone object
|
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, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNowprotected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
protected static java.util.Map<java.lang.String,AdminTaxMgr.StaticData> staticDataHM
public AdminTaxMgr(KKAdminIf eng) throws java.lang.Exception
eng - the Admin Enginejava.lang.Exception - an unexpected exceptionpublic AdminCountry[] getAllCountriesFull() throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
AdminTaxMgrIfgetAllCountriesFull in interface AdminTaxMgrIfcom.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 - unexpected exception in the KonaKart Admin Enginepublic AdminCountry getCountryByName(java.lang.String countryName) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getCountryByName in interface AdminTaxMgrIfcountryName - the countryNameKKAdminException - 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 AdminCountry getCountryById(int countryId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getCountryById in interface AdminTaxMgrIfcountryId - the countryIdKKAdminException - 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 AdminTaxClass[] getAllTaxClassesFull() throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
AdminTaxMgrIfgetAllTaxClassesFull in interface AdminTaxMgrIfcom.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 - unexpected exception in the KonaKart Admin Enginepublic AdminTaxClassSearchResult getTaxClasses(AdminTaxClassSearch search) throws KKAdminException
getTaxClasses in interface AdminTaxMgrIfsearch - the searchKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int deleteTaxClass(int id)
throws KKAdminException
deleteTaxClass in interface AdminTaxMgrIfid - A TaxClass idKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int insertTaxClass(AdminTaxClass taxClass) throws KKAdminException
insertTaxClass in interface AdminTaxMgrIftaxClass - An AdminTaxClass objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int updateTaxClass(AdminTaxClass taxClass) throws KKAdminException
updateTaxClass in interface AdminTaxMgrIftaxClass - An AdminTaxClass objectKKAdminException - unexpected exception in the KonaKart Admin Engineprotected void addTaxClassOrderBy(com.konakart.db.KKCriteria c,
AdminTaxClassSearch search)
protected int addTaxClassSearchCriteria(com.konakart.db.KKCriteria c,
AdminTaxClassSearch search)
public boolean doesTaxClassExist(int taxClassId)
throws org.apache.torque.TorqueException,
KKAdminException
doesTaxClassExist in interface AdminTaxMgrIftaxClassId - the taxClassIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - unexpected exception in the KonaKart Admin Enginepublic boolean doesTaxClassExist(int taxClassId,
java.sql.Connection con)
throws org.apache.torque.TorqueException,
KKAdminException
doesTaxClassExist in interface AdminTaxMgrIftaxClassId - the taxClassIdcon - the conorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - unexpected exception in the KonaKart Admin Enginepublic AdminZone[] getZonesById(int countryId) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
AdminTaxMgrIfgetZonesById in interface AdminTaxMgrIfcountryId - the countryIdcom.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 - unexpected exception in the KonaKart Admin Enginepublic AdminZone getZonePerCountryAndCode(int countryId, java.lang.String zoneDesc) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getZonePerCountryAndCode in interface AdminTaxMgrIfcountryId - the countryIdzoneDesc - the zoneDescorg.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 - unexpected exception in the KonaKart Admin Enginepublic AdminZone getZonePerId(int zoneId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
AdminTaxMgrIfgetZonePerId in interface AdminTaxMgrIfzoneId - the zoneIdorg.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 - unexpected exception in the KonaKart Admin Enginepublic AdminZoneSearchResult getZones(AdminZoneSearch search, int offset, int size) throws KKAdminException
getZones in interface AdminTaxMgrIfsearch - the definition of the search - can be nulloffset - the offset in the dbsize - the number of records from the specified offsetKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int deleteZone(int id)
throws KKAdminException
deleteZone in interface AdminTaxMgrIfid - A Zone idKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int insertZone(AdminZone insertObj) throws KKAdminException
insertZone in interface AdminTaxMgrIfinsertObj - An AdminZone objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int updateZone(AdminZone updateObj) throws KKAdminException
updateZone in interface AdminTaxMgrIfupdateObj - An AdminZone objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic boolean doesZoneExist(int id)
throws org.apache.torque.TorqueException,
KKAdminException
doesZoneExist in interface AdminTaxMgrIfid - zone idorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - unexpected exception in the KonaKart Admin Enginepublic boolean doesZoneExist(int id,
java.sql.Connection con)
throws org.apache.torque.TorqueException,
KKAdminException
doesZoneExist in interface AdminTaxMgrIfid - zone idcon - Connection for transactionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - unexpected exception in the KonaKart Admin Enginepublic int getZonesCount(AdminZoneSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getZonesCount in interface AdminTaxMgrIfsearch - 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 - unexpected exception in the KonaKart Admin Engineprotected void addZoneOrderBy(com.konakart.db.KKCriteria c,
AdminZoneSearch search)
protected int addZoneSearchCriteria(com.konakart.db.KKCriteria c,
AdminZoneSearch search)
public AdminGeoZone[] getAllGeoZones() throws java.lang.Exception
getAllGeoZones in interface AdminTaxMgrIfjava.lang.Exception - an unexpected exceptionpublic AdminGeoZoneSearchResult getGeoZones(AdminGeoZoneSearch search, int offset, int size) throws KKAdminException
getGeoZones in interface AdminTaxMgrIfsearch - the definition of the search - can be nulloffset - the offset in the dbsize - the number of records from the specified offsetKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int deleteGeoZone(int id)
throws KKAdminException
deleteGeoZone in interface AdminTaxMgrIfid - A Tax Area idKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int insertGeoZone(AdminGeoZone insertObj) throws KKAdminException
insertGeoZone in interface AdminTaxMgrIfinsertObj - An AdminGeoZone objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int updateGeoZone(AdminGeoZone updateObj) throws KKAdminException
updateGeoZone in interface AdminTaxMgrIfupdateObj - An AdminGeoZone objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic boolean doesGeoZoneExist(int id)
throws org.apache.torque.TorqueException,
KKAdminException
doesGeoZoneExist in interface AdminTaxMgrIfid - zone idorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - unexpected exception in the KonaKart Admin Enginepublic boolean doesGeoZoneExist(int id,
java.sql.Connection con)
throws org.apache.torque.TorqueException,
KKAdminException
doesGeoZoneExist in interface AdminTaxMgrIfid - zone idcon - Connection for transactionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - unexpected exception in the KonaKart Admin Enginepublic int getGeoZonesCount(AdminGeoZoneSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getGeoZonesCount in interface AdminTaxMgrIfsearch - 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 - unexpected exception in the KonaKart Admin Engineprotected void addGeoZoneOrderBy(com.konakart.db.KKCriteria c,
AdminGeoZoneSearch search)
protected int addGeoZoneSearchCriteria(com.konakart.db.KKCriteria c,
AdminGeoZoneSearch search)
public AdminSubZoneSearchResult getSubZones(AdminSubZoneSearch search, int offset, int size) throws KKAdminException
getSubZones in interface AdminTaxMgrIfsearch - the definition of the search - can be nulloffset - the offset in the dbsize - the number of records from the specified offsetKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int deleteSubZone(int id)
throws KKAdminException
deleteSubZone in interface AdminTaxMgrIfid - A Zone idKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int insertSubZone(AdminSubZone insertObj) throws KKAdminException
insertSubZone in interface AdminTaxMgrIfinsertObj - An AdminSubZone objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int updateSubZone(AdminSubZone updateObj) throws KKAdminException
updateSubZone in interface AdminTaxMgrIfupdateObj - An AdminSubZone objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic boolean doesSubZoneExist(int taxClassId)
throws org.apache.torque.TorqueException,
KKAdminException
doesSubZoneExist in interface AdminTaxMgrIftaxClassId - the taxClassIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - unexpected exception in the KonaKart Admin Enginepublic boolean doesSubZoneExist(int id,
java.sql.Connection con)
throws org.apache.torque.TorqueException,
KKAdminException
doesSubZoneExist in interface AdminTaxMgrIfid - zone idcon - Connection for transactionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - unexpected exception in the KonaKart Admin Enginepublic int getSubZonesCount(AdminSubZoneSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getSubZonesCount in interface AdminTaxMgrIfsearch - 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 - unexpected exception in the KonaKart Admin Engineprotected void addSubZoneOrderBy(com.konakart.db.KKCriteria c,
AdminSubZoneSearch search)
protected int addSubZoneSearchCriteria(com.konakart.db.KKCriteria c,
AdminSubZoneSearch search)
public int getCountriesCount(AdminCountrySearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getCountriesCount in interface AdminTaxMgrIfsearch - 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 - unexpected exception in the KonaKart Admin Enginepublic AdminCountrySearchResult getCountries(AdminCountrySearch search, int offset, int size) throws KKAdminException
getCountries in interface AdminTaxMgrIfsearch - the searchoffset - the offset in the dbsize - the number of records from the specified offsetKKAdminException - unexpected exception in the KonaKart Admin Engineprotected void addCountryStandardAttributes(com.konakart.db.KKCriteria c)
c - Criteria to be populatedpublic int deleteCountry(int id)
throws KKAdminException
deleteCountry in interface AdminTaxMgrIfid - A Country idKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int insertCountry(AdminCountry country) throws KKAdminException
insertCountry in interface AdminTaxMgrIfcountry - An AdminCountry objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int updateCountry(AdminCountry country) throws KKAdminException
updateCountry in interface AdminTaxMgrIfcountry - An AdminCountry objectKKAdminException - unexpected exception in the KonaKart Admin Engineprotected void addCountryOrderBy(com.konakart.db.KKCriteria c,
AdminCountrySearch search)
protected int addCountrySearchCriteria(com.konakart.db.KKCriteria c,
AdminCountrySearch search)
public boolean doesCountryExist(int id)
throws org.apache.torque.TorqueException,
KKAdminException
doesCountryExist in interface AdminTaxMgrIfid - the country Idorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - unexpected exception in the KonaKart Admin Enginepublic AdminTaxRateSearchResult getAllTaxRates() throws KKAdminException
getAllTaxRates in interface AdminTaxMgrIfKKAdminException - unexpected exception in the KonaKart Admin Enginepublic AdminTaxRateSearchResult getTaxRates(AdminTaxRateSearch search, int offset, int size) throws KKAdminException
getTaxRates in interface AdminTaxMgrIfsearch - the definition of the search - can be nulloffset - the offset in the dbsize - the number of records from the specified offsetKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int deleteTaxRate(int id)
throws KKAdminException
deleteTaxRate in interface AdminTaxMgrIfid - A TaxRate idKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int insertTaxRate(AdminTaxRate insertObj) throws KKAdminException
insertTaxRate in interface AdminTaxMgrIfinsertObj - An AdminTaxRate objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int updateTaxRate(AdminTaxRate updateObj) throws KKAdminException
updateTaxRate in interface AdminTaxMgrIfupdateObj - An AdminTaxRate objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic boolean doesTaxRateExist(int id)
throws org.apache.torque.TorqueException,
KKAdminException
doesTaxRateExist in interface AdminTaxMgrIfid - zone idorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - unexpected exception in the KonaKart Admin Enginepublic int getTaxRatesCount(AdminTaxRateSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getTaxRatesCount in interface AdminTaxMgrIfsearch - 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 - unexpected exception in the KonaKart Admin Enginepublic int getAllTaxRatesCount()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException
getAllTaxRatesCount in interface AdminTaxMgrIforg.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 - unexpected exception in the KonaKart Admin Engineprotected void addTaxRateOrderBy(com.konakart.db.KKCriteria c,
AdminTaxRateSearch search)
protected int addTaxRateSearchCriteria(com.konakart.db.KKCriteria c,
AdminTaxRateSearch search)
public void refreshConfigs()
throws java.lang.Exception
refreshConfigs in interface AdminTaxMgrIfrefreshConfigs in class AdminBaseMgrjava.lang.Exception - an unexpected exceptionpublic int getTaxQuantityRule()
throws KKAdminException
getTaxQuantityRule in interface AdminTaxMgrIfKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int getTaxScale()
throws KKAdminException
getTaxScale in interface AdminTaxMgrIfKKAdminException - unexpected exception in the KonaKart Admin Engineprotected void setZoneCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
c - the cCopyright © 2018 DS Data Systems UK Ltd.