com.ibm.commerce.taxation.commands
Class TaxCalculationRuleQualifyCmdImpl
com.ibm.commerce.taxation.commands.TaxCalculationRuleQualifyCmdImpl
- All Implemented Interfaces:
- TaxCalculationRuleQualifyCmd
- public class TaxCalculationRuleQualifyCmdImpl
- implements TaxCalculationRuleQualifyCmd
The default implementation for the task command returns several
lists of OrderItems whose shipping addresses as well as the
fulfillment centre match one of the rule's associated
TaxJurisdictionCalculationRules (a match is implied if there are none).
The shipping addresses within each list are the same.
Field Summary |
static java.lang.String |
COPYRIGHT
|
COPYRIGHT
public static final java.lang.String COPYRIGHT
TaxCalculationRuleQualifyCmdImpl
public TaxCalculationRuleQualifyCmdImpl()
createAddressIdHash
protected java.util.Hashtable createAddressIdHash(java.util.Hashtable orderItemABHash)
throws ECException
- Creates the address ids list.
- Parameters:
orderItemABHash
- The list of orderitem access beans.
- Returns:
- The list of address ids.
getAddressIdHash
public java.util.Hashtable getAddressIdHash()
- Gets the list of address ids.
- Specified by:
getAddressIdHash
in interface TaxCalculationRuleQualifyCmd
- Following copied from interface:
com.ibm.commerce.taxation.commands.TaxCalculationRuleQualifyCmd
- Returns:
- The lis of address ids.
getApplicableCache
public java.util.Hashtable getApplicableCache()
- Specified by:
getApplicableCache
in interface TaxCalculationRuleQualifyCmd
getOrderItemABHashVector
public java.util.Vector getOrderItemABHashVector()
- Gets the list of orderitem access bean hashtables.
isRelated
protected boolean isRelated(java.lang.Integer calculationRuleId,
java.lang.Integer fulfillmentCenterId,
java.lang.Integer jurisdictionId)
throws ECException
- Verifies if the calculation rule is for the jurisdiction.
- Parameters:
calculationRuleId
- the id of the calculation rule.jurisdictionId
- the id of the jurisdiction.
- Returns:
- true if the rule is related. False otherwise.
performExecute
public void performExecute()
throws ECException
- Executes main business logic of the command.
setAddressIdHash
public void setAddressIdHash(java.util.Hashtable addressIdHash)
- Sets the list of address ids.
- Specified by:
setAddressIdHash
in interface TaxCalculationRuleQualifyCmd
- Following copied from interface:
com.ibm.commerce.taxation.commands.TaxCalculationRuleQualifyCmd
- Parameters:
addressHashId
- The list of address ids.
setApplicableCache
public void setApplicableCache(java.util.Hashtable applicableCache)
- Specified by:
setApplicableCache
in interface TaxCalculationRuleQualifyCmd
setCalculationRuleAB
public void setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
setOrderItemABHash
public void setOrderItemABHash(java.util.Hashtable orderItemABHash)