From: Roland Haeder Date: Wed, 16 Sep 2015 13:05:02 +0000 (+0200) Subject: added thrown exceptions + updated jars X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58b90ff80335430a1127ed11c163051c1e26a7b5;p=jshop-lib.git added thrown exceptions + updated jars Signed-off-by:Roland Häder --- diff --git a/lib/jcore.jar b/lib/jcore.jar index a56fe62..4426c96 100644 Binary files a/lib/jcore.jar and b/lib/jcore.jar differ diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar index 4a925a9..a083ae7 100644 Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ diff --git a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java index 633bbf0..d46d905 100644 --- a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java @@ -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; }