Examples of Pessoa


Examples of negocio.Pessoa

            while(resultado.next()) {
                int id = resultado.getInt("ID");
                String nome = resultado.getString("NOME");
                String telefone = resultado.getString("TELEFONE");
                String sexo = resultado.getString("SEXO");
                Pessoa p = new Pessoa(id,nome, telefone, sexo.equals("M"));
                lista.add(p);
            }
            return lista;
        } catch (SQLException ex) {
            throw new CadastroDAOException("Falha ao buscar.", ex);
View Full Code Here

Examples of negocio.Pessoa

            while(resultado.next()) {
                int id = resultado.getInt("ID");
                String nome = resultado.getString("NOME");
                String telefone = resultado.getString("TELEFONE");
                String sexo = resultado.getString("SEXO");
                Pessoa p = new Pessoa(id,nome, telefone, sexo.equals("M"));
                lista.add(p);
            }
            return lista;
        } catch (SQLException ex) {
            throw new CadastroDAOException("Falha ao buscar.", ex);
View Full Code Here

Examples of negocio.Pessoa

                    JOptionPane.showMessageDialog(this, "Não foi possível adicionar a pessoa ao cadsatro.");
                    sucesso = false;
                }
            }
            else{
                sendoExibida = new Pessoa(sendoExibida.getId(), nome, telefone, sendoExibida.getSexo() == 'M');
                if(controlador.editarPessoa(sendoExibida)){
                    JOptionPane.showMessageDialog(this, "Pessoa alterada com sucesso.");
                    sucesso = true;
                }
                else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.