R - The type of object this RowMapper yields from a ResultSet@FunctionalInterface public interface RowMapper<R>
ResultSet to an object.| Modifier and Type | Interface and Description |
|---|---|
static interface |
RowMapper.Quadrupled<T,U,V,W> |
static interface |
RowMapper.Tripled<T,U,V> |
static interface |
RowMapper.Tupled<T,U> |
| Modifier and Type | Method and Description |
|---|---|
default <S> RowMapper<S> |
andThen(Function<? super R,S> resultMapper)
Create a new mapper which takes the result of this mapper and applies
the given
Function to yield another result. |
default <S> RowMapper.Tupled<R,S> |
combinedWith(RowMapper<S> otherMapper)
Create a new row mapper which first runs this mapper and then the given mapper, and
combines the two results into a
Tuple. |
default R |
fromResultSet(ResultSet resultSet) |
R |
fromResultSet(ResultSet resultSet,
int rowNum) |
static <R> RowMapper<R> |
of(RowMapper<R> mapper) |
static <R> RowMapper<R> |
of(ThrowingFunction<ResultSet,R,SQLException> mapper) |
static <R> RowMapper<R> of(ThrowingFunction<ResultSet,R,SQLException> mapper)
R fromResultSet(ResultSet resultSet, int rowNum) throws SQLException
SQLExceptiondefault R fromResultSet(ResultSet resultSet) throws SQLException
SQLExceptiondefault <S> RowMapper.Tupled<R,S> combinedWith(RowMapper<S> otherMapper)
Tuple.otherMapper - the mapper to run in addition to this.default <S> RowMapper<S> andThen(Function<? super R,S> resultMapper)
Function to yield another result.S - the output type of the given resultMapper function,
which also become the type of the result produced by the new
row mapper.resultMapper - the function to apply to the resultCopyright © 2016 Digipost. All rights reserved.