From: Roland Häder Date: Thu, 26 Apr 2018 21:31:18 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b440b821ba998d861d3594f0670d5e96d4e155e;p=jproduct-lib.git Continued: - added business method for updating product instances Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java index 91fcc6f..6efeea5 100644 --- a/src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java @@ -19,6 +19,7 @@ package org.mxchange.jproduct.model.product; import java.io.Serializable; import javax.ejb.Remote; import org.mxchange.jproduct.exceptions.product.ProductAlreadyAddedException; +import org.mxchange.jproduct.exceptions.product.ProductNotFoundException; /** * Product interface for "ADMIN" role @@ -28,6 +29,17 @@ import org.mxchange.jproduct.exceptions.product.ProductAlreadyAddedException; @Remote public interface AdminProductSessionBeanRemote extends Serializable { + /** + * Updates given product instance + *

+ * @param product Product instance to be updated + *

+ * @return Updated instance + *

+ * @throws ProductNotFoundException If product was not found + */ + Product updateProductData (final Product product) throws ProductNotFoundException; + /** * Adds given product data from request to database *