public class CalculatePriceElementCmdImpl extends PriceRuleElementCmdImpl implements PriceRuleElementCmd
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.
|
Constructor and Description |
---|
CalculatePriceElementCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected com.ibm.commerce.price.rule.runtime.objects.PriceEquationResultObject | calculatePriceEquationValue(java.lang.Integer iStoreId, java.lang.String iExpression, java.lang.String iCatentryId, java.lang.Double iQuantity, java.lang.String iUom, java.lang.String iCurrency, java.math.BigDecimal iInputPrice)
This method calculates the value of the price equation.
|
java.lang.String | getExpressionByEquationId(java.lang.String priceEquationId)
This method will retrieve expression from equation.
|
protected boolean | isPriceEquationInCurrency(java.lang.String iExpression)
This method judge if the price equation is of currency type which means it represents price.
|
void | performExecute()
The main logic to execute the command.
|
java.util.List | validateParameters(java.util.Map elementParameters)
This method performs validations.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public void performExecute() throws java.lang.Exception
protected com.ibm.commerce.price.rule.runtime.objects.PriceEquationResultObject calculatePriceEquationValue(java.lang.Integer iStoreId, java.lang.String iExpression, java.lang.String iCatentryId, java.lang.Double iQuantity, java.lang.String iUom, java.lang.String iCurrency, java.math.BigDecimal iInputPrice) throws java.lang.Exception
protected boolean isPriceEquationInCurrency(java.lang.String iExpression) throws java.lang.Exception
public java.util.List validateParameters(java.util.Map elementParameters)
public java.lang.String getExpressionByEquationId(java.lang.String priceEquationId) throws DataMediatorException