/*
 * 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.BloquePrimariaInicial;
import pe.siso.horario.DAO.BloqueInicialPrimariaDAO;
import pe.siso.horario.DAO.DAOFactory;

/**
 *
 * @author sistem16user
 */
public class BloquePriIniServices {
    DAOFactory fabrica = DAOFactory.getDAOFactory(DAOFactory.MYSQL);
    BloqueInicialPrimariaDAO objBloquePriDAO= fabrica.getBloqueInicialPrimariaDAO();
 
  public ArrayList<BloquePrimariaInicial> cargarBloque() {
     ArrayList<BloquePrimariaInicial> lista=null;
        try {
            lista=objBloquePriDAO.cargarBloqueGeneral();
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return lista;
    }  
}
