com.ibm.commerce.inventory.scheduled.commands
Class CheckProcessBackordersCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.inventory.scheduled.commands.CheckProcessBackordersCmdImpl
- All Implemented Interfaces:
-
CheckForWorkCmd,
CheckProcessBackordersCmd,
ECCommand,
ECTargetableCommand,
TaskCommand
- 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
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 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. |
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 |
CheckProcessBackordersCmdImpl
public CheckProcessBackordersCmdImpl()
- method description: This is the class constructor.
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.
-
- Overrides:
-
isReadyToCallExecute
in class
AbstractECTargetableCommand
-
- Returns:
- true if we can execute the command false if we canot execute the
command
public void performExecute()
throws ECException
- method description: Call the Order query to see if there are locked orders
with status=B. If there are then set a flag to indicate that there is work to
do.
This command uses the following AccessBean:
- OrderJDBCHelperAccessBean
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
- Throws:
-
ECSystemException
- when receive java.sql.SQLException
-
ECSystemException
- when receive javax.ejb.CreateException
-
ECSystemException
- when receive javax.naming.NamingException
-
ECSystemException
- when receive java.rmi.RemoteException
-
ECException
reset
public void reset()
- method description: Reset all instance variables.
-
- 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
- java.lang.Long