]> git.mxchange.org Git - jcustomer-lib.git/commitdiff
This method should throw an exception if the customer has already been added ...
authorRoland Häder <roland@mxchange.org>
Tue, 26 Apr 2016 09:29:03 +0000 (11:29 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 26 Apr 2016 09:42:15 +0000 (11:42 +0200)
src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java

index ea4f416da454afd27a74116b1a64f8bf711390bf..e2fca5e397ed358d9f6df030b3a528cf1b0dcadb 100644 (file)
@@ -19,6 +19,7 @@ package org.mxchange.jcustomercore.model.customer;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Remote;
+import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException;
 
 /**
  * Administrative interface for customer beans
@@ -41,10 +42,14 @@ public interface AdminCustomerSessionBeanRemote extends Serializable {
         * instance.
         * <p>
         * @param customer Customer instance
-        *
+        * <p>
         * @return Updated customer
+        * <p>
+        * @throws
+        * org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException
+        * If the customer is already registered.
         */
-       Customer addCustomer (final Customer customer);
+       Customer addCustomer (final Customer customer) throws CustomerAlreadyRegisteredException;
 
        /**
         * Creates a new (free) customer number.