public abstract class AbstractDynamicJdbcMapper<T> extends Object implements JdbcMapper<T>
| Constructor and Description |
|---|
AbstractDynamicJdbcMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Mapper<ResultSet,T> |
getMapper(ResultSet source) |
T |
map(ResultSet source)
map source object to a new instance of T
|
T |
map(ResultSet source,
MappingContext<ResultSet> mappingContext) |
void |
mapTo(ResultSet source,
T target,
MappingContext<ResultSet> mappingContext)
map source object to target object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, iterate, iteratornewMappingContextpublic final T map(ResultSet source) throws MappingException
Mappermap in interface Mapper<ResultSet,T>source - object to map fromMappingException - if an exception occurspublic final T map(ResultSet source, MappingContext<ResultSet> mappingContext) throws MappingException
map in interface Mapper<ResultSet,T>MappingExceptionpublic final void mapTo(ResultSet source, T target, MappingContext<ResultSet> mappingContext) throws Exception
FieldMappermapTo in interface FieldMapper<ResultSet,T>source - object to map fromtarget - object to map tomappingContext - the mapping contextException - if an exception occursprotected abstract Mapper<ResultSet,T> getMapper(ResultSet source) throws SQLException
SQLExceptionCopyright © 2015. All rights reserved.