public class CalculationRuleCombineCmdImpl extends CalculationCmdImpl implements CalculationRuleCombineCmd
The default implementation of CalculationRuleCombineCmd.
Its behaviour is as follows:
CalculationRuleQualifyCmd) to determine the list of
qualified items.
CalculationRuleQualifyCmd) to
calculate its values for the list of qualified items.Commands used:
Access beans used:OrderItemAccessBeanStoreEntityCalculationUsageAccessBeanCalculationMethodAccessBeanCalculationCodeAccessBeanCalculationRuleAccessBean| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
defaultCommandClassName, NAME| Constructor and Description |
|---|
CalculationRuleCombineCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
CalculationRuleAccessBean[] |
getRules()
getRules method comment.
|
java.math.BigDecimal[] |
getValues(java.lang.Integer anRuleId)
getValues method comment.
|
void |
performExecute()
This method performs the business logic for this command.
|
void |
reset()
This method is called after a command has been executed.
|
void |
setCode(CalculationCodeAccessBean aabCode)
Sets the calculation code.
|
void |
setItems(Item[] aItems)
Sets the items.
|
void |
setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
Sets the tax categories that should be active during execution.
|
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageIdgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageIdgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT
public CalculationRuleAccessBean[] getRules()
getRules in interface CalculationRuleCombineCmdpublic java.math.BigDecimal[] getValues(java.lang.Integer anRuleId)
getValues in interface CalculationRuleCombineCmdanRuleId - the calculation rule ID.public void performExecute()
throws ECException
AbstractECTargetableCommandperformExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
AbstractECTargetableCommandreset in interface com.ibm.websphere.command.Commandreset in class CalculationCmdImplCommand.reset()public void setCode(CalculationCodeAccessBean aabCode)
CalculationRuleCombineCmdsetCode in interface CalculationRuleCombineCmdaabCode - the calculation code.public void setItems(Item[] aItems)
CalculationRuleCombineCmdsetItems in interface CalculationRuleCombineCmdaItems - the items.public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
CalculationRuleCombineCmdsetTaxCategoryIds in interface CalculationRuleCombineCmdanTaxCategoryIds - the tax category IDs.