Package model

Examples of model.Endereco


            Estagiario estagiario;
            while (resultSet.next()) {
                Pessoa pessoa = new Pessoa();
                pessoa.setCodigoPessoa(resultSet.getInt("aluno.codigoPessoa"));
               
                Endereco endereco = new Endereco(
                    resultSet.getString("logradouro"),
                    resultSet.getString("numero"),
                    resultSet.getString("bairro"),
                    resultSet.getString("cep"),
                    resultSet.getString("complemento"),
View Full Code Here


    private Endereco endereco;
    private EnderecoDAO enderecoDAO;
    private ArrayList<Endereco> listaDeEnderecos;
   
    public EnderecoController() {
        this.endereco = new Endereco();
        this.enderecoDAO = new EnderecoDAO();
        this.listaDeEnderecos = new ArrayList<Endereco>();
    }
View Full Code Here

            ResultSet resultSet = statement.getResultSet();
            while (resultSet.next()) {
                Pessoa pessoa = new Pessoa();
                pessoa.setCodigoPessoa(resultSet.getInt("candidatoDocente.codigoPessoa"));
               
                Endereco endereco = new Endereco(
                    resultSet.getString("logradouro"),
                    resultSet.getString("numero"),
                    resultSet.getString("bairro"),
                    resultSet.getString("cep"),
                    resultSet.getString("complemento"),
View Full Code Here

            ResultSet resultSet = statement.getResultSet();
            while (resultSet.next()) {
                Pessoa pessoa = new Pessoa();
                pessoa.setCodigoPessoa(resultSet.getInt("candidatoDocente.codigoPessoa"));
               
                Endereco endereco = new Endereco(
                    resultSet.getString("logradouro"),
                    resultSet.getString("numero"),
                    resultSet.getString("bairro"),
                    resultSet.getString("cep"),
                    resultSet.getString("complemento"),
View Full Code Here

            Candidato candidato;
            while (resultSet.next()) {
                Pessoa pessoa = new Pessoa();
                pessoa.setCodigoPessoa(resultSet.getInt("candidatoDocente.codigoPessoa"));
               
                Endereco endereco = new Endereco(
                    resultSet.getString("logradouro"),
                    resultSet.getString("numero"),
                    resultSet.getString("bairro"),
                    resultSet.getString("cep"),
                    resultSet.getString("complemento"),
View Full Code Here

   
     if(podeSalvar){
        Pessoa pessoa = new Pessoa();
        pessoa.setCodigoPessoa(Integer.parseInt(jTextFieldCodigoAluno.getText()));
       
        Endereco endereco = new Endereco(
                jTextFieldEndereco.getText(),
                jTextFieldNumero.getText(),
                jTextFieldBairro.getText(),
                jTextFieldCEP.getText(),
                jTextFieldComplemento.getText(),
View Full Code Here

    
    if (podeSalvar) {
        Pessoa pessoa = new Pessoa();
        pessoa.setCodigoPessoa(Integer.parseInt(jTextFieldCodigoCandidato.getText()));
       
        Endereco endereco = new Endereco(
                jTextFieldEndereco.getText(),
                jTextFieldNumero.getText(),
                jTextFieldBairro.getText(),
                jTextFieldCEP.getText(),
                jTextFieldComplemento.getText(),
View Full Code Here

    
    if (podeSalvar) {
        Pessoa pessoa = new Pessoa();
        pessoa.setCodigoPessoa(Integer.parseInt(jTextFieldCodigoDocente.getText()));
       
        Endereco endereco = new Endereco(
                jTextFieldEndereco.getText(),
                jTextFieldNumero.getText(),
                jTextFieldBairro.getText(),
                jTextFieldCEP.getText(),
                jTextFieldComplemento.getText(),
View Full Code Here

public class EnderecoDAO {
   
    public Endereco getEndereco(String codigo) {

        Connection conexao = Conexao.getSqlConnection();
        Endereco endereco = new Endereco();
        try {
            Statement statement = conexao.createStatement();
            statement.executeQuery("SELECT * " +
                    "FROM endereco " +
                    "WHERE codigoPessoa = " + codigo);
           
            ResultSet resultSet = statement.getResultSet();
            while (resultSet.next()) {
                Pessoa pessoa = new Pessoa();
                pessoa.setCodigoPessoa(resultSet.getInt("codigoPessoa"));
               
                endereco = new Endereco(
                    resultSet.getString("logradouro"),
                    resultSet.getString("numero"),
                    resultSet.getString("bairro"),
                    resultSet.getString("cep"),
                    resultSet.getString("complemento"),
View Full Code Here

            Statement objSTM = conexao.createStatement();
            objSTM.executeQuery("SELECT * " +
                    "FROM endereco");

            ResultSet resultSet = objSTM.getResultSet();
            Endereco endereco;
            while (resultSet.next()) {
                Pessoa pessoa = new Pessoa();
                pessoa.setCodigoPessoa(resultSet.getInt("codigoPessoa"));
               
                endereco = new Endereco(
                    resultSet.getString("logradouro"),
                    resultSet.getString("numero"),
                    resultSet.getString("bairro"),
                    resultSet.getString("cep"),
                    resultSet.getString("complemento"),
View Full Code Here

TOP

Related Classes of model.Endereco

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.