public class MakeReceiptAvailableCmdImpl extends TaskCommandImpl implements MakeReceiptAvailableCmd
MakeReceiptAvailableCmd interface.
Makes a receipt available to the distribution arrangement.
Uses the following access beans:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
MakeReceiptAvailableCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getDistArrangId()
Returns distribution arrangement identifier.
|
java.lang.Long |
getItemspcId()
Return item identifier.
|
java.lang.Long |
getRcptAvailId()
Return available receipt identifier.
|
java.lang.Long |
getReceiptId()
Return the receipt identifier.
|
boolean |
isReadyToCallExecute()
Identifies whether this command is ready to be executed.
|
void |
performExecute()
Makes a receipt available to the distribution arrangement.
|
void |
reset()
Resets the command local variable.
|
void |
setDistArrangId(java.lang.Long newDistArrangId)
Set distribution arrangement identifier.
|
void |
setItemspcId(java.lang.Long newItemspcId)
Set item identifier.
|
void |
setRcptAvailId(java.lang.Long newRcptAvailId)
Set available receipt identifier.
|
void |
setReceiptId(java.lang.Long newReceiptId)
Set the receipt identifier.
|
void |
setRequestProperties(TypedProperty newRequestProperties)
Set request properties.
|
void |
validateParameters()
Checks the information needed for making a receipt available.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public java.lang.Long getDistArrangId()
MakeReceiptAvailableCmdgetDistArrangId in interface MakeReceiptAvailableCmdMakeReceiptAvailableCmd.getDistArrangId(),
setDistArrangId(java.lang.Long)public java.lang.Long getItemspcId()
MakeReceiptAvailableCmdgetItemspcId in interface MakeReceiptAvailableCmdMakeReceiptAvailableCmd.getItemspcId(),
setItemspcId(java.lang.Long)public java.lang.Long getRcptAvailId()
MakeReceiptAvailableCmdgetRcptAvailId in interface MakeReceiptAvailableCmdMakeReceiptAvailableCmd.getRcptAvailId(),
setRcptAvailId(java.lang.Long)public java.lang.Long getReceiptId()
MakeReceiptAvailableCmdgetReceiptId in interface MakeReceiptAvailableCmdMakeReceiptAvailableCmd.getReceiptId(),
setReceiptId(java.lang.Long)public void setDistArrangId(java.lang.Long newDistArrangId)
MakeReceiptAvailableCmdsetDistArrangId in interface MakeReceiptAvailableCmdnewDistArrangId - distribution arrangement identifierMakeReceiptAvailableCmd.setDistArrangId(java.lang.Long),
getDistArrangId()public void setItemspcId(java.lang.Long newItemspcId)
MakeReceiptAvailableCmdsetItemspcId in interface MakeReceiptAvailableCmdnewItemspcId - item identifierMakeReceiptAvailableCmd.setItemspcId(java.lang.Long),
getItemspcId()public void setRcptAvailId(java.lang.Long newRcptAvailId)
MakeReceiptAvailableCmdsetRcptAvailId in interface MakeReceiptAvailableCmdnewRcptAvailId - available receipt identifierMakeReceiptAvailableCmd.setRcptAvailId(java.lang.Long),
getRcptAvailId()public void setReceiptId(java.lang.Long newReceiptId)
MakeReceiptAvailableCmdsetReceiptId in interface MakeReceiptAvailableCmdnewReceiptId - receipt identifierMakeReceiptAvailableCmd.setReceiptId(java.lang.Long),
getReceiptId()public void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
setRequestProperties in interface MakeReceiptAvailableCmdnewRequestProperties - request propertiesECApplicationExceptionpublic boolean isReadyToCallExecute()
isReadyToCallExecute in interface com.ibm.websphere.command.CommandisReadyToCallExecute in class AbstractECTargetableCommandpublic void validateParameters()
throws ECException
Parameters:
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - If mandatory parameters are not passed in, specify
_ERR_BAD_MISSING_CMD_PARAMETERECExceptionpublic void performExecute()
throws ECException
This is done by inserting a row into RCPTAVAIL table associating the receipt with the distribution arrangement.
The distribution arrangement will have a picking method of either LIFO or FIFO. If the picking method of the distribution arrangement is FIFO, the precedence of the rcptavail row will be MAX(precedence)+1. If the picking method of the distribution arrangement is LIFO, the precedence of the rcptavail row will be MIN(precedence)-1. If there are no rows in the rcptavail table, the precedence of the rcptavail row will be 1.
If distribution arrangement parameter is null, uses ItemSpecificationAccessBean and DistributionArrangementAccessBean to retrieve the base item id from the item specified id. Or if there is still no distribution arrangement, create one. This behavior allows a store to always allocate from inventory that it owns.
Uses InventoryJDBCHelperAccessBean().findAvailableReceiptMaxAndMinPrecedence to get the next precedence to use for new RCPTAVAIL row. Uses AvailableReceiptAccessBean to create and populate the row.
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommand