Package dao

Source Code of dao.DaoVisita

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

package dao;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import model.Visita;

/**
*
* @author GuillermoLuis
*/
public class DaoVisita {
    List<Visita> ListaDeVisitas = new ArrayList<>();

    public List<Visita> getListaDeVisitas() {
        return ListaDeVisitas;
    }
   
    public void agregarVisita(String nombre,Date fecha,String motivo,String estado,String numero){
        Visita v = new Visita();
        v.setNombre(nombre);
        v.setFecha(fecha);
        v.setMotivo(motivo);
        v.setEstado(estado);
        v.setNumero(numero);
        ListaDeVisitas.add(v);
    }
   
   
   
}
TOP

Related Classes of dao.DaoVisita

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.