com.ibm.commerce.payment.commands

Class UpdateTADepositRecordsCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, UpdateTADepositRecordsCmd, 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 UpdateTADepositRecordsCmdImpl
    extends TaskCommandImpl
    implements UpdateTADepositRecordsCmd
    This is the default implementation of the UpdateTADepositRecordsCmd task command .

    Behaviour:

    • The default implementation inserts a row into the TRDDEPAMT table. For the order with the depositAmount in the default currency of the store if all order items specify the same Trading Agreement. However, if NOT all the order items have the same Trading Agreement, this command inserts multiple rows. One for each order item, with the deposit amount of each order item converted to the default currency of the Store.
    • The deposit amount of an order item is the sum of the ORDERITEMS.TOTALPRODUCT + ORDERITEMS.TAXAMOUNT + ORDERITEMS.SHIPCHARGE + ORDERITEMS.SHIPTAXAMOUNT minus ORDERITEMS.TOTALADJUSTMENT.

    This command uses the following AccessBeans:

    Task commands called:

    None
    See Also:
    Serialized Form
    • Constructor Detail

      • UpdateTADepositRecordsCmdImpl

        public UpdateTADepositRecordsCmdImpl()
    • Method Detail

      • reset

        public void reset()
        This method 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 com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setDepositAmount

        public void setDepositAmount(java.math.BigDecimal depositAmount)
        This method sets the depositAmount property of the command.
        Specified by:
        setDepositAmount in interface UpdateTADepositRecordsCmd
        Parameters:
        depositAmount - A BigDecimal that specifies the deposit amount in the currency of the order.
      • setOrder

        public void setOrder(OrderAccessBean ab)
        This method sets the order property of the command.
        Specified by:
        setOrder in interface UpdateTADepositRecordsCmd
        Parameters:
        ab - An OrderAccessBean that represents the order whose Trading Agreement deposit record is to be updated.