com.ibm.commerce.payment.commands

Class CheckTASpendingLimitCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckTASpendingLimitCmd, 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 CheckTASpendingLimitCmdImpl
    extends TaskCommandImpl
    implements CheckTASpendingLimitCmd
    Default CheckTASpendingLimit task command implementation.

    This command uses the following AccessBeans:

    • OrderAccessBean
    • OrderItemAccessBean
    • PaymentJDBCHelperAccessBean
    • TradingAgreementAccessBean
    • RightToBuyTCByAmountAccessBean

    This command does not call other TaskCommand.

    See Also:
    Serialized Form
    • Constructor Detail

      • CheckTASpendingLimitCmdImpl

        public CheckTASpendingLimitCmdImpl()
    • Method Detail

      • checkSpendingLimit

        public void checkSpendingLimit(java.lang.Long anTradingId,
                                       boolean bMultipleTradingIds)
                                throws ECException
        Checks if the spending limit of the specified Trading Agreement has been exceeded
        Parameters:
        anTradingId - the Trading Agreement ID
        bMultipleTradingIds - indicate if the order uses multiple Trading Agreements
        Throws:
        ECException
      • 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 com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setErrorViewName

        public void setErrorViewName(java.lang.String sEVN)
        Sets the error view to be used to report error. This overrides the default error view of the command.
        Specified by:
        setErrorViewName in interface CheckTASpendingLimitCmd
        Parameters:
        sEVN - the Error View name
      • setTotalAmount

        public void setTotalAmount(java.math.BigDecimal nTA)
        Sets the totalAmount property of the command.
        Specified by:
        setTotalAmount in interface CheckTASpendingLimitCmd
        Parameters:
        nTA - the amount to be checked