Package br.facet.tcc.exception

Examples of br.facet.tcc.exception.ServiceException


        throws ServiceException {

        try {
            this.avaliacaoDeAlunoDao.salvar(avaliacaoDeAluno);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }

    }
View Full Code Here


        for (AvaliacaoDeAluno avaliacaoDeAluno : avaliacoesDaTurma) {
            try {
                this.avaliacaoDeAlunoDao.salvar(avaliacaoDeAluno);
            } catch (DaoException e) {
                throw new ServiceException(e.getMessage(), e);
            }
        }
    }
View Full Code Here

     * @see br.facet.tcc.service.GestaoAcademico#buscarRelatorio(java.lang.Integer)
     * @since since optional
     */
    @Override
    public File buscarRelatorio(Integer tipo) throws ServiceException {
        throw new ServiceException("Ainda n�o implementado.");
    }
View Full Code Here

        List<AvaliacaoDeAluno> avaliacaoDeAlunos = null;
        try {
            this.avaliacaoDeAlunoDao.pesquisar(avaliacaoDeAluno);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }

        return avaliacaoDeAlunos;
    }
View Full Code Here

    @Override
    public Integer salvarUsuario(T t) throws ServiceException {
        try {
            return this.dao.salvar(t);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public void removerUsuario(T t) throws ServiceException {
        try {
            this.dao.excluir(t);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public T consultarUsuario(Class clazz, Integer id) throws ServiceException {
        try {
            return (T) this.dao.obterPorID(clazz, id);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public List<T> consultarUsuario(T t) throws ServiceException {
        try {
            return this.dao.pesquisar(t);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public void alterarUsuario(T t) throws ServiceException {
        try {
            this.dao.atualizar(t);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public List<T> listarUsuario(Class clazz) throws ServiceException {
        try {
            return this.dao.listar(clazz);
        } 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.