com.ibm.commerce.fulfillment.commands

Class DeallocateExistingInventoryCmdImpl

    • Field Detail

      • COPYRIGHT

        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.
        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 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 com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • setOrderItem

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