java.lang.Object | +--CalculationCmdImpl | +--com.ibm.commerce.taxation.commands.TaxCalculationRuleQualifyCmdImpl
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 |
Fields inherited from interface com.ibm.commerce.taxation.commands. TaxCalculationRuleQualifyCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
TaxCalculationRuleQualifyCmdImpl() |
Method Summary | |
---|---|
protected
java.util.Hashtable |
createAddressIdHash(java.util.Hashtable orderItemABHash) Creates the address ids list. |
java.util.Hashtable |
getAddressIdHash() Gets the list of address ids. |
java.util.Hashtable |
getApplicableCache() |
java.util.Vector |
getOrderItemABHashVector() Gets the list of orderitem access bean hashtables. |
protected
boolean |
isRelated(java.lang.Integer calculationRuleId,
java.lang.Integer fulfillmentCenterId,
java.lang.Integer jurisdictionId) Verifies if the calculation rule is for the jurisdiction. |
void |
performExecute() Executes main business logic of the command. |
void |
setAddressIdHash(java.util.Hashtable addressIdHash) Sets the list of address ids. |
void |
setApplicableCache(java.util.Hashtable applicableCache) |
void |
setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB) |
void |
setOrderItemABHash(java.util.Hashtable orderItemABHash) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public TaxCalculationRuleQualifyCmdImpl()
Method Detail |
---|
protected java.util.Hashtable createAddressIdHash(java.util.Hashtable orderItemABHash) throws ECException
orderItemABHash
- The list of orderitem access beans.
ECException
public java.util.Hashtable getAddressIdHash()
getAddressIdHash
in interface
TaxCalculationRuleQualifyCmd
public java.util.Hashtable getApplicableCache()
getApplicableCache
in interface
TaxCalculationRuleQualifyCmd
public java.util.Vector getOrderItemABHashVector()
protected boolean isRelated(java.lang.Integer calculationRuleId, java.lang.Integer fulfillmentCenterId, java.lang.Integer jurisdictionId) throws ECException
calculationRuleId
- the id of the calculation rule.jurisdictionId
- the id of the jurisdiction.
ECException
public void performExecute() throws ECException
ECException
public void setAddressIdHash(java.util.Hashtable addressIdHash)
setAddressIdHash
in interface
TaxCalculationRuleQualifyCmd
addressIdHash
- The list of address ids.public void setApplicableCache(java.util.Hashtable applicableCache)
setApplicableCache
in interface
TaxCalculationRuleQualifyCmd
public void setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
public void setOrderItemABHash(java.util.Hashtable orderItemABHash)