8283848586878889
@Override public void alterarCurso(Curso curso) throws ServiceException { try { this.cursoDao.atualizar(curso); } catch (DaoException e) { throw new ServiceException(e.getMessage(), e); } }
9596979899100101102
@Override public List<Curso> listarCursos() throws ServiceException { try { return this.cursoDao.listar(Curso.class); } catch (DaoException e) { throw new ServiceException(e.getMessage(), e); } }
108109110111112113114115
@Override public List<Curso> buscarCurso(Curso curso) throws ServiceException { try { return this.cursoDao.pesquisar(curso); } catch (DaoException e) { throw new ServiceException(e.getMessage(), e); } }
122123124125126127128129
public Integer salvarDisciplina(Disciplina disciplina) throws ServiceException { try { return this.disciplinaDao.salvar(disciplina); } catch (DaoException e) { throw new ServiceException(e.getMessage(), e); } }
136137138139140141142143144
public void alterarDisciplina(Disciplina disciplina) throws ServiceException { try { this.disciplinaDao.atualizar(disciplina); } catch (DaoException e) { throw new ServiceException(e.getMessage(), e); } }
150151152153154155156157
@Override public List<Disciplina> listarDisciplinas() throws ServiceException { try { return this.disciplinaDao.listar(Disciplina.class); } catch (DaoException e) { throw new ServiceException(e.getMessage(), e); } }
164165166167168169170171
public List<Disciplina> buscarDisciplinas(Disciplina disciplina) throws ServiceException { try { return this.disciplinaDao.pesquisar(disciplina); } catch (DaoException e) { throw new ServiceException(e.getMessage(), e); } }
177178179180181182183184
@Override public Integer salvarTurma(Turma turma) throws ServiceException { try { return this.turmaDao.salvar(turma); } catch (DaoException e) { throw new ServiceException(e.getMessage(), e); } }
190191192193194195196197198
@Override public void alterarTurma(Turma turma) throws ServiceException { try { this.turmaDao.atualizar(turma); } catch (DaoException e) { throw new ServiceException(e.getMessage(), e); } }
204205206207208209210211
@Override public List<Turma> listarTurma() throws ServiceException { try { return this.turmaDao.listar(Turma.class); } catch (DaoException e) { throw new ServiceException(e.getMessage(), e); } }