From d0e62e452d4f1fcf1ae4f2c8123a38f77db24d5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 15 Oct 2017 22:58:49 +0200 Subject: [PATCH] Continued: - removed findById() as this has been moved to WAR project (and later Swing) for performance reasons MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../model/category/CategorySessionBeanRemote.java | 14 -------------- .../model/product/ProductSessionBeanRemote.java | 14 -------------- 2 files changed, 28 deletions(-) diff --git a/src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java b/src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java index 468adf5..2f991b5 100644 --- a/src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java @@ -19,7 +19,6 @@ package org.mxchange.jproduct.model.category; import java.io.Serializable; import java.util.List; import javax.ejb.Remote; -import org.mxchange.jproduct.exceptions.category.CategoryNotFoundException; /** * A remote-call interface for the shop @@ -29,19 +28,6 @@ import org.mxchange.jproduct.exceptions.category.CategoryNotFoundException; @Remote public interface CategorySessionBeanRemote extends Serializable { - /** - * Returns a category instance (entity) for given primary key. If not found, - * a proper exception is thrown. - *

- * @param categoryId Category id (primary key) - *

- * @return Category entity matching to primary key - *

- * @throws CategoryNotFoundException If a category with given primary key - * could not be found - */ - Category findCategoryById (final Long categoryId) throws CategoryNotFoundException; - /** * Some "getter" for a linked list of all categories *

diff --git a/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java index 109323c..f3ff691 100644 --- a/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java @@ -19,7 +19,6 @@ package org.mxchange.jproduct.model.product; import java.io.Serializable; import java.util.List; import javax.ejb.Remote; -import org.mxchange.jproduct.exceptions.product.ProductNotFoundException; /** * An interface for non-administrative purposes @@ -29,19 +28,6 @@ import org.mxchange.jproduct.exceptions.product.ProductNotFoundException; @Remote public interface ProductSessionBeanRemote extends Serializable { - /** - * Returns a product instance (entity) for given primary key. If not found, - * a proper exception is thrown. - *

- * @param productId Product id (primary key) - *

- * @return Product entity matching to primary key - *

- * @throws ProductNotFoundException If a product with given primary key - * could not be found - */ - Product findProductById (final Long productId) throws ProductNotFoundException; - /** * Returns a list of all products *

-- 2.39.5