Package daoTeste

Source Code of daoTeste.EnderecoDAO

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package daoTeste;

import model.Endereco;
import model.Pessoa;

/**
*
* @author IconeServidor
*/
public class EnderecoDAO {
   
    public Endereco getEndereco(String codigo) {
        Endereco endereco = new Endereco();
        Pessoa pessoa = new Pessoa();
        pessoa.setCodigoPessoa(Integer.parseInt(codigo));
        endereco.setPessoa(pessoa);
        return endereco;
    }

    public int getMaiorCodigo() {
        int intCodigo = (int)(100 * Math.random());       
        return intCodigo;
    }

    public boolean salvar(Endereco pEndereco) {
       return true;
    }

    public boolean atualizar(Endereco pEndereco) {
        return true;
    }

    public boolean excluir(String codigo) {
        return true;
    }
}
TOP

Related Classes of daoTeste.EnderecoDAO

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.