From: Roland Haeder Date: Wed, 23 Sep 2015 12:46:35 +0000 (+0200) Subject: Continued with JPA: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=33f3963878d162d081a0608f92bf5776f48ac08e;p=jshop-lib.git Continued with JPA: - removed QueryNotExecutedException as this was for SQL queries - used List and not Deque because the JPA only returns List (no type!) - updated jcoreee.jar Signed-off-by:Roland Häder --- diff --git a/lib/jcore.jar b/lib/jcore.jar index ead5916..e17de0c 100644 Binary files a/lib/jcore.jar and b/lib/jcore.jar differ diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index 93d401d..ba35a45 100644 Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar index f1aab85..bbfc4d4 100644 Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ diff --git a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java index 5194f4a..52e1c86 100644 --- a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java @@ -17,7 +17,7 @@ package org.mxchange.jshopcore.model.category; import java.io.Serializable; -import java.util.Deque; +import java.util.List; import javax.ejb.Remote; /** @@ -33,5 +33,5 @@ public interface CategorySessionBeanRemote extends Serializable { * * @return All categories */ - public Deque getAllCategories (); + public List getAllCategories (); } diff --git a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java index 2803e84..d282161 100644 --- a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java @@ -19,7 +19,6 @@ package org.mxchange.jshopcore.model.customer; import java.io.Serializable; import javax.ejb.Remote; import org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException; -import org.mxchange.jshopcore.exceptions.QueryNotExecutedException; /** * An interface for customer beans @@ -34,18 +33,16 @@ public interface CustomerSessionBeanRemote extends Serializable { * * @param customer Initial Customer instance * @return Prepared Customer instance - * @throws org.mxchange.jshopcore.exceptions.QueryNotExecutedException If the SQL query did not execute */ - public Customer fillCustomerData (final Customer customer) throws QueryNotExecutedException; + public Customer fillCustomerData (final Customer customer); /** * Checks if the the given customer instance is already registered * * @param customer Customer instance * @return Whether the customer is already registered - * @throws org.mxchange.jshopcore.exceptions.QueryNotExecutedException If the SQL query did not execute */ - public boolean isReqistered (final Customer customer) throws QueryNotExecutedException; + public boolean isReqistered (final Customer customer); /** * Registers the customer and creates a customer number after succesful diff --git a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java index 3d53978..3b33524 100644 --- a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java @@ -17,7 +17,7 @@ package org.mxchange.jshopcore.model.product; import java.io.Serializable; -import java.util.Deque; +import java.util.List; import javax.ejb.Remote; import org.mxchange.jshopcore.exceptions.CannotAddProductException; import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException; @@ -35,7 +35,7 @@ public interface AdminProductSessionBeanRemote extends Serializable { * * @return All products */ - public Deque getAllProducts (); + public List getAllProducts (); /** * Adds given product data from request to database diff --git a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java index 8066015..c341f77 100644 --- a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java @@ -17,7 +17,7 @@ package org.mxchange.jshopcore.model.product; import java.io.Serializable; -import java.util.Deque; +import java.util.List; import javax.ejb.Remote; /** @@ -33,5 +33,5 @@ public interface ProductSessionBeanRemote extends Serializable { * * @return Only available products */ - public Deque getAvailableProducts (); + public List getAvailableProducts (); }