]> git.mxchange.org Git - jfinancials-lib.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 24 Apr 2020 15:10:21 +0000 (17:10 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 24 Apr 2020 15:10:21 +0000 (17:10 +0200)
-  added business method updateReceiptItem()

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

index 2e52f8e42e3a0291ffe8992e0d66499012dc27b9..72be41d7f1eada19a6576a0581e2f404da25de12 100644 (file)
@@ -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.
+        * <p>
+        * @param receiptItem Receipt item instance to update
+        * <p>
+        * @return Updated receipt item instance
+        * <p>
+        * @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.