com.ibm.commerce.inventory.commands

Class ExpectedInventoryRecordUpdateCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • ExpectedInventoryRecordUpdateCmdImpl

        public ExpectedInventoryRecordUpdateCmdImpl()
    • Method Detail

      • getAction

        public java.lang.String getAction()
        Returns the action to be performed on the expected inventory record detail.
        Returns:
        The action "add" "change" or "remove".
      • getAddedItem

        public java.util.Vector getAddedItem()
        Returns the list of items added to the expected inventory record.
        Returns:
        List of items added.
      • getAddedSize

        public int getAddedSize()
        Returns the number of items added to the expected inventory record.
        Returns:
        Quantity added.
      • getChangedItem

        public java.util.Vector getChangedItem()
        Returns the list of items updated in the expected inventory record.
        Returns:
        List of items changed.
      • getChangedSize

        public int getChangedSize()
        Returns the number of items updated in the expected inventory record.
        Returns:
        Quantity changed.
      • getRemovedItem

        public java.util.Vector getRemovedItem()
        Returns the list of items deleted from the expected inventory record.
        Returns:
        List of items removed.
      • getRemovedSize

        public int getRemovedSize()
        Returns the number of items deleted from the expected inventory record.
        Returns:
        Quantity removed.
      • getExpectedDate

        public java.lang.String getExpectedDate()
        Returns the date the inventory is expected.
        Returns:
        Expected date.
      • getExternalId

        public java.lang.String getExternalId()
        Returns the external identifier.
        Returns:
        External id.
      • getFfmcenterId

        public java.lang.String getFfmcenterId()
        Returns the fulfillment center identifier.
        Returns:
        Fulfillment center id.
      • getItemspcId

        public java.lang.String getItemspcId()
        Returns the item identifier.
        Returns:
        Item id.
      • getOrderDate

        public java.lang.String getOrderDate()
        Returns the date this order is created with the vendor.
        Returns:
        Order create date.
      • getQtyOrdered

        public java.lang.String getQtyOrdered()
        Returns quantity ordered from vendor.
        Returns:
        Quantity.
      • getRaDetailComment

        public java.lang.String getRaDetailComment()
        Returns the comment.
        Returns:
        Comment.
      • getRaDetailId

        public java.lang.String getRaDetailId()
        Returns the new expected inventory record detail identifier.
        Returns:
        Record detail id.
      • getRaId

        public java.lang.String getRaId()
        Returns the expected inventory record identifier.
        Returns:
        Record id.
      • setAction

        public void setAction(java.lang.String newAction)
        Sets the action to be performed on the expected inventory record detail.
        • add
        • change
        • remove
        Parameters:
        newAction - action
      • setExpectedDate

        public void setExpectedDate(java.lang.String newExpectedDate)
        Sets the date the inventory is expected.
        Parameters:
        newExpectedDate - expected date
      • setFfmcenterId

        public void setFfmcenterId(java.lang.String newFfmcenterId)
        Sets the fulfillment center identifier.
        Parameters:
        newFfmcenterId - fulfillment center id
      • setItemspcId

        public void setItemspcId(java.lang.String newItemspcId)
        Sets item identifier.
        Parameters:
        newItemspcId - item id
      • setQtyOrdered

        public void setQtyOrdered(java.lang.String newQtyOrdered)
        Sets quantity ordered from vendor.
        Parameters:
        newQtyOrdered - quantity
      • setRaDetailComment

        public void setRaDetailComment(java.lang.String newRaDetailComment)
        Sets the comment.
        Parameters:
        newRaDetailComment - comment
      • setRaDetailId

        public void setRaDetailId(java.lang.String newRaDetailId)
        Sets the new expected inventory record detail identifier.
        Parameters:
        newRaDetailId - record detail id
      • getResources

        public AccessVector getResources()
                                  throws ECException
        Gets the access vector accessed by this command.
        Specified by:
        getResources in interface ECCommand
        Overrides:
        getResources in class AbstractECTargetableCommand
        Returns:
        A vector of resource action pairs.

        Throws:
        ECException -
        • ECSystemException Create error, _ERR_CREATE_EXCEPTION
        • ECSystemException Finder error, _ERR_FINDER_EXCEPTION
        • ECSystemException Naming error, _ERR_NAMING_EXCEPTION
        • ECSystemException Remote error, _ERR_REMOTE_EXCEPTION
      • performExecute

        public void performExecute()
                            throws ECException
        Performs the execution of updating an expected inventory record. The expected inventory record detail cannot be updated or deleted if there is any quantity received. It is received from the vendor for this expected inventory record detail.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECSystemException - Create error, _ERR_CREATE_EXCEPTION
        ECSystemException - Finder error, _ERR_FINDER_EXCEPTION
        ECSystemException - Naming error, _ERR_NAMING_EXCEPTION
        ECException
      • createItemffmctr

        public void createItemffmctr(java.lang.Long itemspcId)
                              throws ECException
        Adds a new row in itemffmctr table for this item, store and fulfillment center. This is done if row does not yet exist when the expected inventory record is updated. This row will be used to record information about reserved quantities, amount on backorder. And it is also used to record amount allocated to backorders for this item owned by this store at this fulfillment center. Called by performExecute().
        Parameters:
        itemspcId - item specification id
        Throws:
        ECException - If the row cannot be created:
        • ECSystemException Create error, _ERR_CREATE_EXCEPTION
        • ECSystemException Finder error, _ERR_FINDER_EXCEPTION
        • ECSystemException Naming error, _ERR_NAMING_EXCEPTION
        • ECSystemException Remote error, _ERR_REMOTE_EXCEPTION