Package org.jdbi.v3.core.mapper.reflect
Class BeanMapper<T>
java.lang.Object
org.jdbi.v3.core.mapper.reflect.internal.PojoMapper<T>
org.jdbi.v3.core.mapper.reflect.BeanMapper<T>
- All Implemented Interfaces:
- RowMapper<T>
public final class BeanMapper<T>
extends org.jdbi.v3.core.mapper.reflect.internal.PojoMapper<T>
A row mapper which maps the columns in a statement into a JavaBean. The default
 implementation will perform a case insensitive mapping between the bean property
 names and the column labels, also considering camel-case to underscores conversion.
 This uses the JDK's built in bean mapping facilities, so it does not support nested
 properties.
 The mapped class must have a default constructor.
- 
Method SummaryModifier and TypeMethodDescriptionstatic RowMapperFactoryReturns a mapper factory that maps to the given bean classstatic RowMapperFactoryReturns a mapper factory that maps to the given bean classstatic <T> RowMapper<T>Returns a mapper for the given bean classstatic <T> RowMapper<T>Returns a mapper for the given bean classMethods inherited from class org.jdbi.v3.core.mapper.reflect.internal.PojoMappermap, specialize
- 
Method Details- 
factoryReturns a mapper factory that maps to the given bean class- Parameters:
- type- the mapped class
- Returns:
- a mapper factory that maps to the given bean class
 
- 
factoryReturns a mapper factory that maps to the given bean class- Parameters:
- type- the mapped class
- prefix- the column name prefix for each mapped bean property
- Returns:
- a mapper factory that maps to the given bean class
 
- 
ofReturns a mapper for the given bean class- Type Parameters:
- T- the type to find the mapper for
- Parameters:
- type- the mapped class
- Returns:
- a mapper for the given bean class
 
- 
ofReturns a mapper for the given bean class- Type Parameters:
- T- the type to find the mapper for
- Parameters:
- type- the mapped class
- prefix- the column name prefix for each mapped bean property
- Returns:
- a mapper for the given bean class
 
 
-