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

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

public class CheckReleaseToFulfillmentCmdImpl
extends TaskCommandImpl
implements CheckReleaseToFulfillmentCmd

This CheckReleaseToFulfillmentCmd implements figuring out which stores actually have something that needs to be done.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.inventory.scheduled.commands. CheckReleaseToFulfillmentCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
CheckReleaseToFulfillmentCmdImpl()
          This is the class constructor.
 
Method Summary
 boolean checkProcessingNeeded()
          This returns the boolean ibIsThereWork.
 boolean isReadyToCallExecute()
          Determines if store id has been set.
 void performExecute()
          Call the Order query to see if there are orders to release.
 void reset()
          Resets instance variables inStoreToCheck to null and ibIsThereWork to false
 void setStoreId(java.lang.Integer argStoreToCheck)
          Set the store id.
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckReleaseToFulfillmentCmdImpl

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

checkProcessingNeeded

public boolean checkProcessingNeeded()
This returns the boolean ibIsThereWork.
Specified by:
checkProcessingNeeded in interface CheckForWorkCmd
Returns:
True indicates that there is work to do, otherwise False indicating that there is no work to do.

isReadyToCallExecute

public boolean isReadyToCallExecute()
Determines if store id has been set.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Returns:
true store id has been set, otherwise return false.

performExecute

public void performExecute()
                    throws ECException
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.

This method will set ibIsThereWork to true if there are orders to release, otherwise set to false.

This command calls the following AccessBean:

Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
ECSystemException - when receive java.sql.SQLException
ECSystemException - when receive javax.ejb.CreateException
ECSystemException - when receive javax.naming.NamingException
ECSystemException - when receive java.rmi.RemoteException

reset

public void reset()
Resets instance variables inStoreToCheck to null and ibIsThereWork to false
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 - sets store id to check