Ciao a tutti, dovrei aggiungere degli elementi ad un'ArrayList, ma non funza.. vi posto il codice così se vi va mi date una mano.. ciao !!!
class RowMapperLineeCredito implements IRowMapper {
public void mapRowIntoBean(ResultSet res, Object bean) throws DAOException {
try {
ArrayList resultList = new ArrayList();
LineaCredito lc = (LineaCredito)bean;
lc.setImportoInEssere(new Importo(res.getString "importo_in_essere")));
lc.setImportoProposto(new Importo(res.getString("importo_deliberato")));
Divisa divisa = new Divisa();
divisa.setCodiceDivisa(res.getString("divisa"));
lc.setDivisa(divisa);
lc.setDescrizione(res.getString("filc_dsc_lin_cre" ));
resultList.add(lc); //Ne aggiunge 1 solo !!!!
system.out.println(lc.getDescrizione() + lc.getImportoInEssere());
System.out.println(resultList.size());
} catch (Exception exc) {
throw new DAOException("Error mapping a row in the bean", exc);
}
}
}