Package modele.chauffeur

Examples of modele.chauffeur.Ville


          ResultSet res = null;
          try {
            smt = connection.prepareStatement(GET_ALL_VILLE);
            res = smt.executeQuery();
            while (res.next()) {
              Ville ville = new Ville(res.getInt(1));
              ville.setNomVille(res.getString(2));
              Pays pays = new Pays(res.getInt(3));
              pays.setCode(res.getString(4));/////////////////////
              ville.setPays(pays);

              listeVille.add(ville);
            }
          } finally {
            try {
View Full Code Here


          ResultSet res = null;
          try {
            smt = connection.createStatement();
            res = smt.executeQuery("select idVille, nomVille, tpays.idPays, tpays.codePays  from TVille, tpays where tpays.idPays = tville.idPays and idVille = LAST_INSERT_ID()");
            if (res.next()) {
              result[0] = new Ville(res.getInt(1));
              result[0].setNomVille(res.getString(2));

              Pays pays = new Pays(res.getInt(3));
              pays.setCode(res.getString(4));
              result[0].setPays(pays);
View Full Code Here

TOP

Related Classes of modele.chauffeur.Ville

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.