]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java
This method should throw an exception if the customer has already been added ...
[jcustomer-lib.git] / 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.