Class ChangePaymentCurrencyVoidTaskCmdImpl

    • Field Detail


        public static final java.lang.String COPYRIGHT
        The IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChangePaymentCurrencyVoidTaskCmdImpl

        public ChangePaymentCurrencyVoidTaskCmdImpl()
    • Method Detail

      • setOrderTotalAmount

        public void setOrderTotalAmount(java.math.BigDecimal newAmount)
        This method sets the total amount of current order, since here the currency has been changed, the total amount is based on the new currency.
        Specified by:
        setOrderTotalAmount in interface ChangePaymentCurrencyTaskCmd
        newAmount - A BigDecimal that specifies the new total amount of the order based on the new currency.
      • setOrderNewCurrency

        public void setOrderNewCurrency(java.lang.String newCurrency)
        This method sets the new currency to the Order.
        Specified by:
        setOrderNewCurrency in interface ChangePaymentCurrencyTaskCmd
        newCurrency - A String that specifies the new currency of the order.
      • performExecute

        public void performExecute()
                            throws ECException
        This method executes the business logic of this command implementation. This method is empty since it belongs the void implementation class.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
        ECException - This exception is thrown when any kind of EDPExceptions catched.
      • reset

        public void reset()
        This method resets the command fields. After this method is invoked, and proper attributes are set, the command can be executed again.
        Specified by:
        reset in interface
        reset in class AEDPPaymentTaskCmdImpl