public class NonDiscountedPriceCalculationScaleLookupCmdImpl extends CalculationCmdImpl implements NonDiscountedPriceCalculationScaleLookupCmd
NonDiscountedPriceCalculationScaleLookup command.
This command is suitable for shipping scales and some kinds of discounts.
For example: If a percentage discount is based on the non-discounted
price of an OrderItem. Two successive 10% discounts would give the customer
a total 20% discount on the OrderItem. If the discount is based on the net
price of an OrderItem, two successive 10% discounts would give the customer
a total 19% discount. Because the second discount is based on the price of
the OrderItem less the first discount (or 90% of the original non-discounted
price).
The values calculated by this command are as follows:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
defaultCommandClassName, NAME| Constructor and Description |
|---|
NonDiscountedPriceCalculationScaleLookupCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getBaseMonetaryValue()
Returns the base monetary value.
|
java.math.BigDecimal |
getLookupNumber()
Returns the lookup number.
|
java.math.BigDecimal |
getResultMultiplier()
Returns the result multiplier.
|
java.math.BigDecimal[] |
getWeights()
Returns the mathematical weights of the items for distributing values.
|
void |
performExecute()
This method performs the business logic for this command.
|
void |
reset()
Resets the command properties.
|
void |
setItems(Item[] aItems)
Sets the items.
|
void |
setRule(CalculationRuleAccessBean aabRule)
Sets the calculation rule.
|
void |
setScale(CalculationScaleAccessBean aabScale)
Sets the calculation scale.
|
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageIdgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageIdgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT
public NonDiscountedPriceCalculationScaleLookupCmdImpl()
public java.math.BigDecimal getBaseMonetaryValue()
CalculationScaleLookupCmdgetBaseMonetaryValue in interface CalculationScaleLookupCmdpublic java.math.BigDecimal getLookupNumber()
CalculationScaleLookupCmdgetLookupNumber in interface CalculationScaleLookupCmdpublic java.math.BigDecimal getResultMultiplier()
CalculationScaleLookupCmdgetResultMultiplier in interface CalculationScaleLookupCmdpublic java.math.BigDecimal[] getWeights()
CalculationScaleLookupCmdgetWeights in interface CalculationScaleLookupCmdpublic void performExecute()
throws ECException
AbstractECTargetableCommandperformExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class CalculationCmdImplCommand.reset()public void setItems(Item[] aItems)
CalculationScaleLookupCmdsetItems in interface CalculationScaleLookupCmdaItems - the items.public void setRule(CalculationRuleAccessBean aabRule)
CalculationScaleLookupCmdsetRule in interface CalculationScaleLookupCmdaabRule - the calculation rule.public void setScale(CalculationScaleAccessBean aabScale)
CalculationScaleLookupCmdsetScale in interface CalculationScaleLookupCmdaabScale - the calculation scale.