com.ibm.commerce.inventory.commands

Class ExpectedInventoryRecordCreateCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • ExpectedInventoryRecordCreateCmdImpl

        public ExpectedInventoryRecordCreateCmdImpl()
    • Method Detail

      • getAddedItem

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

        public int getAddedSize()
        Returns the number of items included in the new expected inventory record.
        Returns:
        Quantity of expected items.
      • 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:
        Order quantity.
      • getRaDetailComment

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

        public java.lang.String getRaId()
        Returns the new expected inventory record identifier.
        Returns:
        Expected inventory record id.
      • getVendorId

        public java.lang.String getVendorId()
        Returns the vendor identifier.
        Returns:
        Vendor id.
      • setExpectedDate

        public void setExpectedDate(java.lang.String newExpectedDate)
        Sets the date the inventory is expected.
        Parameters:
        newExpectedDate - date expected
      • 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
      • setRaId

        public void setRaId(java.lang.String newRaId)
        Sets the new expected inventory record identifier.
        Parameters:
        newRaId - record id
      • checkForeignKeyViolation

        public void checkForeignKeyViolation()
                                      throws ECApplicationException
        Checks for foreign key violation. Looking for vendor id, expected inventory id, and fulfillment center id. Called by performExecute().
        Throws:
        ECApplicationException - Message _ERR_RECORD_NOT_FOUND to indicate which foreign or unique key is violated causing the record to not be found.
      • 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 created. ItemFulfillmentCenterAccessBean is called. 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.
        Parameters:
        itemspcId - item specification id Called by performExecute().
        Throws:
        ECSystemException - Create error, _ERR_CREATE_EXCEPTION
        ECSystemException - Finder error, _ERR_FINDER_EXCEPTION
        ECSystemException - Naming error, _ERR_NAMING_EXCEPTION Throw exception if the new row cannot be added.
        ECException