com.ibm.commerce.order.calculation
Class PerUnitAmountCalculationRangeCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.command.BusinessPolicyCommandImpl
-
- com.ibm.commerce.order.calculation.CalculationCmdImpl
-
- com.ibm.commerce.order.calculation.PerUnitAmountCalculationRangeCmdImpl
-
- All Implemented Interfaces:
- BusinessPolicyCommand, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CalculationCmd, CalculationRangeCmd, PerUnitAmountCalculationRangeCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class PerUnitAmountCalculationRangeCmdImpl extends CalculationCmdImpl implements PerUnitAmountCalculationRangeCmd
This is the default implementation of thePerUnitAmountCalculationRange
command.- See Also:
PerUnitAmountCalculationRangeCmd
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
-
Fields inherited from interface com.ibm.commerce.order.calculation.PerUnitAmountCalculationRangeCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description PerUnitAmountCalculationRangeCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.math.BigDecimal
getValue()
Returns the resulting value.void
performExecute()
This method performs the business logic for this command.void
reset()
Resets the command properties.void
setBaseMonetaryValue(java.math.BigDecimal adBaseMonetaryValue)
Sets the base monetary value.void
setLookupNumber(java.math.BigDecimal adLookupNumber)
Sets the lookup number.void
setLookupResult(CalculationRangeLookupResultAccessBean aabLookupResult)
Sets the calculation range lookup result.void
setRange(CalculationRangeAccessBean aabRange)
Sets the calculation range.-
Methods inherited from class com.ibm.commerce.order.calculation.CalculationCmdImpl
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
-
Methods inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
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
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.order.calculation.CalculationCmd
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
-
Methods inherited from interface com.ibm.commerce.command.BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PerUnitAmountCalculationRangeCmdImpl
public PerUnitAmountCalculationRangeCmdImpl()
-
-
Method Detail
-
reset
public void reset()
Resets the command properties. Prepares the command for re-execution.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classCalculationCmdImpl
- See Also:
Command.reset()
-
getValue
public java.math.BigDecimal getValue()
Description copied from interface:CalculationRangeCmd
Returns the resulting value.- Specified by:
getValue
in interfaceCalculationRangeCmd
- Returns:
- the resulting value.
-
performExecute
public void performExecute() throws ECException
Description copied from class:AbstractECTargetableCommand
This method performs the business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
-
setBaseMonetaryValue
public void setBaseMonetaryValue(java.math.BigDecimal adBaseMonetaryValue)
Description copied from interface:CalculationRangeCmd
Sets the base monetary value.- Specified by:
setBaseMonetaryValue
in interfaceCalculationRangeCmd
- Parameters:
adBaseMonetaryValue
- the base monetary value.
-
setLookupNumber
public void setLookupNumber(java.math.BigDecimal adLookupNumber)
Description copied from interface:CalculationRangeCmd
Sets the lookup number.- Specified by:
setLookupNumber
in interfaceCalculationRangeCmd
- Parameters:
adLookupNumber
- the lookup number.
-
setLookupResult
public void setLookupResult(CalculationRangeLookupResultAccessBean aabLookupResult)
Description copied from interface:CalculationRangeCmd
Sets the calculation range lookup result.- Specified by:
setLookupResult
in interfaceCalculationRangeCmd
- Parameters:
aabLookupResult
- the calculation range lookup result.
-
setRange
public void setRange(CalculationRangeAccessBean aabRange)
Description copied from interface:CalculationRangeCmd
Sets the calculation range.- Specified by:
setRange
in interfaceCalculationRangeCmd
- Parameters:
aabRange
- the calculation range.
-
-