public boolean deptNameExists(String deptName) { return departmentDao.deptNameExists(deptName); }
public void deleteDepartment(Department dept) { departmentDao.deleteDepartment(dept); }
public List<Department> getUpdatedListAfterDepartmentDeletion(Integer id) { studentBusinessService.updateDepartmentInStudent(id); Department dept = departmentDao.fetchDepartmentById(id); departmentDao.deleteDepartment(dept); return departmentDao.fetchAllDepartments(); }
public void updateDepartment(Department dept) { departmentDao.updateDepartment(dept); }
public Department fetchDepartmentById(Integer id) { return departmentDao.fetchDepartmentById(id); }
public List<Department> fetchAllDepartments() { return departmentDao.fetchAllDepartments(); }
public Department fetchDepartment(String deptName) { return departmentDao.fetchDepartment(deptName); }
public void createDepartment(Department dept) { departmentDao.createDepartment(dept); }