public class ConfigurableRowMapperMap extends Object implements RowMapperMap
RowMapperMap that allows for registration of RowMappers via a fluent Api.EMPTY| Constructor and Description |
|---|
ConfigurableRowMapperMap() |
| Modifier and Type | Method and Description |
|---|---|
<T> ConfigurableRowMapperMap |
register(Class<T> type,
RowMapper<? extends T> rowMapper)
Registers a the given
RowMapper as to be used for the given type. |
<T> RowMapper<? extends T> |
rowMapperFor(Class<T> type)
|
public <T> ConfigurableRowMapperMap register(Class<T> type, RowMapper<? extends T> rowMapper)
RowMapper as to be used for the given type.@Nullable public <T> RowMapper<? extends T> rowMapperFor(Class<T> type)
RowMapper for the given type if such a RowMapper is present. If an exact match is found
that is returned. If not a RowMapper is returned that produces subtypes of the requested type. If no such
RowMapper is found the method returns null.rowMapperFor in interface RowMapperMapT - the type to be produced by the returned RowMapper.type - the type to be produced by the returned RowMapper. Must not be null.null.Copyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.