210211212213214215216217218219220
while (startRow-- > 0 && rs.next()) { } Result result; result = new ResultImpl(rs, maxRows); rs.close(); stmt.close(); CoreSetTag.setValue(pageContext, _var, _scope, result);
189190191192193194195196197198199200201
} } Result result; if (_maxRows != null) result = new ResultImpl(rs, (int) _maxRows.evalLong(env)); else result = new ResultImpl(rs, -1); rs.close(); stmt.close(); CoreSetTag.setValue(pageContext, _var, _scope, result);
34353637383940414243
public class ResultSupport { public static Result toResult(ResultSet rs) { try { return new ResultImpl(rs, -1); } catch (Exception e) { return null; } }
43444546474849505152
} public static Result toResult(ResultSet rs, int maxRows) { try { return new ResultImpl(rs, maxRows); } catch (Exception e) { return null; } }