public class ComparisonConditionElementCmdImpl extends PriceRuleElementCmdImpl implements ComparisonConditionElementCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName
Constructor and Description |
---|
ComparisonConditionElementCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getPriceConstantValue(java.lang.String prconstantId,
java.lang.String targetCurrency)
This method retrieve value of a price constant.
|
void |
performExecute()
The main logic to execute the command.
|
java.util.List |
validateParameters(java.util.Map elementParameters)
This method performs validations.
|
getCatentryId, getCurrency, getElementId, getElementParameters, getPriceRule, getQuantity, getReturnedObject, getRuntimeParametersMap, getUom, isReadyToCallExecute, setCatentryId, setCurrency, setElementId, setElementParameters, setPriceRule, setQuantity, setReturnedObject, setRuntimeParametersMap, setUom
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCatentryId, getCurrency, getElementId, getElementParameters, getPriceRule, getQuantity, getReturnedObject, getRuntimeParametersMap, getUom, setCatentryId, setCurrency, setElementId, setElementParameters, setPriceRule, setQuantity, setReturnedObject, setRuntimeParametersMap, setUom
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public void performExecute() throws java.lang.Exception
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class PriceRuleElementCmdImpl
java.lang.Exception
public java.math.BigDecimal getPriceConstantValue(java.lang.String prconstantId, java.lang.String targetCurrency) throws java.lang.Exception
prconstantId
- The price constant Id. It can't be null or empty.targetCurrency
- The specified currency for currency price constant.
It can be null or empty if the price constant in question is not currency type.java.lang.Exception
public java.util.List validateParameters(java.util.Map elementParameters)
validateParameters
in interface PriceRuleElementCmd
validateParameters
in class PriceRuleElementCmdImpl
elementParameters
-