com.ibm.commerce.inventory.scheduled.commands
Class CheckReleaseToFulfillmentCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.inventory.scheduled.commands.CheckReleaseToFulfillmentCmdImpl
All Implemented Interfaces:
CheckForWorkCmd, CheckReleaseToFulfillmentCmd, ECCommand, TaskCommand

public class CheckReleaseToFulfillmentCmdImpl
extends TaskCommandImpl
implements CheckReleaseToFulfillmentCmd

Figure out which stores actually have something that needs to be done.


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.inventory.scheduled.commands.CheckReleaseToFulfillmentCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
CheckReleaseToFulfillmentCmdImpl()
          method description: This is the class constructor.
 
Method Summary
 boolean checkProcessingNeeded()
          method description: Return the boolean ibIsThereWork.
 boolean isReadyToCallExecute()
          method description: If store id has been set then return true, otherwise return false.
 void performExecute()
          method description: Call the Order query to see if there are orders to release.
 void reset()
          method description: Reset instance variables.
 void setStoreId(java.lang.Integer argStoreToCheck)
          method description: Set the store id.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Constructor Detail

CheckReleaseToFulfillmentCmdImpl

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

checkProcessingNeeded

public boolean checkProcessingNeeded()
method description: Return the boolean ibIsThereWork. True indicates that there is work to do. False indicates that there is no work to do.
Specified by:
checkProcessingNeeded in interface CheckForWorkCmd
Following copied from interface: com.ibm.commerce.scheduler.commands.CheckForWorkCmd
Returns:
boolean - whether works need to be done or not.

isReadyToCallExecute

public boolean isReadyToCallExecute()
method description: If store id has been set then return true, otherwise return false.
Overrides:
isReadyToCallExecute in class AbstractECCommand
Following copied from class: com.ibm.commerce.command.AbstractECCommand
Returns:
boolean - true if we can execute the command false if we canot execute the command

performExecute

public void performExecute()
                    throws ECException
method description: Call the Order query to see if there are orders to release. If there are then set a flag to indicate that there is work to do.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

reset

public void reset()
method description: Reset instance variables.
Overrides:
reset in class AbstractECCommand

setStoreId

public void setStoreId(java.lang.Integer argStoreToCheck)
method description: Set the store id.
Specified by:
setStoreId in interface CheckForWorkCmd
Following copied from interface: com.ibm.commerce.scheduler.commands.CheckForWorkCmd
Parameters:
storeId - java.lang.Long