SqlRowSet rs = getJdbcTemplate().queryForRowSet(query.toString(), args, argsType);
if (rs != null) {
lista = new ArrayList<ControparteMutuo>(0);
while( rs.next() ){
ControparteMutuo cm = new ControparteMutuo();
cm.setNumeroMutuo(rs.getLong(1));
cm.setNumeroMutuoOrig(rs.getLong(2));
cm.setDescrizioneMutuo(rs.getString(3));
cm.setSaldo(rs.getDouble(4));
cm.setImportoIncassato(rs.getDouble(5));
cm.setDataValuta(rs.getDate(6));
cm.setFlagAbbuono(rs.getString(7));
cm.setTipoPam(rs.getString(8));
cm.setNumeroPam(rs.getLong(9));
cm.setProgressivoRata(rs.getInt(10));
cm.setImportoRata(rs.getDouble(11));
cm.setDataScadenzaRata(rs.getDate(12));
cm.setProgressivoPartita(rs.getInt(13));
cm.setMinimoRiga(rs.getInt(14));
cm.setIncasso(rs.getString(15));
lista.add(cm);
}
}
return lista;