public class ApplyCalculationUsageCmdImpl extends CalculationCmdImpl implements ApplyCalculationUsageCmd
The default implementation of ApplyCalculationUsageCmd.
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 |
---|
ApplyCalculationUsageCmdImpl()
Constructor for ApplyCalculationUsageCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
protected void | callCodeApply(Group aGroup)
Invokes the calculation method of type "CalculationCodeApply" referenced by the calculation code (see CALCODE.CALMETHOD_ID_APP, CalculationCodeApplyCmd) to apply the values.
|
protected void | callCodeCalculate(Group aGroup)
Invokes the calculation method of type "CalculationCodeCalculate" referenced by the calculation code (see CALCODE.CALMETHOD_ID, CalculationCodeCalculateCmd) to calculate the values.
|
protected Group[] | callCodeCombine(Item[] aItems)
Invokes the calculation method of type "CalculationCodeCombine" referenced by the current store (see STENCALUSG.ACTCC_CALMETHOD_ID, CalculationCodeCombineCmd) to determine the calculation codes attached to each item.
|
void | checkAppliedItems()
Checks if a value has been calculated and applied to each and every item.
|
java.util.Set | getAppliedItems()
Returns the items that have been applied to.
|
protected Item[] | getItems()
Returns the items.
|
protected java.lang.Integer[] | getTaxCategoryIds()
Returns the tax categories.
|
void | performExecute()
This method performs the business logic for this command.
|
void | reset()
This method is called after a command has been executed.
|
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 | updateAppliedItems(Group aGroup)
Updates the set of items that have been applied to.
|
public static final java.lang.String COPYRIGHT
public ApplyCalculationUsageCmdImpl()
protected void callCodeApply(Group aGroup) throws ECException
protected void callCodeCalculate(Group aGroup) throws ECException
protected Group[] callCodeCombine(Item[] aItems) throws ECException
public void checkAppliedItems() throws ECException
public java.util.Set getAppliedItems()
protected Item[] getItems()
protected java.lang.Integer[] getTaxCategoryIds()
public void performExecute() throws ECException
public void reset()
public void setItems(Item[] aItems)
public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
protected void updateAppliedItems(Group aGroup)