java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.messaging.commands.OrderItemStatusCmdImpl
The implementation of the OrderItemStatus command (see interface for a detailed description of the OrderItemStatus command)
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The internal copyright field. |
protected
java.lang.String |
iMerchantItemNumber The merchant order item number |
protected
java.lang.String |
iMerchantOrderNumber The merchant order number |
protected
java.lang.Long |
iOrderId The order id identifying this order. |
protected
java.lang.Long |
iOrderItemId The order item id identifying this order item. |
static java.lang.String |
itemCmdName The command name that handles the status updates for the items belonging to an order. |
protected
TypedProperty |
oiProp The order item property for this order item. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.messaging.commands. OrderItemStatusCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
OrderItemStatusCmdImpl() |
Method Summary | |
---|---|
void |
createOrderItemStatus() Creates a new entry in the ORDISTAT table based the the given information that is received through the request properties. |
boolean |
doPostProcess(
TypedProperty aRequestProperty) Performs a verification check after the command executes. |
boolean |
doPreProcess(
TypedProperty aRequestProperty) Performs a verification check before the command executes. |
boolean |
doProcess(
TypedProperty aRequestProperty) Determine whether this order item is new or not. |
boolean |
isReadyToCallExecute() Indicates whether the command is ready to execute. |
void |
performExecute() Performs a pre condition check on the request properties and if the pre condition check is ok, the business logic will be performed followed by a post condition check to ensure integrity is maintained. |
void |
propertySet(
OrderFulfillmentItemStatusAccessBean ab,
TypedProperty aProp) Fills the OrderFulfillmentItemStatusAccessBean object with the values that are found in the request properties. |
void |
setOrderItemStatusProperties(
TypedProperty aRequestProperties) Binds the parameters received by the request properties to variables that are used for determining the order item to updated. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String itemCmdName
protected TypedProperty oiProp
protected java.lang.Long iOrderId
protected java.lang.String iMerchantOrderNumber
protected java.lang.Long iOrderItemId
protected java.lang.String iMerchantItemNumber
Constructor Detail |
---|
public OrderItemStatusCmdImpl()
Method Detail |
---|
public void createOrderItemStatus() throws ECException
ECException
- Raised with messages _ERR_CREATE_EXCEPTION, _ERR_FINDER_EXCEPTION,
_ERR_NAMING_EXCEPTION, _ERR_REMOTE_EXCEPTION when the ejb catches an
exception.public boolean doPostProcess(TypedProperty aRequestProperty) throws ECException
doPostProcess
in interface
OrderItemStatusCmd
aRequestProperty
- Parameters used to aid the checkingECException
public boolean doPreProcess(TypedProperty aRequestProperty) throws ECException
doPreProcess
in interface
OrderItemStatusCmd
aRequestProperty
- Parameters used to aid the checkingECException
public boolean doProcess(TypedProperty aRequestProperty) throws ECException
doProcess
in interface
OrderItemStatusCmd
aRequestProperty
- Input parametersECException
- Raised when the update failsupdateORderItemStatusVersion()
and
createOrderItemStatus()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- 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
OrderItemStatusCmd
ECException
- Raised with messages _ERR_LOOKUP_ORDERITEM_WITH_REFNUM,
_ERR_INVALID_ORDER_REFNUM if the ordier item id, or order id is not
valid.