com.ibm.commerce.inventory.commands

Interface MakeReceiptAvailableCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    MakeReceiptAvailableCmdImpl


    public interface MakeReceiptAvailableCmd
    extends TaskCommand
    Makes a receipt available to the distribution arrangement.

    This is done by inserting a row into rcptavail table associating the receipt with the distribution arrangement.

    The distribution arrangement will have a picking method of either LIFO or FIFO. If the picking method of the distribution arrangement is FIFO, the precedence of the rcptavail row will be MAX(precedence)+1. If the picking method of the distribution arrangement is LIFO, the precedence of the rcptavail row will be MIN(precedence)-1. If there are no rows in the rcptavail table, the precedence of the rcptavail row will be 1.

    This task command requires to have the store id set in the command context.

    Input Parameters

    distArrangId
    Identifier of the distribution arrangement that have access to this received inventory.
    itemspcId
    Identifier of the received item. This will be used to find the distribution arrangement if distArrangId is not provided.
    receiptId
    Return the identifier of the new receipt.

    Output Parameters

    rcptAvailId
    Returns the available receipt identifier.

    Exceptions

    When the required fields are missing or not in the right data type, this command will throw exception to indicate which field is missing or bad.

    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of this interface is "com.ibm.commerce.inventory.commands.MakeReceiptAvailableCmd".
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation class is "com.ibm.commerce.inventory.commands.MakeReceiptAvailableCmdImpl".
        See Also:
        Constant Field Values
    • Method Detail

      • getDistArrangId

        java.lang.Long getDistArrangId()
        Returns distribution arrangement identifier.
        Returns:
        Distribution arrangement id.
        See Also:
        setDistArrangId(java.lang.Long)
      • getItemspcId

        java.lang.Long getItemspcId()
        Return item identifier.
        Returns:
        Item specified identifier.
        See Also:
        setItemspcId(java.lang.Long)
      • getRcptAvailId

        java.lang.Long getRcptAvailId()
        Return available receipt identifier.
        Returns:
        Available receipt identifier.
        See Also:
        setRcptAvailId(java.lang.Long)
      • getReceiptId

        java.lang.Long getReceiptId()
        Return the receipt identifier.
        Returns:
        Receipt identifier.
        See Also:
        setReceiptId(java.lang.Long)
      • setDistArrangId

        void setDistArrangId(java.lang.Long newDistArrangId)
        Set distribution arrangement identifier.
        Parameters:
        newDistArrangId - distribution arrangement id
        See Also:
        getDistArrangId()
      • setItemspcId

        void setItemspcId(java.lang.Long newItemspcId)
        Set item identifier.
        Parameters:
        newItemspcId - item specified identifier
        See Also:
        getItemspcId()
      • setRcptAvailId

        void setRcptAvailId(java.lang.Long newRcptAvailId)
        Set available receipt identifier.
        Parameters:
        newRcptAvailId - available receipt identifier
        See Also:
        getRcptAvailId()
      • setReceiptId

        void setReceiptId(java.lang.Long newReceiptId)
        Set the receipt identifier.
        Parameters:
        newReceiptId - receipt identifier
        See Also:
        setReceiptId(java.lang.Long)