public class ApplyCalculationUsageCmdImpl extends CalculationCmdImpl implements ApplyCalculationUsageCmd
The default implementation of ApplyCalculationUsageCmd
.
Its behaviour is as follows:
CalculationCodeCombineCmd
) to determine the calculation codes attached to
each item.CalculationCodeCalculateCmd
)
to calculate the values corresponding to the items.CalculationCodeApplyCmd
) to
apply the values to the items.Commands used:
Access beans used:OrderItemAccessBean
StoreEntityCalculationUsageAccessBean
CalculationMethodAccessBean
CalculationCodeAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ApplyCalculationUsageCmdImpl()
Constructor for ApplyCalculationUsageCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
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, validateParameters
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
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
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 ApplyCalculationUsageCmdImpl()
public void checkAppliedItems() throws ECException
checkAppliedItems
in interface ApplyCalculationUsageCmd
ECException
public java.util.Set getAppliedItems()
getAppliedItems
in interface ApplyCalculationUsageCmd
Item
).public void performExecute() throws ECException
AbstractECTargetableCommand
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
ECCommand.performExecute()
public void reset()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class CalculationCmdImpl
Command.reset()
public void setItems(Item[] aItems)
setItems
in interface ApplyCalculationUsageCmd
aItems
- the items.public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
setTaxCategoryIds
in interface ApplyCalculationUsageCmd
anTaxCategoryIds
- the tax category IDs.