com.ibm.commerce.fulfillment.commands

Class DeallocateExpectedInventoryCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • DeallocateExpectedInventoryCmdImpl

        public DeallocateExpectedInventoryCmdImpl()
    • Method Detail

      • getOrderItem

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

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

        Behaviour
        • If the order item is currently backordered, the amount backordered is returned to expected inventory. The order item is updated to indicate that it is no longer backordered.
        • 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 com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • setOrderItem

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