com.ibm.commerce.inventory.scheduled.commands
Class CheckReleaseExpiredAllocationsCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.inventory.scheduled.commands.CheckReleaseExpiredAllocationsCmdImpl
- All Implemented Interfaces:
- CheckForWorkCmd, CheckReleaseExpiredAllocationsCmd, ECCommand, TaskCommand
- public class CheckReleaseExpiredAllocationsCmdImpl
- extends TaskCommandImpl
- implements CheckReleaseExpiredAllocationsCmd
Figure out which stores actually have something that needs to be done.
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 expired orderitems. |
void |
reset()
method description: Reset all 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 |
CheckReleaseExpiredAllocationsCmdImpl
public CheckReleaseExpiredAllocationsCmdImpl()
- method description: This is the class constructor.
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 expired orderitems.
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 all 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