import java.io.Serializable;
import javax.ejb.Remote;
import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentAlreadyAddedException;
+import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException;
/**
* A remote interface for departments
@Remote
public interface AdminDepartmentSessionBeanRemote extends Serializable {
+ /**
+ * Updates the given department instance in database and returns an updated
+ * version of it. If the department is not found, a checked exception is
+ * thrown.
+ * <p>
+ * @param department Department being updated
+ * <p>
+ * @return Updated department instance
+ * <p>
+ * @throws DepartmentNotFoundException If the department was not found
+ */
+ Department updateDepartment (final Department department) throws DepartmentNotFoundException;
+
/**
* Adds a given department instance to the database. If it is already found
* (department name and company in combination), then throw a proper