Class CheckTASpendingLimitCmdImpl

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

    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
        anTradingId - the Trading Agreement ID
        bMultipleTradingIds - indicate if the order uses multiple Trading Agreements
      • 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
      • 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
        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
        nTA - the amount to be checked