
PreparedStatement st = this.connection.prepareStatement(findAllforSource,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
</BUG>
st.setString(1, sourceID);
ResultSet result = st.executeQuery();
<BUG>while(result.next()) {
</BUG>
nouvelles.add(getDataFromResult(result));
}
result.close();

return nouvelles;
}
public List<Nouvelle> findAllForSource(String sourceID) {
List<Nouvelle> nouvelles = new ArrayList<Nouvelle>();
try {
String findAllforSource = "SELECT * FROM nouvelles WHERE id_source = ? ORDER BY date DESC LIMIT " + FIND_ALL_NOUVELLES_MAX_SIZE;
PreparedStatement st = this.connection.prepareStatement(findAllforSource, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
st.setString(1, sourceID);
ResultSet result = st.executeQuery();
while (result.next()) {
nouvelles.add(getDataFromResult(result));
}
result.close();
