Package com.escuelademanejo.persistencia

Examples of com.escuelademanejo.persistencia.FactoryPersistencia


    this.id_cliente = id_cliente;
    this.id_hi = id_hi;
    this.fecha = fecha;
    this.observacion = observacion;
   
    FactoryPersistencia factPersistencia = FactoryPersistencia
        .getInstance();
    iPersistController = factPersistencia.getIPersistenciaController();
  }
View Full Code Here


  public Instructor(String nombre, String clave, String nombre_completo,
      String telefono, String mail, String modelo_auto, String patente) throws Exception {
    super(nombre, clave, "", nombre_completo, telefono, mail);

    FactoryPersistencia factPersistencia = FactoryPersistencia
        .getInstance();
    iPersistController = factPersistencia.getIPersistenciaController();

    this.setTipo(iPersistController.get_TIPO_INSTRUCTOR());
    this.id_instructor = -1; // se setea al persistirlo
    this.modelo_auto = modelo_auto;
    this.patente = patente;
View Full Code Here

  public Instructor(ArrayList<String> datos_inst) throws Exception {
    // TODO Auto-generated constructor stub
    super(datos_inst.get(1), datos_inst.get(2), "", datos_inst.get(3),
        datos_inst.get(4), datos_inst.get(5));

    FactoryPersistencia factPersistencia = FactoryPersistencia
        .getInstance();
    iPersistController = factPersistencia.getIPersistenciaController();

    this.setTipo(iPersistController.get_TIPO_INSTRUCTOR());
    if (!datos_inst.get(0).isEmpty())
      this.id_instructor = Integer.valueOf(datos_inst.get(0));
    this.modelo_auto = datos_inst.get(6);
View Full Code Here

  public Cliente(String username, String clave, String nombre_completo,
      String telefono, String mail, Date fecha_nacimiento,
      ArrayList<Integer> turnos) throws Exception {
    super(username, clave, "", nombre_completo, telefono, mail);

    FactoryPersistencia factPersistencia = FactoryPersistencia
        .getInstance();
    iPersistController = factPersistencia.getIPersistenciaController();
   
    this.fecha_nacimiento = fecha_nacimiento;
    this.turnos = turnos;
    this.setTipo(iPersistController.get_TIPO_CLIENTE());
    this.id_cliente = -1; // no se asigna id todavia se hace desde la
View Full Code Here

   
    SimpleDateFormat formatoDelTexto = new SimpleDateFormat("dd-mm-yyyy");
    String strFecha = datos_cli.get(6);   
    this.fecha_nacimiento = formatoDelTexto.parse(strFecha);
   
    FactoryPersistencia factPersistencia = FactoryPersistencia
        .getInstance();
    iPersistController = factPersistencia.getIPersistenciaController();
   
    this.setTipo(iPersistController.get_TIPO_CLIENTE());
   
    if (!datos_cli.get(0).isEmpty())
      this.id_cliente = Integer.valueOf(datos_cli.get(0));
View Full Code Here

  public Administrativo(int id_admin, String nombre, String clave,
      String nombre_completo, String telefono, String mail) throws Exception {
    super(nombre, clave, "", nombre_completo, telefono,
        mail);
    // TODO Auto-generated constructor stub
    FactoryPersistencia factPersistencia = FactoryPersistencia
        .getInstance();
    iPersistController = factPersistencia.getIPersistenciaController();
    this.setTipo(iPersistController.get_TIPO_INSTRUCTOR());
    this.id_admin = id_admin;
  }
View Full Code Here

  private TreeMap<Integer, Instructor> instructores = null;
 
  private IPersistenciaController iPersistController = null;

  private CatalogoInstructores() throws Exception {
    FactoryPersistencia factPersistencia = FactoryPersistencia.getInstance();
    iPersistController = factPersistencia.getIPersistenciaController();
    if (instructores == null){
      instructores = new TreeMap<Integer, Instructor>();
      TreeMap<Integer, ArrayList<String>> rows_instructores = iPersistController.selectAllInstructores();
      Iterable<ArrayList<String>> rows_inst = rows_instructores.values();
      for (ArrayList<String> datos_inst : rows_inst) {
View Full Code Here

  private TreeMap<Integer, Cliente> clientes = null;
 
  private IPersistenciaController iPersistController = null;

  private CatalogoClientes() throws Exception {
    FactoryPersistencia factPersistencia = FactoryPersistencia.getInstance();
    iPersistController = factPersistencia.getIPersistenciaController();
    if (clientes == null){
      clientes = new TreeMap<Integer, Cliente>();
      TreeMap<Integer, ArrayList<String>> rows_clientes = iPersistController.selectAllClientes();
      Collection<ArrayList<String>> rows_cli = rows_clientes.values();
      for (ArrayList<String> datos_cli : rows_cli) {
View Full Code Here

  @Override
  public TreeMap<Integer, ArrayList<ArrayList<String>>> listarHorariosInstructores() throws Exception{
    // TODO Auto-generated method stub     
    TreeMap<Integer, ArrayList<ArrayList<String>>> horarios_instructores= null;
   
    FactoryPersistencia factp = FactoryPersistencia.getInstance();
    IPersistenciaController ipc = factp.getIPersistenciaController();
    try {
      horarios_instructores = ipc.selectAllHorariosInstructores();
    } catch ( Exception e ) {
      throw e;
    }
View Full Code Here

  }

  @Override
  public TreeMap<Integer,ArrayList<String>> reporte_clientes(Date desde, Date hasta) throws Exception {
    // TODO Auto-generated method stub
    FactoryPersistencia fp = FactoryPersistencia.getInstance();
    IPersistenciaController ipc = fp.getIPersistenciaController();
    return ipc.reporteClientes(desde, hasta);
  }
View Full Code Here

TOP

Related Classes of com.escuelademanejo.persistencia.FactoryPersistencia

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.