public class BeanMapper<T> extends PojoMapper<T>
prefix, strictColumnTypeMapping, type| Modifier and Type | Method and Description |
|---|---|
protected BeanMapper<?> |
createNestedMapper(StatementContext ctx,
PojoProperties.PojoProperty<T> property,
String nestedPrefix) |
static RowMapperFactory |
factory(Class<?> type)
Returns a mapper factory that maps to the given bean class
|
static RowMapperFactory |
factory(Class<?> type,
String prefix)
Returns a mapper factory that maps to the given bean class
|
protected PojoProperties<T> |
getProperties(ConfigRegistry config) |
static <T> RowMapper<T> |
of(Class<T> type)
Returns a mapper for the given bean class
|
static <T> RowMapper<T> |
of(Class<T> type,
String prefix)
Returns a mapper for the given bean class
|
map, propagateNull, specializeprotected BeanMapper<?> createNestedMapper(StatementContext ctx, PojoProperties.PojoProperty<T> property, String nestedPrefix)
createNestedMapper in class PojoMapper<T>public static RowMapperFactory factory(Class<?> type)
type - the mapped classpublic static RowMapperFactory factory(Class<?> type, String prefix)
type - the mapped classprefix - the column name prefix for each mapped bean propertyprotected PojoProperties<T> getProperties(ConfigRegistry config)
getProperties in class PojoMapper<T>public static <T> RowMapper<T> of(Class<T> type)
T - the type to find the mapper fortype - the mapped classpublic static <T> RowMapper<T> of(Class<T> type, String prefix)
T - the type to find the mapper fortype - the mapped classprefix - the column name prefix for each mapped bean propertyCopyright © 2019. All rights reserved.