EnumarableMapper<ROW,SET,T>, FieldMapper<ROW,SET>, Mapper<ROW,SET>, SetRowMapper<ROW,SET,T,E>public class StaticSetRowMapper<ROW,SET,T,E extends Exception> extends AbstractEnumarableMapper<SET,T,E> implements SetRowMapper<ROW,SET,T,E>
errorHandler| Constructor | Description |
|---|---|
StaticSetRowMapper(Mapper<ROW,T> mapper,
ConsumerErrorHandler errorHandler,
MappingContextFactory<? super ROW> mappingContextFactory,
org.simpleflatmapper.util.UnaryFactory<SET,org.simpleflatmapper.util.Enumarable<ROW>> enumarableFactory) |
| Modifier and Type | Method | Description |
|---|---|---|
protected MappingContextFactory<? super ROW> |
getMappingContextFactory() |
|
T |
map(ROW rs) |
map source object to a new newInstance of T
|
T |
map(ROW rs,
MappingContext<? super ROW> context) |
|
void |
mapTo(ROW rs,
T target,
MappingContext<? super ROW> context) |
map source object to target object.
|
protected org.simpleflatmapper.util.Enumarable<T> |
newEnumarableOfT(SET source) |
|
String |
toString() |
forEach, iterator, streamforEach, iterator, streampublic StaticSetRowMapper(Mapper<ROW,T> mapper, ConsumerErrorHandler errorHandler, MappingContextFactory<? super ROW> mappingContextFactory, org.simpleflatmapper.util.UnaryFactory<SET,org.simpleflatmapper.util.Enumarable<ROW>> enumarableFactory)
public final T map(ROW rs) throws MappingException
Mappermap in interface Mapper<ROW,SET>rs - object to map fromMappingException - if an exception occurspublic final T map(ROW rs, MappingContext<? super ROW> context) throws MappingException
map in interface Mapper<ROW,SET>MappingExceptionpublic final void mapTo(ROW rs, T target, MappingContext<? super ROW> context) throws Exception
FieldMappermapTo in interface FieldMapper<ROW,SET>rs - object to map fromtarget - object to map tocontext - the mapping contextException - if an exception occursprotected final org.simpleflatmapper.util.Enumarable<T> newEnumarableOfT(SET source) throws E extends Exception
newEnumarableOfT in class AbstractEnumarableMapper<SET,T,E extends Exception>E extends Exceptionprotected MappingContextFactory<? super ROW> getMappingContextFactory()
Copyright © 2018. All rights reserved.