public class PriceEquationCalculationCmdImpl extends com.ibm.websphere.command.CacheableCommandImpl implements PriceEquationCalculationCmd
PriceEquationCalculationCmd
.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, NAME
Constructor and Description |
---|
PriceEquationCalculationCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatentryId()
Get the catalog entry ID.
|
java.lang.String |
getCurrency()
Get the currency.
|
java.lang.String |
getExpression()
Get the representing expression of price equation.
|
boolean |
getFlag()
Get the flag of getUnitOnly.
|
java.math.BigDecimal |
getInputPrice()
Get the input price.
|
com.ibm.commerce.price.rule.runtime.objects.PriceEquationResultObject |
getPriceEquationResultObject()
Get the price equation result object.
|
java.lang.Double |
getQuantity()
Get the quantity.
|
java.lang.Integer |
getStoreId()
Get the store ID.
|
java.lang.String |
getUom()
Get the unit of measurement.
|
boolean |
isReadyToCallExecute()
This method returns true.
|
void |
performExecute()
The main logic to execute the command.
|
void |
setCatEntryId(java.lang.String catEntryId)
Set the catalog entry ID.
|
void |
setCurrency(java.lang.String currency)
Set the currency.
|
void |
setEquationExpression(java.lang.String expression)
Set the representing expression of price equation.
|
void |
setFlag(boolean flag)
Set the flag of getUnitOnly.
|
void |
setInputPrice(java.math.BigDecimal inputPrice)
Set the input price.
|
void |
setQuantity(java.lang.Double quantity)
Set the quantity.
|
void |
setRuntimeParameters(java.util.Map runtimeParameters)
Set the runtime parameters from the price rule engine.
|
void |
setStoreId(java.lang.Integer storeId)
Set the store ID.
|
void |
setUom(java.lang.String uom)
Set the unit of measurement for the catalog entry.
|
void |
validateParameters()
Checks mandatory parameters.
|
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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public com.ibm.commerce.price.rule.runtime.objects.PriceEquationResultObject getPriceEquationResultObject()
getPriceEquationResultObject
in interface PriceEquationCalculationCmd
public java.math.BigDecimal getInputPrice()
public java.lang.String getExpression()
public java.lang.String getCatentryId()
public java.lang.String getCurrency()
public java.lang.Integer getStoreId()
public java.lang.String getUom()
public java.lang.Double getQuantity()
public boolean getFlag()
public void setCatEntryId(java.lang.String catEntryId)
setCatEntryId
in interface PriceEquationCalculationCmd
catEntryId
- public void setCurrency(java.lang.String currency)
setCurrency
in interface PriceEquationCalculationCmd
currency
- public void setEquationExpression(java.lang.String expression)
setEquationExpression
in interface PriceEquationCalculationCmd
expression
- public void setInputPrice(java.math.BigDecimal inputPrice)
setInputPrice
in interface PriceEquationCalculationCmd
inputPrice
- public void setQuantity(java.lang.Double quantity)
setQuantity
in interface PriceEquationCalculationCmd
quantity
- public void setStoreId(java.lang.Integer storeId)
setStoreId
in interface PriceEquationCalculationCmd
storeId
- public void setUom(java.lang.String uom)
setUom
in interface PriceEquationCalculationCmd
uom
- public void setFlag(boolean flag)
setFlag
in interface PriceEquationCalculationCmd
flag
- public void setRuntimeParameters(java.util.Map runtimeParameters)
PriceEquationCalculationCmd
setRuntimeParameters
in interface PriceEquationCalculationCmd
runtimeParameters
- The runtime parameters for price rule.public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class com.ibm.websphere.command.TargetableCommandImpl
public void performExecute() throws java.lang.Exception
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.websphere.command.TargetableCommandImpl
java.lang.Exception
public void validateParameters() throws ECException
ECException