Interface CalculationRuleCalculateCmd

  • All Superinterfaces:
    BusinessPolicyCommand,,, CalculationCmd,,, ECCommand,,, TaskCommand
    All Known Implementing Classes:

    public interface CalculationRuleCalculateCmd
    extends CalculationCmd

    Given a calculation rule and a list of items, this command will calculate the value of the calculation rule for each item.

    For more information, refer to the default implementation of this command, CalculationRuleCalculateCmdImpl.

    This is also the base interface that commands registered as calculation methods of type "CalculationRuleCalculate" must extend.

    This command is registered as the following bootstrap calculation methods:

    Calculation Method IDCalculation Usage IDName
    -7-1CalculationRuleCalculate (discount)
    -27-2CalculationRuleCalculate (shipping)
    -47-3CalculationRuleCalculate (sales tax)
    -67-4CalculationRuleCalculate (shipping tax)
    -5007-5CalculationRuleCalculate (coupon)

    • Field Detail


        static final java.lang.String COPYRIGHT
        The IBM copyright field notice.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation of this command.
        See Also:
        Constant Field Values

        static final java.lang.String FILTER_SCALES_BY_STORE
        The "filterScalesByStore" default property.
        See Also:
        Constant Field Values
    • Method Detail

      • getValues

        java.math.BigDecimal[] getValues()
        Returns the values corresponding to the items.
        the values.
      • setItems

        void setItems(Item[] aItems)
        Sets the items.
        aItems - the items.
      • setRule

        void setRule(CalculationRuleAccessBean aabRule)
        Sets the calculation rule.
        aabRule - the calculation rule.