Package modele.chauffeur

Examples of modele.chauffeur.Localite


          try {
            smt = connection.prepareStatement(GET_LOCALITE_BY_ID);
            smt.setInt(1, id);
            res = smt.executeQuery();
            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));
View Full Code Here


          ResultSet res = null;
          try {
            smt = connection.prepareStatement(GET_ALL_LOCALITE);
            res = smt.executeQuery();
            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 {
            try {
View Full Code Here

          try {
            smt = connection.createStatement();
            res = smt.executeQuery("select cp, commune, tville.idVille,tville.nomVille from tlocalite, tville where tlocalite.idVille = tville.idVille ");//and idLoca = LAST_INSERT_ID()");

            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);
View Full Code Here

        dlgDialog = new LocaliteEditionFenetre();
        dlgDialog.affiche();

        if (dlgDialog.OK_Button()) {
          Localite localite = dlgDialog.renvoiLocalite();
          getLocaliteDao().insert(localite);
        }
     
    }
View Full Code Here

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

      public Object getValueAt(int rowIndex, int columnIndex) {
        Localite localiteAtRow = localite.get(rowIndex);
        switch (columnIndex) {
        case 0:         
          return localiteAtRow.getCp();
        case 1:
          return localiteAtRow.getCommune();
        case 2:
          return localiteAtRow.getVille().getNomVille();

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

              result[0].setNom(res.getString(2));
              result[0].setPrenom(res.getString(3));
              result[0].setRue(res.getString(4));
              result[0].setNumRue(res.getString(5));
             
              Localite localite = new Localite(res.getInt(6));
              localite.setCp(res.getInt(8));
              result[0].setLocalite(localite);
             
             
              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);
View Full Code Here

              chauffeur.setNom(res.getString(2));
              chauffeur.setPrenom(res.getString(3));
              chauffeur.setRue(res.getString(4));
              chauffeur.setNumRue(res.getString(5));
             
              Localite localite = new Localite(res.getInt(6));
              //localite.setCp(res.getInt(7));
              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);
View Full Code Here

              result[0].setNom(res.getString(2));
              result[0].setPrenom(res.getString(3));
              result[0].setRue(res.getString(4));
              result[0].setNumRue(res.getString(5));
             
              Localite localite = new Localite(res.getInt(6));
              //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);
             
View Full Code Here

TOP

Related Classes of modele.chauffeur.Localite

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.