try{
ps = conn.prepareStatement("select * from estado");
rs = ps.executeQuery();
List<Estado> list = new ArrayList<Estado>();
while(rs.next()) {
list.add(new Estado(rs.getInt(1), rs.getString(2), rs.getString(3)));
}
return list;
} catch (Exception e) {
e.printStackTrace();
}