public class ContextualSourceFieldMapperImpl<S,T> extends Object implements ContextualSourceFieldMapper<S,T>
| Constructor and Description |
|---|
ContextualSourceFieldMapperImpl(MappingContextFactory<? super S> mappingContextFactory,
SourceFieldMapper<S,T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
SourceFieldMapper<S,T> |
getDelegate() |
MappingContextFactory<? super S> |
getMappingContextFactory() |
T |
map(S source)
map the current row of source object to a new newInstance of T.
|
T |
map(S source,
MappingContext<? super S> context)
map the current row of source object to a new newInstance of T.
|
void |
mapTo(S source,
T target,
MappingContext<? super S> context)
map source object to target object.
|
MappingContext<? super S> |
newMappingContext() |
String |
toString() |
public ContextualSourceFieldMapperImpl(MappingContextFactory<? super S> mappingContextFactory, SourceFieldMapper<S,T> delegate)
public SourceFieldMapper<S,T> getDelegate()
public MappingContext<? super S> newMappingContext()
public T map(S source) throws MappingException
ContextualSourceMappermap in interface ContextualSourceMapper<S,T>source - object to map fromMappingException - if an exception occurspublic T map(S source, MappingContext<? super S> context) throws MappingException
SourceMappermap in interface SourceMapper<S,T>source - object to map fromcontext - the contextMappingException - if an exception occurspublic void mapTo(S source, T target, MappingContext<? super S> context) throws Exception
FieldMappermapTo in interface FieldMapper<S,T>source - object to map fromtarget - object to map tocontext - the mapping contextException - if an exception occurspublic MappingContextFactory<? super S> getMappingContextFactory()
Copyright © 2020. All rights reserved.