Class DoDepositCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, DoDepositCmd,,,,,,


    public class DoDepositCmdImpl
    extends TaskCommandImpl
    implements DoDepositCmd
    Default DoDeposit task command implementation.


    Parameter Name Type Descriptions
    order OrderAccessBean The Order Access Bean
    depositAmount BigDecimal The amount to be deposited


    • Calls DebitAccount command to debit the account through an external Accounting System.
    • Calls UpdateTADepositRecords command to update the deposit records for this order by Trading Agreement.
    • Calls the DoDeposit payment Policy command for the Payment Policy used for the Purchase. (The ID of the Payment Policy is stored in the ORDPAYMTHD Table).
    • Finally, update the CaptureDate field of the OrderRelease and the Order and Order Item Status fields to OrderConstants.ORDER_DEPOSITED.

    Error View Name:

    • DoDepositErrorView


    • (Include error codes from the other subordinate commands)

    This command uses the following AccessBeans:

    This command calls the following TaskCommands:

    This command calls the following BusinessPolicyCommands:

    See Also:
    Serialized Form
    • Constructor Detail

      • DoDepositCmdImpl

        public DoDepositCmdImpl()
    • 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.
        Specified by:
        isReadyToCallExecute in interface
        isReadyToCallExecute in class AbstractECTargetableCommand
        true if we can execute the command; false otherwise.
      • reset

        public void reset()
        Resets the instance variables of the command. The reset() method will reset all instance variables. If the command includes any output values that are accessible via getters, then make sure those values are no longer needed before calling this method to reset the instance variables of the command.

        This is useful if the command instance is to be called multiple times with different command parameters.

        Specified by:
        reset in interface
        reset in class AbstractECTargetableCommand
      • setDepositAmount

        public void setDepositAmount(java.math.BigDecimal depositAmount)
        Sets the depositAmount property of the command.
        Specified by:
        setDepositAmount in interface DoDepositCmd
        depositAmount - the amount to be deposited.
      • setOrder

        public void setOrder(OrderAccessBean ab)
        Sets the order property of the command.
        Specified by:
        setOrder in interface DoDepositCmd
        ab - the OrderAccessBean of the Order whose payment is to be deposited