src/main/java/fr/insee/pogues/persistence/query/QuestionnairesServiceQueryPostgresqlImpl.java
public void updateJsonLunatic(String id, JSONObject questionnaireLunatic) throws Exception {
       	String qString = "UPDATE visu_lunatic SET data_lunatic=? WHERE id=?";
		PGobject q = new PGobject();
		q.setType("json");
		q.setValue(questionnaireLunatic.toJSONString());
		int r = jdbcTemplate.update(qString, q, id);
		if(0 == r) {
			throw new NonUniqueResultException("Entity already exists");
		}
    }
/**
	 * A method to update an existing questionnaire in JSON Lunatic in database
	 * 
	 * @param id id of the questionnaire
	 * @param questionnaireLunatic the JSON Lunatic description of the questionnaire
	 */
A method to update an existing questionnaire in JSON Lunatic in database

@param id id of the questionnaire
@param questionnaireLunatic the JSON Lunatic description of the questionnaire
A method to update an existing questionnaire in JSON Lunatic in database @param id id of the questionnaire @param questionnaireLunatic the JSON Lunatic description of the questionnaire
public void updateJsonLunatic(String id, JSONObject questionnaireLunatic) throws Exception {
       	String qString = "UPDATE visu_lunatic SET data_lunatic=? WHERE id=?";
		PGobject q = new PGobject();
		q.setType("json");
		q.setValue(questionnaireLunatic.toJSONString());
		int r = jdbcTemplate.update(qString, q, id);
		if(0 == r) {
			throw new NonUniqueResultException("Entity already exists");
		}
    }
public void updateJsonLunatic ( String id , JSONObject questionnaireLunatic ) throws Exception { String qString = "UPDATE visu_lunatic SET data_lunatic=? WHERE id=?" ; PGobject q = new PGobject ( ) ; q . setType ( "json" ) ; q . setValue ( questionnaireLunatic . toJSONString ( ) ) ; int r = jdbcTemplate . update ( qString , q , id ) ; if ( 0 == r ) { throw new NonUniqueResultException ( "Entity already exists" ) ; } }
A method to update an existing questionnaire in JSON Lunatic in database
A method to update an existing questionnaire in JSON Lunatic in database