Class CheckRAReallocateCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, CheckRAReallocateCmd, CheckForWorkCmd,,,,,,

    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
        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
        isReadyToCallExecute in class AbstractECTargetableCommand
        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
        performExecute in class AbstractECTargetableCommand
      • reset

        public void reset()
        Reset all instance variables.
        Specified by:
        reset in interface
        reset in class AbstractECTargetableCommand
      • setStoreId

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

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