CalculationRuleCalculateCmdImpl
.public class TaxCalculationRuleCalculateCmdImpl extends com.ibm.commerce.order.utils.CalculationRuleCalculateCmdImpl implements TaxCalculationRuleCalculateCmd
CalculationScale.
A
CalculationScaleis applicable if it can calculate a MonetaryAmount in the Order currency. But a
CalculationScalewhose
currStrindicates a currency other than the Order currency is not applicable. The
CalculationScaleis not applicable if either:
CalculationScalehas a
currStrthat does indicate the Order currency, or
currStrattribute exists and can produce a lower total result.
The default implementation's algorithm is:
CalculationScalethrows a conversion exception, continue processing as if we did not call that
CalculationScale.
CalculationScaleassociated with this CalculationRule whose
currStrattribute is empty:
CalculationScale. Add this result to the total result for each OrderItem.
currStrattributes of the CalculationScales. The CalculationScales'
currStrattributes indicate currencies that can be converted to the Order currency.
CalculationScaleassociated with this CalculationRule whose
currStrattribute indicates the
CalculationScaleis in that currency:
CalculationScale. Add these results to the candidate results.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Deprecated.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
TaxCalculationRuleCalculateCmdImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
Deprecated.
Executes main business logic of the command.
|
void |
setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
Deprecated.
Sets the CalculationRuleAccessBean.
|
void |
setOrderItemABHash(java.util.Hashtable orderItemABHash)
Deprecated.
Sets the list of OrderItemAccessBean.
|
setCalculationCmdCache, setCalculationUsage, setOrderCurrency, validateParameters
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setCalculationCmdCache, setCalculationUsage, setOrderCurrency
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public TaxCalculationRuleCalculateCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.commerce.order.utils.CalculationRuleCalculateCmdImpl
ECException
public void setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
setCalculationRuleAB
in interface com.ibm.commerce.order.utils.CalculationRuleCalculateCmd
setCalculationRuleAB
in class com.ibm.commerce.order.utils.CalculationRuleCalculateCmdImpl
calculationRuleAB
- The CalculationRuleAccessBean.public void setOrderItemABHash(java.util.Hashtable orderItemABHash)
setOrderItemABHash
in interface com.ibm.commerce.order.utils.CalculationRuleCalculateCmd
setOrderItemABHash
in class com.ibm.commerce.order.utils.CalculationRuleCalculateCmdImpl
orderItemABHash
- The list of OrderItemAccessBean.