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
*
* @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;
}