Package br.facet.tcc.exception

Examples of br.facet.tcc.exception.ServiceException


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


                } else {
                    retornoErr.append(turma.toString()).append("\n");
                }
            }
        } catch (DaoException e) {
            throw new ServiceException(e);
        }
        Map<String, String> map = new HashMap<String, String>();

        map.put("retornoErr", retornoErr.toString());
        map.put("retornoOk", retornoOk.toString());
View Full Code Here

    public Integer salvarConfGeralSistema(ConfGeralSistema confSalvar)
            throws ServiceException {
        try {
            return confDao.salvar(confSalvar);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }

    }
View Full Code Here

    public void alterarConfGeralSistema(ConfGeralSistema confSelecionada)
            throws ServiceException {
        try {
            this.confDao.atualizar(confSelecionada);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }

    }
View Full Code Here

    public List<ConfGeralSistema> buscarConfGeralSistema(
            ConfGeralSistema confPesquisar) throws ServiceException {
        try {
            return this.confDao.pesquisar(confPesquisar);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    public List<ConfGeralSistema> listarConfGeralSistemas()
            throws ServiceException {
        try {
            return this.confDao.listar(ConfGeralSistema.class);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

     */
    public Integer salvarDesconto(Desconto desconto) throws ServiceException {
        try {
            return this.descontoDao.salvar(desconto);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

     */
    public void alterarDesconto(Desconto desconto) throws ServiceException {
        try {
            this.descontoDao.atualizar(desconto);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }

    }
View Full Code Here

     */
    public List<Desconto> listarDescontos() throws ServiceException {
        try {
            return this.descontoDao.listar(Desconto.class);
        } catch (DaoException e) {
            throw new ServiceException(e.getMessage(), e);
        }
    }
View Full Code Here

    public List<Desconto> buscarDescontos(Desconto desconto)
            throws ServiceException {
        try {
            return this.descontoDao.pesquisar(desconto);
        } 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.