public final class DiscriminatorJdbcMapper<T> extends AbstractEnumarableDelegateMapper<ResultSet,ResultSet,T,SQLException> implements JdbcMapper<T>
errorHandler
Constructor and Description |
---|
DiscriminatorJdbcMapper(String discriminatorColumn,
List<Tuple2<Predicate<String>,JdbcMapper<T>>> mappers,
RowHandlerErrorHandler rowHandlerErrorHandler) |
Modifier and Type | Method and Description |
---|---|
protected JdbcMapper<T> |
getMapper(ResultSet rs) |
protected DiscriminatorEnumerable<ResultSet,T> |
newEnumarableOfT(ResultSet rs) |
MappingContext<? super ResultSet> |
newMappingContext(ResultSet rs) |
String |
toString() |
map, map, mapTo
forEach, handleT, iterator, stream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, iterator, map, stream
mapTo
public DiscriminatorJdbcMapper(String discriminatorColumn, List<Tuple2<Predicate<String>,JdbcMapper<T>>> mappers, RowHandlerErrorHandler rowHandlerErrorHandler)
protected JdbcMapper<T> getMapper(ResultSet rs) throws MappingException
getMapper
in class AbstractEnumarableDelegateMapper<ResultSet,ResultSet,T,SQLException>
MappingException
protected DiscriminatorEnumerable<ResultSet,T> newEnumarableOfT(ResultSet rs) throws SQLException
newEnumarableOfT
in class AbstractEnumarableMapper<ResultSet,T,SQLException>
SQLException
public MappingContext<? super ResultSet> newMappingContext(ResultSet rs) throws SQLException
newMappingContext
in interface JdbcMapper<T>
newMappingContext
in interface SetRowMapper<ResultSet,ResultSet,T,SQLException>
rs
- the result setSQLException
Copyright © 2016. All rights reserved.