101102103104105106107108109110111
List<RamoTO> list = new ArrayList<RamoTO>(); while(rs.next()) { int idRamo = rs.getInt(1); String nomeRamo = rs.getString(2); list.add(new RamoTO(Boolean.FALSE,idRamo, nomeRamo)); } return list; } catch (Exception e) { e.printStackTrace(); }