- add first business method addEmployee()
Signed-off-by: Roland Häder <roland@mxchange.org>
import java.io.Serializable;
import javax.ejb.Remote;
+import org.mxchange.jcontactsbusiness.exceptions.employee.EmployeeAlreadyAddedException;
/**
* An interface for administrative purposes on handling company employee data
@Remote
public interface AdminEmployeeSessionBeanRemote extends Serializable {
+ /**
+ * Adds given employee instance to database. If already found, a proper
+ * exception is thrown.
+ * <p>
+ * @param employee Employee instance to be added
+ * <p>
+ * @return Updated employee instance
+ * <p>
+ * @throws EmployeeAlreadyAddedException
+ */
+ Employable addEmployee (final Employable employee) throws EmployeeAlreadyAddedException;
+
}