public class Mapper extends Object
Constructor and Description |
---|
Mapper() |
Modifier and Type | Method and Description |
---|---|
static List<PropertySetter> |
buildMapping(Class<?> rowType,
List<ResultField> fields)
Builds a list of mapping setters for the row and fields.
|
protected static PropertySetter[] |
initArraySetters(List<ResultField> fields)
Builds a list of mapping setters for an array row type.
|
protected static PropertySetter[] |
initBeanSetters(Class<?> instanceType,
List<ResultField> fields)
Builds a list of mapping setters for bean row type.
|
protected static PropertySetter[] |
initListSetters(List<ResultField> fields)
Builds a list of mapping setters for a list row type.
|
protected static PropertySetter[] |
initMapSetters(List<ResultField> fields)
Builds a list of mapping setters for a map row type.
|
public static List<PropertySetter> buildMapping(Class<?> rowType, List<ResultField> fields)
rowType
- Row type to map tofields
- Result fields to map fromprotected static PropertySetter[] initArraySetters(List<ResultField> fields)
fields
- Fields to map fromprotected static PropertySetter[] initListSetters(List<ResultField> fields)
fields
- Fields to map fromprotected static PropertySetter[] initMapSetters(List<ResultField> fields)
fields
- Fields to map fromprotected static PropertySetter[] initBeanSetters(Class<?> instanceType, List<ResultField> fields)
instanceType
- The bean instance type to map tofields
- List of setters that can perform the mappingCopyright © 2013-2015 impossibl.com. All Rights Reserved.