com.ibm.commerce.orderitems.commands
Class OrderItemUpdateCmdImpl
java.lang.Object
CacheableCommandImpl
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:
- 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
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl |
cachedCurrentCatEntryAB, CONTINUE_FALSE, CONTINUE_TRUE, GENERATED_ORDERITEM, iATPParms, iCommandExecuted, iContinue, ihsATPParmsDefaults, ihsCatalogEntryAccessBeans, ihshAddress_id, ihshAttr_name, ihshAttr_value, ihshCatentry_id, ihshComment, ihshConfigurationId, ihshContract_id, ihshCorrelationGroup, ihshDescription, ihshExpandConfigurationId, 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, iOrderComment, iOrderIdProperty, iOrderItemIndex, iOut_order_name, iOut_orderitem_name, iResolvedOrderIdList, iResolvedRequestProperties, iResourcelist, iSavedItemSpecId, isetDeletedOrderitemIds, iUniqueOrderIdList, iUniqueOrderitemIdList, iUniqueStoreIdList, iValidInputPOrderValues, ivecComponentList, MANUAL_FULFILLMENT_CENTER, MANUAL_PRICE, NORMAL_ORDERITEM, QUOTATION_ORDERITEM, STR_ADDRESS_ID, STR_ATTR_NAME, STR_ATTR_VALUE, STR_CATENTRY_ID, STR_COMMENT, STR_CONFIGURATION_ID, STR_CONTINUE, STR_CONTRACT_ID, STR_CORRELATION_GROUP, STR_DESCRIPTION, STR_EXPAND_CONFIGURATION_ID, STR_FIELD1, STR_FIELD2, STR_INVALID_INPUT_ERROR_VIEW, STR_LIST_ID, STR_MEMBER_ID, STR_OFFER_ID, STR_ORDER_COMMENT, 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, createOrderItem, getAddressId, getATPParms, getAttributeNVP, getCatalogEntryAccessBean, getCatEntryId, getComment, getConfigurationId, getContinue, getContractId, getCorrelationGroup, getDeletedOrderItemIds, getDescription, getExpandConfigurationId, getField1, getField2, getItemSpecId, getMemberId, getNewOrderId, getNewOrderItemIds, getOfferId, getOrderComment, getOrderDesc, getOrderId, getOrderIds, getOrderItemId, getOrderItemIds, getPartNumber, getQuantity, getResolvedOrderId, getResolvedRequestProperties, getResources, getRoundedQuantityAmount, getShipModeId, getTheUser, getTheUserId, getTradingId, getUniqueOrderId, getUniqueOrderItemId, getUOM, insertAddressId, insertItemSpecId, insertOrderItem, insertOrderItem, insertOrderItems, insertPartNumber, invalidateAllocation, migrateInterestItemsToOrderItems, orderItemAdd, orderItemUpdate, performExecute, reset, resolveOrderId, resolveSku, setAddressId, setATPParms, setAttrName, setAttrValue, setCatEntryId, setComment, setConfigurationId, setContinue, setContractId, setCorrelationGroup, setDescription, setExpandConfigurationId, setField1, setField2, setItemSpecId, setListId, setMemberId, setOfferId, setOrderComment, setOrderDesc, setOrderId, setOrderItemId, setOutOrderItemName, setOutOrderName, setPartNumber, setQuantity, setQuantity, setRequestProperties, setResolvedOrderId, setShipmodeId, setTradingId, setUom, unLockOrder, updateAddressId, updateAddressId, updateAddressId, updateAllShippingAndAddress, updateComponentList, updateCorrelationGroup, updateCurrency, updateFulfillmentCenter, updateItemSpecId, updateOrder, updateOrderItem, updateOrderItem, updateOutOrderItemId, updateOutOrderItemName, updateOutOrderName, updatePrice, updatePrice, updatePrice, updateQuantity, updateResourceList, updateShipModeId, updateShipModeId, updateShipModeId, updateShippingAndAddress, validateParameters, validateTradingPaymentMethods |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.orderitems.commands.OrderItemUpdateCmd |
getDeletedOrderItemIds, getNewOrderItemIds, getOrderIds, getOrderItemIds, setAddressId, setAttrName, setAttrValue, setCatEntryId, setComment, setConfigurationId, setContinue, setContractId, setCorrelationGroup, setDescription, setExpandConfigurationId, setField1, setField2, setListId, setMemberId, setOfferId, setOrderComment, setOrderDesc, setOrderId, setOrderItemId, setOutOrderItemName, setOutOrderName, setPartNumber, setQuantity, setShipmodeId, setTradingId, setUom |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, 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, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
OrderItemUpdateCmdImpl
public OrderItemUpdateCmdImpl()
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.