public static List<Ville> selectVilleByCpostal(String cp) throws SQLException {

        String query = null;
        List<Ville> ville1 = new ArrayList<Ville>();
        ResultSet resultat;
        try {

            query = "SELECT ID_VILLE, ID_PAYS, VINOM,VICP from VILLE where VICP like ? ";
            PreparedStatement pStatement = ConnectionBDD.getInstance().getPreparedStatement(query);
            pStatement.setString(1, cp);
            resultat = pStatement.executeQuery();

            while (resultat.next()) {

                Ville v1 = new Ville(resultat.getInt("ID_VILLE"), resultat.getInt("ID_PAYS"), resultat.getString("VINOM"), resultat.getString("VICP"));
                ville1.add(v1);
            }

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

        }

        return ville1;
    }