public String getSchoolName(String schoolNumber) throws DaoException { SchoolService service = new SchoolService(); Map<String, Object> hm = new HashMap<String, Object>(); hm.put("schoolNumber", schoolNumber); School school = service.getSchool(hm); return school.getSchoolName(); }
public String getSchoolNumber(Integer schoolFk) throws DaoException { SchoolService service = new SchoolService(); Map<String, Object> hm = new HashMap<String, Object>(); hm.put("schoolPk", schoolFk); hm.put("showDeleted", "true"); School school = service.getSchool(hm); String schoolNumber = school.getSchoolNumber(); return schoolNumber; }