]> git.mxchange.org Git - jcustomer-lib.git/commitdiff
Continued with JPA:
authorRoland Haeder <roland@mxchange.org>
Wed, 23 Sep 2015 12:46:35 +0000 (14:46 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 23 Sep 2015 12:46:35 +0000 (14:46 +0200)
- 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 <roland@mxchange.org>

lib/jcore.jar
lib/jcoreee.jar
lib/jshop-core.jar
src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java
src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java
src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java
src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java

index ead5916a21197864b7915b3c83d96c971ff478c8..e17de0c88e23d89b1f0953bcc4c3f8114d699b84 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index 93d401de39c53a2d93aaa31e42cad7b2ccac7bb9..ba35a455448e8374b4f25033d5ba05f5b6b7d3f1 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index f1aab858f0564debc187991ee4374bf956001f0a..bbfc4d47166a7908ed871f04030b505436fcc771 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index 5194f4a1a9e00bd50158e608a0f8c9a0d58ea927..52e1c86d02bbb5f99de1827224d8828622ca8cd1 100644 (file)
@@ -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<Category> getAllCategories ();
+       public List<Category> getAllCategories ();
 }
index 2803e84cd8c61d7bedecd2e4660ee6ef6b59b490..d28216124bd0226365ce377ffbab98fde288d699 100644 (file)
@@ -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
index 3d5397818ee1517f6a14ac1611d588a66b9ddf97..3b33524411103769e8fd082b79cf7a12317e2f52 100644 (file)
@@ -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<Product> getAllProducts ();
+       public List<Product> getAllProducts ();
 
        /**
         * Adds given product data from request to database
index 8066015d964a84b8368a4bc0259f7e55c550074d..c341f77467e6a56e54cbab79a14a3f9c99d4af2e 100644 (file)
@@ -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<Product> getAvailableProducts ();
+       public List<Product> getAvailableProducts ();
 }