com.ibm.commerce.inventory.scheduled.commands

Class ReleaseExpiredAllocationsCmdImpl

    • Constructor Detail

      • ReleaseExpiredAllocationsCmdImpl

        public ReleaseExpiredAllocationsCmdImpl()
        This is the class constructor.
    • Method Detail

      • isGeneric

        public boolean isGeneric()
        This method returns false if this command can't be run by a generic user.
        Specified by:
        isGeneric in interface ControllerCommand
        Overrides:
        isGeneric in class ControllerCommandImpl
        Returns:
        Return false to indicate that this command cannot be run by a generic user.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method returns true if this command is ready to be executed.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        Return true to indicate that this command is ready to be executed.
      • performExecute

        public void performExecute()
                            throws ECException
        This method releases order item allocations for a given store that have exceeded their expiration times. If it cannot commit the transaction started by the command, it throws the ECSystemException with ECMessage.STA_COMMIT_DB_FAILURE. If the OrderJDBCHelper.findStaleOrderItems has SQL exception,it throws com.ibm.commerce.exception.ECSystemException with ECMessage._ERR_FINDER_EXCEPTION.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException.
        ECException
      • reset

        public void reset()
        This method resets instance variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • validateParameters

        public void validateParameters()
                                throws ECException
        This method extracts and validates the input parameters of this command implementation. It checks the mandatory parameters.

        Parameters

        • storeId
          • the store id

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException. - If the store id has not been specified, it throws com.ibm.commerce.exception.ECSystemException with ECMessage._ERR_DIDNT_SET_MERCHANT

        ECException