public void delete(int skillItemId) { try { skillItemDao.delete(skillItemId); } catch (SQLException e) { logger.warn("The skill item with the specified id can not be deleted!", e); e.printStackTrace(); } }
public void update(SkillItem skillItem) { try { skillItemDao.update(skillItem); } catch (SQLException e) { logger.warn("The skill item can not be updated!", e); e.printStackTrace(); } }
public SkillItem findById(int skillItemId) { try { SkillItem skillItem = skillItemDao.findById(skillItemId); return skillItem; } catch (SQLException e) { logger.warn("The skill item with the specified id can not be found!", e); e.printStackTrace(); } return null; }
public SkillItem findByName(String skillItemName) { try { SkillItem skillItem = skillItemDao.findByName(skillItemName); return skillItem; } catch (SQLException e) { logger.warn("The skill item with the specified name can not be found!", e); e.printStackTrace(); } return null; }
public List<SkillItem> findAll() { ArrayList<SkillItem> skillItems = new ArrayList<SkillItem>(); try { skillItems = (ArrayList<SkillItem>) skillItemDao.findAll(); } catch (SQLException e) { logger.warn("Unable to retrieve all skill items from the database!"); e.printStackTrace(); } return skillItems; }