public static Ville selectVilleById(int id) throws SQLException {

        String query = null;
        Ville ville1 = new Ville();
        ResultSet resultat;

        try {
            query = "SELECT * from VILLE where ID_VILLE =? ";

            PreparedStatement pStatement = ConnectionBDD.getInstance().getPreparedStatement(query);
            pStatement.setInt(1, id);
            resultat = pStatement.executeQuery();

            while (resultat.next()) {
                //System.out.println(resultat.getString("VINOM"));
                ville1 = new Ville(resultat.getInt("ID_VILLE"), resultat.getInt("ID_PAYS"), resultat.getString("VINOM"), resultat.getString("VICP"));
            }

        } catch (SQLException ex) {
            Logger.getLogger(RequetesCouleur.class.getName()).log(Level.SEVERE, null, ex);

        }
        return ville1;

    }