org.skife.jdbi.v2.tweak
Interface ResultSetMapper<T>

All Known Implementing Classes:
BaseResultSetMapper, BeanMapper, BigDecimalMapper, BooleanMapper, ByteArrayMapper, ByteMapper, DefaultMapper, DoubleMapper, FloatMapper, IntegerMapper, LongMapper, ShortMapper, StringMapper, TimestampMapper, TypedMapper, URLMapper

public interface ResultSetMapper<T>

Used with a Query.map(ResultSetMapper) call to specify what to do with each row of a result set


Method Summary
 T map(int index, ResultSet r, StatementContext ctx)
          Map the row the result set is at when passed in.
 

Method Detail

map

T map(int index,
      ResultSet r,
      StatementContext ctx)
      throws SQLException
Map the row the result set is at when passed in. This method should not cause the result set to advance, allow jDBI to do that, please.

Parameters:
index - which row of the result set we are at, starts at 0
r - the result set being iterated
ctx -
Returns:
the value to return for this row
Throws:
SQLException - if anythign goes wrong go ahead and let this percolate, jDBI will handle it


Copyright © 2013. All Rights Reserved.