com.ibm.commerce.inventory.scheduled.commands

Class CheckRAReallocateCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckRAReallocateCmd, CheckForWorkCmd, 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 CheckRAReallocateCmdImpl
    extends TaskCommandImpl
    implements CheckRAReallocateCmd
    This CheckRAReallocateCMD checks to see if there is work for RAReallocate to do for the given store. It figures out which stores actually have something that needs to be done.
    See Also:
    Serialized Form
    • Constructor Detail

      • CheckRAReallocateCmdImpl

        public CheckRAReallocateCmdImpl()
        This is the class constructor CheckRAReallocateCmdImpl
    • Method Detail

      • checkProcessingNeeded

        public boolean checkProcessingNeeded()
        Return the boolean ibIsThereWork.

        Specified by:
        checkProcessingNeeded in interface CheckForWorkCmd
        Returns:
        True indicates that there is work to do.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Return the boolean true or false based on if store id set.

        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        True if store id set, otherwise False
      • performExecute

        public void performExecute()
                            throws ECException
        Set flag ibIsThereWork to indicate that there is work to do. This is determined by checking if any backorders were deleted or fulfilled. Or, it is determined by checking if any RA information changed in any way since the last time the process was run.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • reset

        public void reset()
        Reset all instance variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setStoreId

        public void setStoreId(java.lang.Integer argStoreToCheck)
        Set the store id.

        Specified by:
        setStoreId in interface CheckForWorkCmd
        Parameters:
        argStoreToCheck - store wanting to check