S - Enumerable Source typeT - Target typeE - Source exception typeSetRowMapper<ROW,SET,T,E>AbstractEnumarableDelegateMapper, AbstractEnumarableMapper, DiscriminatorMapper, DynamicSetRowMapper, JoinMapper, StaticSetRowMapperpublic interface EnumarableMapper<S,T,E extends Exception>
| Modifier and Type | Method | Description |
|---|---|---|
<H extends org.simpleflatmapper.util.CheckedConsumer<? super T>> |
forEach(S source,
H handler) |
Loop over the resultSet, map each row to a new newInstance of T and call back the handler
|
Iterator<T> |
iterator(S source) |
|
Stream<T> |
stream(S source) |
<H extends org.simpleflatmapper.util.CheckedConsumer<? super T>> H forEach(S source, H handler) throws E extends Exception, MappingException
The method will return the handler passed as an argument so you can easily chain the calls like
List<T> list = jdbcMapper.forEach(rs, new ListHandler<T>()).getList();
H - the row handler typesource - the sourcehandler - the handler that will get the callbackE - if source error occursMappingException - if an error occurs during the mappingE extends ExceptionIterator<T> iterator(S source) throws E extends Exception, MappingException
source - the sourceE - if source error occursMappingException - if an error occurs during the mappingE extends ExceptionStream<T> stream(S source) throws E extends Exception, MappingException
source - the sourceE - if source error occursMappingException - if an error occurs during the mappingE extends ExceptionCopyright © 2018. All rights reserved.