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
@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.