Class OrderItemUpdateCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderItemAddCmd, OrderItemUpdateCmd, Protectable,,,,,,
    Direct Known Subclasses:
    AdminOrderItemUpdateCOCmdImpl, 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 quantity = 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 Detail


        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrderItemUpdateCmdImpl

        public OrderItemUpdateCmdImpl()