@Override public List<Map<String, Object>> getProjectsByCountryCode(String code) { List<Map<String, Object>> list = null; List<Object[]> scopeList = scopeDAO.getAllProjects(code); if (scopeList.size() > 0) { list = new ArrayList<Map<String, Object>>(); for (Object[] obj : scopeList) { Map<String, Object> map = new HashMap<String, Object>(); map.put("scope_id", obj[0]); map.put("project_name", ((Project) obj[1]).getProject_name()); list.add(map); } return list; } return null; }
@Override public List<Country> getAllCountry() { return scopeDAO.getAllCountries(); }
@Override public void deleteScope(Scope scope) { scopeDAO.delete(scope); }
@Override public void updateScope(Scope scope) { scopeDAO.update(scope); }
@Override public void addScope(Scope scope) { scopeDAO.save(scope); }
@Override public List<Scope> getAllScope() { return scopeDAO.listAll(); }