]> git.mxchange.org Git - jfinancials-lib.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 8 Apr 2020 15:41:52 +0000 (17:41 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 8 Apr 2020 15:41:52 +0000 (17:41 +0200)
- added updateReceipt() to remote interface

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java

index 9e9274a56f274c5398b04267081580892f6dd1b2..e06e29d3f3638ae6ca23b484be09f3f9ce67b9f8 100644 (file)
@@ -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.
+        * <p>
+        * @param receipt Receipt instance being updated
+        * <p>
+        * @return Updated receipt instance
+        * <p>
+        * @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.