import java.io.Serializable;
import javax.ejb.Remote;
import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException;
+import org.mxchange.jcustomercore.exceptions.CustomerNotFoundException;
/**
* An interface for customer beans
*/
Customer fillCustomerData (final Customer customer);
+ /**
+ * Tries to find a customer with given id number (not customer number). If
+ * not found, an exception is thrown.
+ * <p>
+ * @param customerId Customer id
+ * <p>
+ * @return Valid customer instance
+ * <p>
+ * @throws CustomerNotFoundException If a customer cannot be found
+ */
+ Customer findCustomerById (final Long customerId) throws CustomerNotFoundException;
+
/**
* Checks if the the given customer instance is already registered
* <p>