]> git.mxchange.org Git - jshop-lib.git/commitdiff
added thrown exceptions + updated jars
authorRoland Haeder <roland@mxchange.org>
Wed, 16 Sep 2015 13:05:02 +0000 (15:05 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 16 Sep 2015 13:05:02 +0000 (15:05 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcore.jar
lib/jshop-core.jar
src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java

index a56fe629d293ed633c7a4581c04dad90d8cd7caf..4426c96e512eef4eac4d14f9f802bb47fc8361a4 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index 4a925a98e00a79fc5b0c6700114d4cd5499d74b2..a083ae73fb6a802a6096aa005b1667798a7c6107 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index 633bbf00d15c349a02734ab1ce6dca9a0d748475..d46d905f4d23712fdc970997c32a7c57fb304e3c 100644 (file)
@@ -18,6 +18,8 @@ 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
@@ -39,14 +41,16 @@ public interface CustomerSessionBeanRemote extends Serializable {
         *
         * @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);
+       public boolean isReqistered (final Customer customer) throws QueryNotExecutedException;
 
        /**
         * Registers the customer and creates a customer number after succesful
         * persisting.
         * 
         * @param customer Customer instance
+        * @throws org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException If the customer is already registered.
         */
-       public void registerCustomer (final Customer customer);
+       public void registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException;
 }