public class OrderItemStatusCmdImpl extends TaskCommandImpl implements OrderItemStatusCmd
OrderItemStatus command (see interface for a detailed
description of the OrderItemStatus command).| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
static java.lang.String |
itemCmdName
The command name that handles the status updates for the items belonging to an order.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
OrderItemStatusCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createOrderItemStatus()
This method creates a new entry in the ORDISTAT table based on the given information received through
the request properties.
|
boolean |
doPostProcess(TypedProperty aRequestProperty)
This method performs a verification check after the command executes.
|
boolean |
doPreProcess(TypedProperty aRequestProperty)
This method performs a verification check before the command executes.
|
boolean |
doProcess(TypedProperty aRequestProperty)
This method determines whether this order item is new or not.
|
boolean |
isReadyToCallExecute()
This method indicates whether the command is ready to execute.
|
void |
performExecute()
This method performs a precondition check on the request properties.
|
void |
propertySet(OrderFulfillmentItemStatusAccessBean ab,
TypedProperty aProp)
This method fills the OrderFulfillmentItemStatusAccessBean object with the values that are found
in the request properties.
|
void |
setOrderItemStatusProperties(TypedProperty aRequestProperties)
This method binds the parameters received by the request properties to variables that are used
for determining the order item to update.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, 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, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT
public static final java.lang.String itemCmdName
public void createOrderItemStatus()
throws ECException
ECException - Raised with messages _ERR_CREATE_EXCEPTION, _ERR_FINDER_EXCEPTION,
_ERR_NAMING_EXCEPTION, _ERR_REMOTE_EXCEPTION when an exception is caught.public boolean doPostProcess(TypedProperty aRequestProperty) throws ECException
doPostProcess in interface OrderItemStatusCmdaRequestProperty - Parameters used to aid the checkingECExceptionpublic boolean doPreProcess(TypedProperty aRequestProperty) throws ECException
doPreProcess in interface OrderItemStatusCmdaRequestProperty - Parameters used to aid the checkingECExceptionpublic boolean doProcess(TypedProperty aRequestProperty) throws ECException
doProcess in interface OrderItemStatusCmdaRequestProperty - Input parametersECException - Raised when the update failsupdateORderItemStatusVersion() and
createOrderItemStatus()public boolean isReadyToCallExecute()
isReadyToCallExecute in interface com.ibm.websphere.command.CommandisReadyToCallExecute in class AbstractECTargetableCommandpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - Raised by doPreProcess, doProcess, or doPostProcess public void propertySet(OrderFulfillmentItemStatusAccessBean ab, TypedProperty aProp) throws ECException
ab - The order fulfillment item status access bean to take the new dataaProp - Property containing data to be moved to the access beanECException - Raised with messages _ERR_OS_INVALID_NUMERIC, _ERR_OS_INVALID_TIMESTAMP,
_ERR_CREATE_EXCEPTION, _ERR_FINDER_EXCEPTION, _ERR_REMOTE_EXCEPTION,
_ERR_GENERIC, if the monetary amounts are not valid numerical values,
timestamp is not valid, or when the EJB throws an exception.public void setOrderItemStatusProperties(TypedProperty aRequestProperties) throws ECException
setOrderItemStatusProperties in interface OrderItemStatusCmdaRequestProperty - name-value pair containg the input parameters
key orderId is mapped to variable iOrderId
key merchantOrderNumber is mapped to iMerchantOrderNumber
key orderItemId is mapped to variable iOrderItemId
key merchantItemNumber is mapped to variable iMerchantitemNumberECException - Raised with messages _ERR_LOOKUP_ORDERITEM_WITH_REFNUM,
_ERR_INVALID_ORDER_REFNUM if the order item ID, or order
ID is not valid.