public class CalculationCodeCalculateCmdImpl extends CalculationCmdImpl implements CalculationCodeCalculateCmd
The default implementation of CalculationCodeCalculateCmd.
Its behavior is as follows:
Commands used:
Access beans used:Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
CalculationCodeCalculateCmdImpl()
Constructor for CalculationCodeCalculateCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
protected CalculationRuleCombineCmd | callRuleCombine()
Invokes the calculation method of type "CalculationRuleCombine" referenced by the current store (see STENCALUSG.ACTRC_CALMETHOD_ID, CalculationRuleCombineCmd).
|
protected Item[] | getItems()
Returns the items.
|
protected java.lang.Integer[] | getTaxCategoryIds()
Returns the tax categories.
|
java.math.BigDecimal[] | getValues()
Returns the values corresponding to the items.
|
java.math.BigDecimal[] | getValues(java.lang.Integer anTaxCategoryId)
Returns the values for a tax category.
|
void | performExecute()
This method performs the business logic for this command.
|
void | reset()
This method is called after a command has been executed.
|
protected void | roundValues()
Rounds the merged list of values by "fudging" for each tax category.
|
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.
|
protected void | setValues(java.math.BigDecimal[] adValues)
Sets the values corresponding to the items.
|
protected void | setValues(java.lang.Integer anTaxCategoryId, java.math.BigDecimal[] adValues)
Sets the values for a tax category.
|
public static final java.lang.String COPYRIGHT
public CalculationCodeCalculateCmdImpl()
protected CalculationRuleCombineCmd callRuleCombine() throws ECException
protected Item[] getItems()
protected java.lang.Integer[] getTaxCategoryIds()
public java.math.BigDecimal[] getValues()
public java.math.BigDecimal[] getValues(java.lang.Integer anTaxCategoryId)
public void performExecute() throws ECException
public void reset()
protected void roundValues() throws ECException
public void setCode(CalculationCodeAccessBean aabCode)
public void setItems(Item[] aItems)
public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
protected void setValues(java.math.BigDecimal[] adValues)
protected void setValues(java.lang.Integer anTaxCategoryId, java.math.BigDecimal[] adValues)