com.ibm.commerce.order.commands

Interface GetOrderTotalAmountCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    GetOrderTotalAmountCmdImpl, VATGetOrderTotalAmountCmdImpl


    public interface GetOrderTotalAmountCmd
    extends TaskCommand
    This task command is used to sum up the order's total charge amount. The default implementation of this command is GetOrderTotalAmountCmdImpl.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of this command interface.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The name of the default implementation class for this command interface.
        See Also:
        Constant Field Values
    • Method Detail

      • setOrder

        void setOrder(OrderAccessBean aabOrder)
        This method sets the order access bean whose charges need to be summed up.
        Parameters:
        aabOrder - the OrderAccessBean object.
      • getOrder

        OrderAccessBean getOrder()
        This method returns the OrderAccessBean
        Returns:
        the OrderAccessBean
      • getTotalAmount

        java.math.BigDecimal getTotalAmount()
        This method returns the result of order's total amount. The correct value can be got only after executing the command.
        Returns:
        order's total amount