public class ManageInventoryCmdImpl extends TaskCommandImpl implements ManageInventoryCmd
ManageInventoryCmd
task command.
iAction
is 1, call adjustInventory()
to adjust the inventory.iAction
is 2, call createInventory()
to create the inventory.iAction
is other value, call doMoreAction()
to do more inventory actions.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
ADJUST_INVENTORY, CREATE_INVENTORY, defaultCommandClassName, NAME
Constructor and Description |
---|
ManageInventoryCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatEntryId() |
java.lang.String |
getComment1()
Gets the comment specified on the new receipt.
|
java.lang.String |
getComment2()
Gets the comment specified regarding the quality of the item received.
|
java.lang.String |
getCost()
Gets the unit cost of the item.
|
java.lang.String |
getDistArrangId()
Gets the identifier of the distribution arrangement that has access to this
received inventory.
|
java.lang.String |
getFfmcenterId()
Gets the identifier of the fulfillment center where the inventory was received.
|
java.lang.String |
getItemspcId()
Gets the identifier of the item specified for receipt.
|
java.lang.String |
getMemberId()
Gets the identifier of the owner of the received item.
|
java.lang.String |
getPartNumber()
Gets the part number of the received item.
|
java.lang.String |
getQtyReceived()
Gets the number of items received.
|
java.lang.String |
getRaDetailId()
Gets the expected inventory record detail identifier for the expected
inventory receipt.
|
java.lang.String |
getRcptAvailId()
Gets the available receipt identifier.
|
java.lang.String |
getReceiptDate()
Gets the date the inventory was received.
|
java.lang.String |
getReceiptId()
Gets the identifier of the new receipt.
|
java.lang.String |
getReceiptType()
Gets the type of receipt which indicates how this receipt was created.
|
java.lang.String |
getRtnRcptDspId()
Gets the disposition record identifier of the item returned for receipt.
|
java.lang.String |
getSetCCurr()
Gets the currency of the
cost field. |
java.lang.String |
getVendorId()
Gets the identifier of the vendor that supplied the inventory.
|
java.lang.String |
getVersionSpcId()
Gets the product version identifier of the item returned for receipt.
|
boolean |
isReadyToCallExecute()
Ready to be executed.
|
void |
performExecute()
This command is used to manage inventory in accelerator, currently, there are
two actions, one is create inventory and another is adjust inventory
|
void |
reset()
Resets the command local variable.
|
void |
setAction(int action)
Specify the action to fulfill
|
void |
setAdjustmentComment(java.lang.String newAdjustmentComment) |
void |
setCatEntryId(java.lang.String catEntryId)
Sets the identifier of the item specified for receipt.
|
void |
setComment1(java.lang.String newComment1)
Sets the comment on the new receipt.
|
void |
setComment2(java.lang.String newComment2)
Sets the comment regarding the quality of the item received.
|
void |
setCost(java.lang.String newCost)
Sets the unit cost of the item being received.
|
void |
setDistArrangId(java.lang.String newDistArrangId)
Sets the identifier of the distribution arrangement that has access to
this received inventory.
|
void |
setFfmcenterId(java.lang.String newFfmcenterId)
Sets the fulfillment center identifier.
|
void |
setFlagCheck(java.lang.String newFlagCheck)
This method sets the flag for when updateInventory whether to check quantity
|
void |
setFlagUpdate(java.lang.String newFlagUpdate)
This method sets the flag for when updateInventory/checkInventory whether to update quantity
|
void |
setInvAdjCodeId(java.lang.String newInvAdjCodeId)
Sets the identifier for the adjustment type being made.
|
void |
setInvadjustId(java.lang.String newInvadjustId)
This method sets the inventory adjustment identifier.
|
void |
setItemspcId(java.lang.String newItemspcId)
Sets the identifier of the item specified for receipt.
|
void |
setMemberId(java.lang.String newMemberId)
Sets the identifier of the owner of the item specified for receipt.
|
void |
setPartNumber(java.lang.String newPartNumber)
Sets the part number of the items being received.
|
void |
setQtyReceived(java.lang.String newQtyReceived)
Sets the number of items being received.
|
void |
setRaDetailId(java.lang.String newRaDetailId)
Sets the identifier of the record detail of the expected inventory.
|
void |
setRcptAvailId(java.lang.String newRcptAvailId)
Sets the identifier of the available receipt.
|
void |
setReceiptDate(java.lang.String newReceiptDate)
Sets the date the inventory was received.
|
void |
setReceiptId(java.lang.String newReceiptId)
Sets identifier of the new receipt.
|
void |
setReceiptType(java.lang.String newReceiptType)
Sets the type of receipt which indicates how this receipt was created.
|
void |
setRtnRcptDspId(java.lang.String newRtnRcptDspId)
Sets the disposition record identifier of the returned item.
|
void |
setSetCCurr(java.lang.String newSetCCurr)
Sets the currency of the
cost field. |
void |
setVendorId(java.lang.String newVendorId)
Sets the identifier of the vendor that supplied the inventory.
|
void |
setVersionSpcId(java.lang.String newVersionSpcId)
Sets the product version identifier of the item specified for receipt.
|
void |
validateParameters()
Checks the information of the receipt to be created.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
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
public static final java.lang.String COPYRIGHT
public void setAdjustmentComment(java.lang.String newAdjustmentComment)
newAdjustmentComment
- adjustment commentInventoryAdjustCmd.setAdjustmentComment(java.lang.String)
public void setInvAdjCodeId(java.lang.String newInvAdjCodeId)
ManageInventoryCmd
setInvAdjCodeId
in interface ManageInventoryCmd
newInvAdjCodeId
- adjustment type idInventoryAdjustCmd.setInvAdjCodeId(java.lang.String)
public java.lang.String getCatEntryId()
AdjustInventoryCmd.getCatEntryId()
public void setCatEntryId(java.lang.String catEntryId)
ManageInventoryCmd
setCatEntryId
in interface ManageInventoryCmd
catEntryId
- AdjustInventoryCmd.setCatEntryId(Long)
public void setFlagCheck(java.lang.String newFlagCheck)
setFlagCheck
in interface ManageInventoryCmd
newFlagCheck
- public void setFlagUpdate(java.lang.String newFlagUpdate)
setFlagUpdate
in interface ManageInventoryCmd
newFlagUpdate
- public void setInvadjustId(java.lang.String newInvadjustId)
newInvadjustId
- adjustment identifierpublic java.lang.String getComment1()
ManageInventoryCmd
getComment1
in interface ManageInventoryCmd
CreateReceiptCmd.getComment1()
,
setComment1(java.lang.String)
public java.lang.String getComment2()
ManageInventoryCmd
getComment2
in interface ManageInventoryCmd
CreateReceiptCmd.getComment2()
,
setComment2(java.lang.String)
public java.lang.String getCost()
ManageInventoryCmd
getCost
in interface ManageInventoryCmd
CreateReceiptCmd.getCost()
,
setCost(java.lang.String)
public java.lang.String getDistArrangId()
ManageInventoryCmd
getDistArrangId
in interface ManageInventoryCmd
CreateReceiptCmd.getDistArrangId()
,
setDistArrangId(java.lang.String)
public java.lang.String getFfmcenterId()
ManageInventoryCmd
getFfmcenterId
in interface ManageInventoryCmd
CreateReceiptCmd.getFfmcenterId()
,
setFfmcenterId(java.lang.String)
public java.lang.String getItemspcId()
ManageInventoryCmd
getItemspcId
in interface ManageInventoryCmd
CreateReceiptCmd.getItemspcId()
,
setItemspcId(java.lang.String)
public java.lang.String getMemberId()
ManageInventoryCmd
getMemberId
in interface ManageInventoryCmd
CreateReceiptCmd.getMemberId()
,
setMemberId(java.lang.String)
public java.lang.String getPartNumber()
ManageInventoryCmd
getPartNumber
in interface ManageInventoryCmd
CreateReceiptCmd.getPartNumber()
,
setPartNumber(java.lang.String)
public java.lang.String getQtyReceived()
ManageInventoryCmd
getQtyReceived
in interface ManageInventoryCmd
CreateReceiptCmd.getQtyReceived()
,
setQtyReceived(java.lang.String)
public java.lang.String getRaDetailId()
ManageInventoryCmd
getRaDetailId
in interface ManageInventoryCmd
CreateReceiptCmd.getRaDetailId()
,
setRaDetailId(java.lang.String)
public java.lang.String getRcptAvailId()
ManageInventoryCmd
getRcptAvailId
in interface ManageInventoryCmd
CreateReceiptCmd.getRcptAvailId()
,
setRcptAvailId(java.lang.String)
public java.lang.String getReceiptDate()
ManageInventoryCmd
getReceiptDate
in interface ManageInventoryCmd
CreateReceiptCmd.getReceiptDate()
,
setReceiptDate(java.lang.String)
public java.lang.String getReceiptId()
ManageInventoryCmd
getReceiptId
in interface ManageInventoryCmd
CreateReceiptCmd.getReceiptId()
,
setReceiptId(java.lang.String)
public java.lang.String getReceiptType()
ManageInventoryCmd
getReceiptType
in interface ManageInventoryCmd
CreateReceiptCmd.getReceiptType()
,
setReceiptType(java.lang.String)
public java.lang.String getRtnRcptDspId()
ManageInventoryCmd
getRtnRcptDspId
in interface ManageInventoryCmd
CreateReceiptCmd.getRtnRcptDspId()
,
setRtnRcptDspId(java.lang.String)
public java.lang.String getSetCCurr()
ManageInventoryCmd
cost
field.getSetCCurr
in interface ManageInventoryCmd
CreateReceiptCmd.getSetCCurr()
,
setSetCCurr(java.lang.String)
public java.lang.String getVendorId()
ManageInventoryCmd
getVendorId
in interface ManageInventoryCmd
CreateReceiptCmd.getVendorId()
,
setVendorId(java.lang.String)
public java.lang.String getVersionSpcId()
ManageInventoryCmd
getVersionSpcId
in interface ManageInventoryCmd
CreateReceiptCmd.getVersionSpcId()
,
setVersionSpcId(java.lang.String)
public void setComment1(java.lang.String newComment1)
ManageInventoryCmd
setComment1
in interface ManageInventoryCmd
newComment1
- generic comment, COMMENT1 propertygetComment1()
,
CreateReceiptCmd.setComment1(java.lang.String)
public void setComment2(java.lang.String newComment2)
ManageInventoryCmd
setComment2
in interface ManageInventoryCmd
newComment2
- quality comment, COMMENT2 propertygetComment2()
,
CreateReceiptCmd.setComment2(java.lang.String)
public void setCost(java.lang.String newCost)
ManageInventoryCmd
setCost
in interface ManageInventoryCmd
newCost
- cost of item, COST propertygetCost()
,
CreateReceiptCmd.setCost(java.math.BigDecimal)
public void setDistArrangId(java.lang.String newDistArrangId)
ManageInventoryCmd
setDistArrangId
in interface ManageInventoryCmd
newDistArrangId
- distribution arrangement identifier, DISTARRANG_ID propertygetDistArrangId()
,
CreateReceiptCmd.setDistArrangId(java.lang.Long)
public void setFfmcenterId(java.lang.String newFfmcenterId)
ManageInventoryCmd
setFfmcenterId
in interface ManageInventoryCmd
newFfmcenterId
- fulfillment center identifier, FFMCENTER_ID propertygetFfmcenterId()
,
CreateReceiptCmd.setFfmcenterId(java.lang.Integer)
public void setItemspcId(java.lang.String newItemspcId)
ManageInventoryCmd
setItemspcId
in interface ManageInventoryCmd
newItemspcId
- item specified identifier, ITEMSPC_ID propertygetItemspcId()
,
CreateReceiptCmd.setItemspcId(java.lang.Long)
public void setMemberId(java.lang.String newMemberId)
ManageInventoryCmd
setMemberId
in interface ManageInventoryCmd
newMemberId
- member identifier, MEMBER_ID propertygetMemberId()
,
CreateReceiptCmd.setMemberId(java.lang.Long)
public void setPartNumber(java.lang.String newPartNumber)
ManageInventoryCmd
setPartNumber
in interface ManageInventoryCmd
newPartNumber
- part number, PARTNUMBER propertygetPartNumber()
,
CreateReceiptCmd.setPartNumber(java.lang.String)
public void setQtyReceived(java.lang.String newQtyReceived)
ManageInventoryCmd
setQtyReceived
in interface ManageInventoryCmd
newQtyReceived
- quantity of received items, QTYRECEIVED propertygetQtyReceived()
,
CreateReceiptCmd.setQtyReceived(java.lang.Integer)
public void setRaDetailId(java.lang.String newRaDetailId)
ManageInventoryCmd
setRaDetailId
in interface ManageInventoryCmd
newRaDetailId
- record detail identifier, RADETAIL_ID propertygetRaDetailId()
,
CreateReceiptCmd.setRaDetailId(java.lang.Long)
public void setRcptAvailId(java.lang.String newRcptAvailId)
ManageInventoryCmd
setRcptAvailId
in interface ManageInventoryCmd
newRcptAvailId
- available receipt identifiergetRcptAvailId()
,
CreateReceiptCmd.setRcptAvailId(java.lang.Long)
public void setReceiptDate(java.lang.String newReceiptDate)
ManageInventoryCmd
setReceiptDate
in interface ManageInventoryCmd
newReceiptDate
- receipt date, RECEIPTDATE propertygetReceiptDate()
,
CreateReceiptCmd.setReceiptDate(java.sql.Timestamp)
public void setReceiptId(java.lang.String newReceiptId)
ManageInventoryCmd
setReceiptId
in interface ManageInventoryCmd
newReceiptId
- new receipt identifier.getReceiptId()
,
CreateReceiptCmd.setReceiptId(java.lang.Long)
public void setReceiptType(java.lang.String newReceiptType)
ManageInventoryCmd
setReceiptType
in interface ManageInventoryCmd
newReceiptType
- new receipt type, RECEIPTTYPE propertygetReceiptType()
,
CreateReceiptCmd.setReceiptType(java.lang.String)
public void setRtnRcptDspId(java.lang.String newRtnRcptDspId)
ManageInventoryCmd
setRtnRcptDspId
in interface ManageInventoryCmd
newRtnRcptDspId
- disposition record identifier, RTNRCPTDSP_ID propertygetRtnRcptDspId()
,
CreateReceiptCmd.setRtnRcptDspId(java.lang.Long)
public void setSetCCurr(java.lang.String newSetCCurr)
ManageInventoryCmd
cost
field.setSetCCurr
in interface ManageInventoryCmd
newSetCCurr
- currency, SETCCURR propertygetSetCCurr()
,
CreateReceiptCmd.setSetCCurr(java.lang.String)
public void setVendorId(java.lang.String newVendorId)
ManageInventoryCmd
setVendorId
in interface ManageInventoryCmd
newVendorId
- vendor identifier, VENDOR_ID propertygetVendorId()
,
CreateReceiptCmd.setVendorId(java.lang.Long)
public void setVersionSpcId(java.lang.String newVersionSpcId)
ManageInventoryCmd
setVersionSpcId
in interface ManageInventoryCmd
newVersionSpcId
- version identifier, VERSIONSPC_ID propertygetVersionSpcId()
,
CreateReceiptCmd.setVersionSpcId(java.lang.Long)
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
Checks the information of the receipt to be created. Make sure all the required parameters were passed in, or collected from somewhere. Fields required to be set beforehand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If mandatory parameters are not passed in, throw ECApplicationException
specifying _ERR_BAD_MISSING_CMD_PARAMETER, _ERR_DIDNT_SET_MERCHANTpublic void setAction(int action)
setAction
in interface ManageInventoryCmd
action
- public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException