From: Roland Häder Date: Fri, 24 Apr 2020 15:10:21 +0000 (+0200) Subject: Don't cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f721c9ad64228a788665d65b865e024c8c50208;p=jfinancials-lib.git Don't cherry-pick: - added business method updateReceiptItem() Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java index 2e52f8e..72be41d 100644 --- a/src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java +++ b/src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java @@ -19,6 +19,7 @@ package org.mxchange.jfinancials.model.receipt_item; import java.io.Serializable; import javax.ejb.Remote; import org.mxchange.jfinancials.exceptions.receipt_item.ReceiptItemAlreadyAddedException; +import org.mxchange.jfinancials.exceptions.receipt_item.ReceiptItemNotFoundException; /** * A remote interface for administrative EJBs for receipt items @@ -28,6 +29,19 @@ import org.mxchange.jfinancials.exceptions.receipt_item.ReceiptItemAlreadyAddedE @Remote public interface FinancialAdminReceiptItemSessionBeanRemote extends Serializable { + /** + * Updates given receipt item instance in database. If the receipt item is + * not found, an exception will be thrown. + *

+ * @param receiptItem Receipt item instance to update + *

+ * @return Updated receipt item instance + *

+ * @throws ReceiptItemNotFoundException If the given receipt item instance + * was not found. + */ + BillableReceiptItem updateReceiptItem (final BillableReceiptItem receiptItem) throws ReceiptItemNotFoundException; + /** * Adds given receipt item and returns the updated version. If the receipt * item has already been found, a proper exception is being thrown.