/*
 * 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 pe.siso.horario.Services;

import java.util.ArrayList;
import pe.siso.horario.Beans.Clase;
import pe.siso.horario.DAO.ClaseDAO;
import pe.siso.horario.DAO.DAOFactory;

/**
 *
 * @author fcelestino
 */
public class ClaseServices {
    DAOFactory fabrica = DAOFactory.getDAOFactory(DAOFactory.MYSQL);
    ClaseDAO objClaseDAO= fabrica.getClaseDAO();
    
    public ArrayList<Clase> cargarClase(){
        ArrayList<Clase> lista=null;
        try {
            lista=objClaseDAO.cargarClase();
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return lista;
    }
    
    
    
}
