com.ibm.commerce.inventory.scheduled.commands

Class CheckProcessBackordersCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckProcessBackordersCmd, 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 CheckProcessBackordersCmdImpl
    extends TaskCommandImpl
    implements CheckProcessBackordersCmd
    Default implementation of the CheckProcessBackordersCmd interface. Figure out which stores actually have something that needs to be done by checking if there is work for ProcessBackOrdersCmd to do for inStoreToCheck.
    See Also:
    Serialized Form
    • Constructor Detail

      • CheckProcessBackordersCmdImpl

        public CheckProcessBackordersCmdImpl()
        method description: This is the class constructor.
    • Method Detail

      • checkProcessingNeeded

        public boolean checkProcessingNeeded()
        method description: Return the boolean ibIsThereWork.
        Specified by:
        checkProcessingNeeded in interface CheckForWorkCmd
        Returns:
        True indicates that there is work to do.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        method description: If store id has been set then return true, otherwise return false.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        true
      • reset

        public void reset()
        method description: 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 anStoreToCheck)
        method description: Set the store id.
        Specified by:
        setStoreId in interface CheckForWorkCmd
        Parameters:
        anStoreToCheck - the store that backorders will be checked for