com.ibm.commerce.orderitems.commands
Class OrderItemUpdateCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl
|
+--com.ibm.commerce.orderitems.commands.OrderItemUpdateCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderItemAddCmd, OrderItemUpdateCmd, Protectable
- Direct Known Subclasses:
- AdminOrderItemUpdateCmdImpl, RequisitionListItemUpdateCmdImpl
- public class OrderItemUpdateCmdImpl
- extends OrderItemBaseCmdImpl
- implements OrderItemUpdateCmd
Add products or items to the order list or update the
products and items in the existing order list.
This command can do all that OrderItemAdd command can do. In addition,
it can also update products and items in the existing order list.
This command accepts enumeration type of parameters.
That is, it accepts parameterName_i=parameterValue.
For example, to add three catalog entries with id 15, 16, and 17 to the OrderItems,
you can pass catEntryId_1=15&catEntryId_2=16&catEntryId_3=17 to the command.
If you call the individual set method to pass the above
parameters, you need to create a hashtable and add the following to the hashtable:
hashtable.put(new Integer(1), new String("15"));
hashtable.put(new Integer(2), new String("16"));
hashtable.put(new Integer(3), new String("17"));
then passed the hashtable to the method setCatEntryId(Hashtable).
The command will execute each enumeration group one by one. But the
order of execution is not guaranteed. So if you pass two orderItemId with the
same number, the result is unpredictable.
When updating the order item with qunatity = 0, this order item will be deleted.
If you delete the same order item twice in one transaction, it will throw a
remote exception.
View Task: RedirectView
Field Summary |
static java.lang.String |
COPYRIGHT
|
Fields inherited from class com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl |
CLASS_NAME, GENERATED_ORDERITEM, iATPParms, iCommandExecuted, ihsATPParmsDefaults, ihshAddress_id, ihshAttr_name, ihshAttr_value, ihshCatentry_id, ihshComment, ihshConfigurationId, ihshContract_id, ihshCorrelationGroup, ihshDescription, ihshField1, ihshField2, ihshKey, ihshMember_id, ihshOffer_id, ihshOrderitem_id, ihshOrderResourceList, ihshOutOrderItemId, ihshPart_number, ihshQuantity, ihshShipmode_id, ihshStoreResourceList, ihshUom, iList_id, iList_order_id, iNew_order_id, iNewQuantity, inItemSpecId, iOrder_desc, iOrderIdProperty, iOut_order_name, iOut_orderitem_name, iResolvedOrderIdList, iResolvedRequestProperties, iResourcelist, iUniqueOrderIdList, iUniqueOrderitemIdList, iUniqueStoreIdList, iValidInputPOrderValues, ivecComponentList, MANUAL_FULFILLMENT_CENTER, MANUAL_PRICE, NORMAL_ORDERITEM, STR_ADDRESS_ID, STR_ATTR_NAME, STR_ATTR_VALUE, STR_CATENTRY_ID, STR_COMMENT, STR_CONFIGURATION_ID, STR_CONTRACT_ID, STR_CORRELATION_GROUP, STR_DESCRIPTION, STR_FIELD1, STR_FIELD2, STR_INVALID_INPUT_ERROR_VIEW, STR_LIST_ID, STR_MEMBER_ID, STR_OFFER_ID, STR_ORDER_DESC, STR_ORDER_ID, STR_ORDERITEM_ID, STR_OUT_ORDER_NAME, STR_OUT_ORDERITEM_NAME, STR_PART_NUMBER, STR_QUANTITY, STR_SHIPMODE_ID, STR_STORE_ID, STR_UOM |
Methods inherited from class com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl |
checkBuyable, checkProductEntitlement, checkValidStatus, createOrder, getAddressId, getATPParms, getAttributeNVP, getCatEntryId, getComment, getConfigurationId, getContractId, getCorrelationGroup, getDescription, getField1, getField2, getItemSpecId, getMemberId, getNewOrderId, getNewOrderItemIds, getOfferId, getOrderDesc, getOrderId, getOrderIds, getOrderItemId, getOrderItemIds, getPartNumber, getQuantity, getResolvedRequestProperties, getResources, getRoundedQuantityAmount, getShipModeId, getTheUser, getTheUserId, getTradingId, getUOM, insertAddressId, insertItemSpecId, insertOrderItem, insertOrderItem, insertPartNumber, invalidateAllocation, isReadyToCallExecute, migrateInterestItemsToOrderItems, performExecute, reset, resolveOrderId, setAddressId, setATPParms, setAttrName, setAttrValue, setCatEntryId, setComment, setConfigurationId, setContractId, setCorrelationGroup, setDescription, setField1, setField2, setItemSpecId, setListId, setMemberId, setOfferId, setOrderDesc, setOrderId, setOrderItemId, setOutOrderItemName, setOutOrderName, setPartNumber, setQuantity, setQuantity, setRequestProperties, setShipmodeId, setTradingId, setUom, unLockOrder, updateAddressId, updateAllShippingAndAddress, updateComponentList, updateCorrelationGroup, updateCurrency, updateFulfillmentCenter, updateItemSpecId, updateOrderItem, updateOrderItem, updateOutOrderItemId, updateOutOrderItemName, updateOutOrderName, updatePrice, updateQuantity, updateResourceList, updateShipModeId, updateShippingAndAddress, validateParameters, validateTradingPaymentMethods |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.orderitems.commands.OrderItemUpdateCmd |
getOrderIds, getOrderItemIds, setAddressId, setAttrName, setAttrValue, setCatEntryId, setComment, setConfigurationId, setContractId, setCorrelationGroup, setDescription, setField1, setField2, setListId, setMemberId, setOfferId, setOrderDesc, setOrderId, setOrderItemId, setOutOrderItemName, setOutOrderName, setPartNumber, setQuantity, setShipmodeId, setTradingId, setUom |
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.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
OrderItemUpdateCmdImpl
public OrderItemUpdateCmdImpl()