Package Negocio

Examples of Negocio.NegocioException


    public int getNroTicketEspFuncionario(String func) throws NegocioException {
        try{
            return dao.getNroTicketEspFuncionario(func);
        }
        catch(DAOSQLExcep e){
            throw  new  NegocioException(e.getMessage());
        }
    }
View Full Code Here


    public boolean podeLiberar(String user, String cartao) throws NegocioException {
        try{
            return dao.podeLiberar(user, cartao);
        }
        catch(DAOSQLExcep e){
            throw  new  NegocioException(e.getMessage());
        }
    }
View Full Code Here

    public void registrarEntrada(String Cartao, String user) throws NegocioException {
        try{
            dao.registrarEntrada(Cartao, user);
        }
        catch(DAOSQLExcep e){
            throw  new  NegocioException(e.getMessage());
        }
    }
View Full Code Here

    public boolean podeLiberar(String ticket_cartao) throws NegocioException {
        try{
            return dao.podeLiberar(ticket_cartao);
        }
        catch(DAOSQLExcep e){
            throw  new  NegocioException(e.getMessage());
        }
    }
View Full Code Here

    public String gerarFuncionario(String nome) throws NegocioException {
        try{
            return dao.gerarFuncionario(nome);
        }
        catch(DAOSQLExcep e){
            throw  new  NegocioException(e.getMessage());
        }
    }
View Full Code Here

    public String getLastTicket() throws NegocioException {
        try{
            return dao.getLastTicket();
        }
        catch(DAOSQLExcep e){
            throw  new  NegocioException(e.getMessage());
        }
    }
View Full Code Here

        try{
        return convercao.toViewFuncs(dao.getFuncs());
        }
        catch(DAOSQLExcep e)
        {
            throw new NegocioException(e.getMessage());
        }
    }
View Full Code Here

    public void pagou(Ticket t, double total) throws NegocioException{
        try{
            dao.pagou(convercao.toModel(t), total);
        }
        catch(DAOSQLExcep e){
            throw new NegocioException(e.getMessage());
        }
    }
View Full Code Here

    @Override
    public void createCartaoEsp(Funcionario funcionario) throws NegocioException {
        try {
            dao.createCartaoEsp(convercao.toModelFunc(funcionario));
        } catch (DAOSQLExcep ex) {
            throw new NegocioException(ex.getMessage(), ex);
        }
    }
View Full Code Here

TOP

Related Classes of Negocio.NegocioException

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.