/** Returns a list of software skills for the specified candidate */ public static List getAllSoftwareSkillsFor(Candidate candidate) { List result = new ArrayList(); try { SoftwareCandidateQuery query = new SoftwareCandidateQuery(); query.setQueryCandidate(candidate.getDO()); SoftwareCandidateDO element = query.getNextDO(); while (element != null) { result.add(new SoftwareSkill(element)); element = query.getNextDO(); } } catch (Exception qe) { System.err.println(qe); } return result; }
/** Return a list with all graduationdata from the DB */ public static List getAllGraduations() { List result = new ArrayList(); try { GraduationQuery query = new GraduationQuery(); query.addOrderByDescription(); GraduationDO element = query.getNextDO(); while (element != null) { result.add(new Graduation(element)); element = query.getNextDO(); } } catch (Exception e) { throw new RuntimeException(e.toString()); } return result; }