Examples of Ville


Examples of modele.chauffeur.Ville

            if (res.next()) {
              result[0] = new Localite(res.getInt(1));
              //result[0].setCp(Integer.parseInt(res.getString(1)));
              result[0].setCommune(res.getString(2));

              Ville ville = new Ville(res.getInt(3));
              ville.setNomVille(res.getString(4));
              result[0].setVille(ville);
            }
          } finally {
            try {
              if (res != null) {
View Full Code Here

Examples of modele.chauffeur.Ville

            while (res.next()) {
              Localite localite = new Localite(res.getInt(1));
              //localite.setCp(Integer.parseInt(res.getString(2)));
              localite.setCommune(res.getString(2));

              Ville ville = new Ville(res.getInt(3));
              ville.setNomVille(res.getString(4));/////////////////////
              localite.setVille(ville);

              listeLocalite.add(localite);
            }
          } finally {
View Full Code Here

Examples of modele.chauffeur.Ville

            if (res.next()) {
              result[0] = new Localite(res.getInt(1));
              result[0].setCommune(res.getString(2));

              Ville ville = new Ville(res.getInt(3));
              ville.setNomVille(res.getString(4));
              result[0].setVille(ville);
            }
          } finally {
            try {
              if (res != null) {
View Full Code Here

Examples of modele.chauffeur.Ville

             
             
              localite.setCommune(res.getString(9));
              result[0].setLocalite(localite);

              Ville ville = new Ville(res.getInt(10));
              ville.setNomVille(res.getString(11));
              result[0].setVille(ville);
             
              Date dateNais = new Date(res.getDate(12).getTime());             
              result[0].setDtNais(dateNais);
             
View Full Code Here

Examples of modele.chauffeur.Ville

              chauffeur.setLocalite(localite);
             
              localite.setCommune(res.getString(7));
              chauffeur.setLocalite(localite);
             
              Ville ville = new Ville(res.getInt(8));
              ville.setNomVille(res.getString(9));
              chauffeur.setVille(ville);
             
              Date dateNais = new Date(res.getDate(10).getTime());
              chauffeur.setDtNais(dateNais);
           
View Full Code Here

Examples of modele.chauffeur.Ville

              //localite.setCp(res.getInt(7));
              chauffeur.setLocalite(localite);
             
              localite.setCommune(res.getString(7));
             
              Ville ville = new Ville(res.getInt(8));
              ville.setNomVille(res.getString(9));
              chauffeur.setVille(ville);
             
              Date dateNais = new Date(res.getDate(10).getTime());
              chauffeur.setDtNais(dateNais);
             
View Full Code Here

Examples of modele.chauffeur.Ville

    try {
      dlgDialog = new VilleEditionFenetre();
      dlgDialog.affiche();

      if (dlgDialog.OK_Button()) {
        Ville ville = dlgDialog.renvoiVille();
        getVilleDao().insert(ville);
      }
    } catch (PrjException e) {
      throw new PrjException(e.RetourMessage());
    }
View Full Code Here

Examples of modele.chauffeur.Ville

    public int getRowCount() {
      return ville.size();
    }

    public Object getValueAt(int rowIndex, int columnIndex) {
      Ville villeAtRow = ville.get(rowIndex);
      switch (columnIndex) {
      case 0:
        return villeAtRow.getId();
      case 1:
        return villeAtRow.getNomVille();
      case 2:
        return villeAtRow.getPays().getCode();

      default:
        throw new IllegalStateException("Le nombre de colonne ne peut pas d�passer " + NOMBRE_COLONNE + ". index demand� " + columnIndex);
      }
    }
View Full Code Here

Examples of modele.chauffeur.Ville

  /**
   * construit une ville � partir de d'une ligne de donn�e
     *
   */
  public Ville decode(String[] ligne) {
    Ville ville = new Ville();
    ville.setNomVille(ligne[INDEX_CHAMP_NOM]);
    Pays pays = paysDao.findByCode(ligne[INDEX_CHAMP_CODE_PAYS]);
    ville.setPays(pays);
   
    return ville;
  }
View Full Code Here

Examples of modele.chauffeur.Ville

          try {
            smt = connection.prepareStatement(GET_VILLE_BY_ID);
            smt.setInt(1, id);
            res = smt.executeQuery();
            if (res.next()) {
              result[0] = new Ville(res.getInt(1));

              Pays pays = new Pays(res.getInt(2));
              pays.setNom(res.getString(3));
              result[0].setPays(pays);
            }
View Full Code Here
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.