com.ibm.commerce.edp.commands

Class ReservePaymentVoidCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AEDPPaymentTaskCmd, AEDPStoreTaskCmd, AEDPTaskCmd, ReservePaymentCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class ReservePaymentVoidCmdImpl
    extends AEDPStoreTaskCmdImpl
    implements ReservePaymentCmd
    This is the void implementation of the ReservePaymentCmd task command.

    Behaviour:

    • This task command is called by com.ibm.commerce.inventory.commands.ReleaseOrdersToFulfillmentCmdImpl. The void implementation of commands is used when anyone is intended to disable the command while keeping the single code base. Note that please use the void implementation of all commands once you decide to disable the command implementation.

    Input parameters:

    None.

    Output parameters:

    None.

    Task commands called:

    None.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • ReservePaymentVoidCmdImpl

        public ReservePaymentVoidCmdImpl()
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command. This is done before the Framework calls the performExecute method of the command. Here this method does nothing.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        A boolean that is true if the command is ready to execute and false otherwise.
      • setReleases

        public void setReleases(java.util.HashMap paramReleases)
        This method sets the releases to be reserved.
        Specified by:
        setReleases in interface ReservePaymentCmd
        Parameters:
        paramReleases - A HashMap that represents the list of release IDs and their amounts to be reserved.
      • getReleases

        public java.util.HashMap getReleases()
        This method gets the list of releases to be processed in this request.
        Returns:
        A HashMap that represents the list of releases to be processed in this request.
      • setReservationAmount

        public void setReservationAmount(java.math.BigDecimal paramReservationAmount)
        This method sets the total order amount.
        Specified by:
        setReservationAmount in interface ReservePaymentCmd
        Parameters:
        paramReservationAmount - A BigDecimal that specifies the total amount to be reserved.
      • getReservationAmount

        public java.math.BigDecimal getReservationAmount()
        This method gets the total amount to be reserved.
        Returns:
        A BigDecimal that specifies the total amount to be reserved.
      • performExecute

        public void performExecute()
                            throws ECException
        This method executes the business logic of this command implementation , which does nothing here.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - This exception is thrown in case of a failure.
      • 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 com.ibm.websphere.command.Command
        Overrides:
        reset in class AEDPPaymentTaskCmdImpl
      • getReleaseIds

        public java.util.Collection getReleaseIds()
        This method obtains the list of release ids to be reserved.
        Returns:
        A Collection that represents the list of release ids to be reserved.