public class StaticSetRowMapper<ROW,SET,T,E extends Exception> extends AbstractEnumerableMapper<SET,T,E> implements SetRowMapper<ROW,SET,T,E>
errorHandler| Constructor and Description |
|---|
StaticSetRowMapper(ContextualSourceMapper<ROW,T> mapper,
ConsumerErrorHandler errorHandler,
MappingContextFactory<? super ROW> mappingContextFactory,
org.simpleflatmapper.util.UnaryFactory<SET,org.simpleflatmapper.util.Enumerable<ROW>> enumerableFactory) |
| Modifier and Type | Method and Description |
|---|---|
org.simpleflatmapper.util.Enumerable<T> |
enumerate(SET source) |
protected MappingContextFactory<? super ROW> |
getMappingContextFactory() |
T |
map(ROW source)
map the current row of source object to a new newInstance of T.
|
T |
map(ROW rs,
MappingContext<? super ROW> context)
map the current row of source object to a new newInstance of T.
|
String |
toString() |
forEach, iterator, streamclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, iterator, streampublic StaticSetRowMapper(ContextualSourceMapper<ROW,T> mapper, ConsumerErrorHandler errorHandler, MappingContextFactory<? super ROW> mappingContextFactory, org.simpleflatmapper.util.UnaryFactory<SET,org.simpleflatmapper.util.Enumerable<ROW>> enumerableFactory)
public T map(ROW source) throws MappingException
ContextualSourceMappermap in interface ContextualSourceMapper<ROW,T>source - object to map fromMappingException - if an exception occurspublic final T map(ROW rs, MappingContext<? super ROW> context) throws MappingException
SourceMappermap in interface SourceMapper<ROW,T>rs - object to map fromMappingException - if an exception occurspublic final org.simpleflatmapper.util.Enumerable<T> enumerate(SET source) throws E extends Exception
protected MappingContextFactory<? super ROW> getMappingContextFactory()
Copyright © 2018. All rights reserved.