public class CheckProcessBackordersCmdImpl extends TaskCommandImpl implements CheckProcessBackordersCmd
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.defaultCommandClassName, NAME
Constructor and Description |
---|
CheckProcessBackordersCmdImpl()
method description: This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
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 locked orders with status=B.
|
void |
reset()
method description: Reset all instance variables.
|
void |
setStoreId(java.lang.Integer anStoreToCheck)
method description: Set the store id.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public CheckProcessBackordersCmdImpl()
public boolean checkProcessingNeeded()
checkProcessingNeeded
in interface CheckForWorkCmd
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void performExecute() throws ECException
This command uses the following AccessBean:
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECSystemException
- when receive java.sql.SQLExceptionECSystemException
- when receive javax.ejb.CreateExceptionECSystemException
- when receive javax.naming.NamingExceptionECSystemException
- when receive java.rmi.RemoteExceptionECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setStoreId(java.lang.Integer anStoreToCheck)
setStoreId
in interface CheckForWorkCmd
anStoreToCheck
- the store that backorders will be checked for