Class DeallocateExistingInventoryCmdImpl

    • Field Detail


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

      • DeallocateExistingInventoryCmdImpl

        public DeallocateExistingInventoryCmdImpl()
    • Method Detail

      • getOrderItem

        public OrderItemAccessBean getOrderItem()
        Deprecated. Will be changed to protected.
        Gets the orderitem previously set by setOrderItem method, or null.
        The order item, or null.
      • performExecute

        public void performExecute()
                            throws ECException
        Performs the actual business logic of the command.

        • If the order item is currently allocated, the amount allocated is returned to existing inventory. The order item is updated to indicate that it is no longer allocated.
        • Otherwise, the order item is not changed.

        This default implementation calls the reverseinventory database stored procedure.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
      • setOrderItem

        public void setOrderItem(OrderItemAccessBean newOrderItem)
        Sets the order item for which existing inventory is to be deallocated.
        Specified by:
        setOrderItem in interface DeallocateExistingInventoryCmd
        newOrderItem - the order item for which existing inventory is to be deallocated.