Package br.facet.tcc.exception

Examples of br.facet.tcc.exception.ServiceException


    @Override
    public void alterarCurso(Curso curso) throws ServiceException {
        try {
            this.cursoDao.atualizar(curso);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here


    @Override
    public List<Curso> listarCursos() throws ServiceException {
        try {
            return this.cursoDao.listar(Curso.class);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public List<Curso> buscarCurso(Curso curso) throws ServiceException {
        try {
            return this.cursoDao.pesquisar(curso);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    public Integer salvarDisciplina(Disciplina disciplina)
            throws ServiceException {
        try {
            return this.disciplinaDao.salvar(disciplina);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    public void alterarDisciplina(Disciplina disciplina)
            throws ServiceException {
        try {
            this.disciplinaDao.atualizar(disciplina);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }

    }
View Full Code Here

    @Override
    public List<Disciplina> listarDisciplinas() throws ServiceException {
        try {
            return this.disciplinaDao.listar(Disciplina.class);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    public List<Disciplina> buscarDisciplinas(Disciplina disciplina)
            throws ServiceException {
        try {
            return this.disciplinaDao.pesquisar(disciplina);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public Integer salvarTurma(Turma turma) throws ServiceException {
        try {
            return this.turmaDao.salvar(turma);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public void alterarTurma(Turma turma) throws ServiceException {
        try {
            this.turmaDao.atualizar(turma);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }

    }
View Full Code Here

    @Override
    public List<Turma> listarTurma() throws ServiceException {
        try {
            return this.turmaDao.listar(Turma.class);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of br.facet.tcc.exception.ServiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.