|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.inventory.commands.ExpectedInventoryRecordCreateCmdImpl
Create an expected inventory record.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
Fields inherited from interface com.ibm.commerce.inventory.commands.ExpectedInventoryRecordCreateCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
ExpectedInventoryRecordCreateCmdImpl()
|
Method Summary | |
protected void |
checkEIRDetailException()
This method checks if the detailed information about items on the expected inventory record are missing or not in the right data type. |
void |
checkForeignKeyViolation()
This method checks for foreign key violation. |
protected void |
checkIllegalArgumentException()
This method checks if the timestamp fields are not in the right timestamp format. |
protected void |
checkNumberFormatException()
This method checks if the numeric fields are not in the right numeric format. |
protected void |
checkParametersException()
This method checks if the required fields are missing or not in the right data type. |
void |
createItemffmctr(java.lang.Long itemspcId)
This method adds a new row in itemffmctr table for this item, store and fulfillment center if row does not yet exist when the expected inventory record is created. |
java.util.Vector |
getAddedItem()
Return the list of items included in the new expected inventory record. |
int |
getAddedSize()
Return the number of items included in the new expected inventory record. |
java.lang.String |
getExpectedDate()
Return the date the inventory is expected. |
java.lang.String |
getExternalId()
Return the external identifier. |
java.lang.String |
getFfmcenterId()
Return the fulfillment center identifier. |
java.lang.String |
getItemspcId()
Return the item identifier. |
java.lang.String |
getOrderDate()
Return the date this order is created with the vendor. |
java.lang.String |
getQtyOrdered()
Return quantity ordered from vendor. |
java.lang.String |
getRaDetailComment()
Return the comment. |
java.lang.String |
getRaId()
Return the new expected inventory record identifier. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
java.lang.String |
getVendorId()
Return the vendor identifier. |
protected void |
handleSubmitError(ECException e)
This method constructs and returns the error message. |
void |
performExecute()
This method performs the execution of creating an expected inventory record. |
void |
setAddedItem(java.util.Vector newAddedItem)
Set the list of items included in the new expected inventory. |
void |
setAddedSize(java.lang.String newAddedSize)
Set the number of items included in the new expected inventory record. |
void |
setExpectedDate(java.lang.String newExpectedDate)
Set the date the inventory is expected. |
void |
setExternalId(java.lang.String newExternalId)
Set the external identifier. |
void |
setFfmcenterId(java.lang.String newFfmcenterId)
Set the fulfillment center identifier. |
void |
setItemspcId(java.lang.String newItemspcId)
Set item identifier. |
void |
setOrderDate(java.lang.String newOrderDate)
Set the date this order is created with the vendor. |
void |
setQtyOrdered(java.lang.String newQtyOrdered)
Set quantity ordered from vendor. |
void |
setRaDetailComment(java.lang.String newRaDetailComment)
Set the comment. |
void |
setRaId(java.lang.String newRaId)
Set the new expected inventory record identifier. |
void |
setVendorId(java.lang.String newVendorId)
Set the vendor identifier. |
void |
validateParameters()
This method gets the information of expected inventory record to be created and sets the information into the command local variable. |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public ExpectedInventoryRecordCreateCmdImpl()
Method Detail |
protected void checkEIRDetailException() throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw ECApplicationException to indicate which field is missing or bad.public void checkForeignKeyViolation() throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw ECApplicationException to indicate which foreign or unique key is
violated.protected void checkIllegalArgumentException() throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw ECApplicationException to indicate which field is bad.protected void checkNumberFormatException() throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw ECApplicationException to indicate which field is bad.protected void checkParametersException() throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw ECApplicationException to indicate which field is missing or bad.public void createItemffmctr(java.lang.Long itemspcId) throws ECException
com.ibm.commerce.exception.ECException.
- Throw ECException if the new row cannot be added.public java.util.Vector getAddedItem()
public int getAddedSize()
public java.lang.String getExpectedDate()
public java.lang.String getExternalId()
public java.lang.String getFfmcenterId()
public java.lang.String getItemspcId()
public java.lang.String getOrderDate()
public java.lang.String getQtyOrdered()
public java.lang.String getRaDetailComment()
public java.lang.String getRaId()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
public java.lang.String getVendorId()
protected void handleSubmitError(ECException e) throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw ECApplicationException with the newly constructed message.public void performExecute() throws ECException
performExecute
in interface ECCommand
ECException
- public void setAddedItem(java.util.Vector newAddedItem)
setAddedItem
in interface ExpectedInventoryRecordCreateCmd
newAddedItem
- java.util.Vectorpublic void setAddedSize(java.lang.String newAddedSize)
setAddedSize
in interface ExpectedInventoryRecordCreateCmd
newAddedSize
- intpublic void setExpectedDate(java.lang.String newExpectedDate)
newExpectedDate
- java.lang.Stringpublic void setExternalId(java.lang.String newExternalId)
setExternalId
in interface ExpectedInventoryRecordCreateCmd
newExternalId
- java.lang.Stringpublic void setFfmcenterId(java.lang.String newFfmcenterId)
newFfmcenterId
- java.lang.Stringpublic void setItemspcId(java.lang.String newItemspcId)
newItemspcId
- java.lang.Stringpublic void setOrderDate(java.lang.String newOrderDate)
setOrderDate
in interface ExpectedInventoryRecordCreateCmd
newOrderDate
- java.lang.Stringpublic void setQtyOrdered(java.lang.String newQtyOrdered)
newQtyOrdered
- java.lang.Stringpublic void setRaDetailComment(java.lang.String newRaDetailComment)
newRaDetailComment
- java.lang.Stringpublic void setRaId(java.lang.String newRaId)
newRaId
- java.lang.Stringpublic void setVendorId(java.lang.String newVendorId)
setVendorId
in interface ExpectedInventoryRecordCreateCmd
newVendorId
- java.lang.Stringpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
com.ibm.commerce.exception.ECApplicationException.
- If the
XMLObject cannot be parsed as expected, throw ECApplicationException.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |