@Override public List<ResultType> munge(ResultSet rs) throws SQLException { List<ResultType> result_list = new ArrayList<ResultType>(); int index = 0; while (rs.next() && index < maxRows) { result_list.add(mapper.map(index++, rs, getContext())); } return result_list; } });
public Void munge(ResultSet rs) throws SQLException { while (rs.next()) { acc.set(folder.fold(acc.get(), rs, getContext())); } return null; } });
@Override public ResultIterator<ResultType> munge(Statement stmt) throws SQLException { return new ResultSetResultIterator<ResultType>(mapper, Query.this, stmt, getContext()); } });
public List<ResultType> munge(ResultSet rs) throws SQLException { List<ResultType> result_list = new ArrayList<ResultType>(); int index = 0; while (rs.next() && index < maxRows) { result_list.add(mapper.map(index++, rs, getContext())); } return result_list; } });
@Override public Void munge(ResultSet rs) throws SQLException { while (rs.next()) { acc.set(folder.fold(acc.get(), rs, getContext())); } return null; } });
public ResultIterator<ResultType> munge(Statement stmt) throws SQLException { return new ResultSetResultIterator<ResultType>(mapper, Query.this, stmt, getContext()); } });
@Override protected AccumulatorType munge(ResultSet rs) throws SQLException { final FoldController ctl = new FoldController(rs); while (!ctl.isAborted() && rs.next()) { ResultType row_value = mapper.map(idx++, rs, getContext()); this.ac = folder.fold(ac, row_value, ctl, getContext()); } return ac; } });
@Override protected AccumulatorType munge(ResultSet rs) throws SQLException { final FoldController ctl = new FoldController(rs); while (!ctl.isAborted() && rs.next()) { ResultType row_value = mapper.map(idx++, rs, getContext()); this.ac = folder.fold(ac, row_value, ctl, getContext()); } return ac; } });
@Override public Object invoke(HandleDing h, Object target, Object[] args, MethodProxy mp) { Query q = h.getHandle().createQuery(sql); populateSqlObjectData((ConcreteStatementContext) q.getContext()); applyCustomizers(q, args); applyBinders(q, args); return magic.map(method, q, h); } }
public Object invoke(HandleDing h, Object target, Object[] args, MethodProxy mp) { Query q = h.getHandle().createQuery(sql); populateSqlObjectData((ConcreteStatementContext) q.getContext()); applyCustomizers(q, args); applyBinders(q, args); return magic.map(method, q, h); } }