From 385612bdb4ef3e4c349c27e2fe734c2fe79ea37d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 8 Apr 2020 17:41:52 +0200 Subject: [PATCH] Continued: - added updateReceipt() to remote interface MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../FinancialAdminReceiptSessionBeanRemote.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java index 9e9274a..e06e29d 100644 --- a/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java +++ b/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java @@ -19,6 +19,7 @@ package org.mxchange.jfinancials.model.receipt; import java.io.Serializable; import javax.ejb.Remote; import org.mxchange.jfinancials.exceptions.receipt.ReceiptAlreadyAddedException; +import org.mxchange.jfinancials.exceptions.receipt.ReceiptNotFoundException; /** * A remote interface for administrative EJBs for receipts @@ -28,6 +29,17 @@ import org.mxchange.jfinancials.exceptions.receipt.ReceiptAlreadyAddedException; @Remote public interface FinancialAdminReceiptSessionBeanRemote extends Serializable { + /** + * Updates given receipt in database and returns an updated version. + *

+ * @param receipt Receipt instance being updated + *

+ * @return Updated receipt instance + *

+ * @throws ReceiptNotFoundException If receipt instance was not found + */ + BillableReceipt updateReceipt (final BillableReceipt receipt) throws ReceiptNotFoundException; + /** * Adds given receipt and returns the updated version. If the receipt has * already been found, a proper exception is being thrown. -- 2.39.5