public class CalculationRuleCombineCmdImpl extends CalculationCmdImpl implements CalculationRuleCombineCmd
The default implementation of CalculationRuleCombineCmd.
Its behavior is as follows:
Commands used:
Access beans used:Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT |
Constructor and Description |
---|
CalculationRuleCombineCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.math.BigDecimal[] | callRuleCalculate(CalculationRuleAccessBean aabRule, Item[] aItems)
This method is called by performExecute() to invoke the CalculationRuleCalculate command.
|
protected Item[] | callRuleQualify(CalculationRuleAccessBean aabRule, Item[] aItems)
This method is called by performExecute() to invoke the CalculationRuleQualify command.
|
protected void | combineRules()
This method is called by performExecute() to combine calculation rules based on their combination values.
|
protected CalculationCodeAccessBean | getCode() |
protected Item[] | getItems() |
CalculationRuleAccessBean[] | getRules()
getRules method comment.
|
protected java.lang.Integer[] | getTaxCategoryIds()
Returns the tax categories.
|
java.math.BigDecimal[] | getValues(java.lang.Integer anRuleId)
getValues method comment.
|
protected boolean | isRestricted(CalculationRuleAccessBean aabRule) |
void | performExecute()
This method performs the business logic for this command.
|
protected void | removeValues(java.lang.Integer anRuleId)
This method is called by combineRules() to remove a calculation rule and its result.
|
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.
|
protected void | setRules(CalculationRuleAccessBean[] aabRules)
Sets the calculation rules.
|
void | setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
Sets the tax categories that should be active during execution.
|
protected void | setValues(java.lang.Integer anRuleId, java.math.BigDecimal[] adValues)
Sets the result of a particular calculation rule.
|
public static final java.lang.String COPYRIGHT
protected java.math.BigDecimal[] callRuleCalculate(CalculationRuleAccessBean aabRule, Item[] aItems) throws ECException
protected Item[] callRuleQualify(CalculationRuleAccessBean aabRule, Item[] aItems) throws ECException
protected void combineRules() throws ECException
public CalculationRuleAccessBean[] getRules()
protected java.lang.Integer[] getTaxCategoryIds()
public java.math.BigDecimal[] getValues(java.lang.Integer anRuleId)
protected boolean isRestricted(CalculationRuleAccessBean aabRule) throws ECException
public void performExecute() throws ECException
protected void removeValues(java.lang.Integer anRuleId)
public void reset()
public void setCode(CalculationCodeAccessBean aabCode)
protected CalculationCodeAccessBean getCode()
public void setItems(Item[] aItems)
protected Item[] getItems()
protected void setRules(CalculationRuleAccessBean[] aabRules)
public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
protected void setValues(java.lang.Integer anRuleId, java.math.BigDecimal[] adValues)