From 0f721c9ad64228a788665d65b865e024c8c50208 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 24 Apr 2020 17:10:21 +0200 Subject: [PATCH] Don't cherry-pick: - added business method updateReceiptItem() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- ...FinancialAdminReceiptItemSessionBeanRemote.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. -- 2.39.5