public static List<Cl> select(DbConn cnx, String query_key, Object... args) { List<Cl> res = new ArrayList<Cl>(); try { ResultSet rs = cnx.runSelect(query_key, args); while (rs.next()) { Cl tmp = map(rs, 0); res.add(tmp); tmp.handlerCache = tmp.getHandlers(cnx); } } catch (SQLException e) { throw new DatabaseException(e); } return res; }
public static List<Cl> select(DbConn cnx, String query_key, Object... args) { List<Cl> res = new ArrayList<>(); try { ResultSet rs = cnx.runSelect(query_key, args); while (rs.next()) { Cl tmp = map(rs, 0); res.add(tmp); tmp.handlerCache = tmp.getHandlers(cnx); } } catch (SQLException e) { throw new DatabaseException(e); } return res; }