public class YankBeanProcessor<T>
extends org.apache.commons.dbutils.BeanProcessor
| Constructor and Description |
|---|
YankBeanProcessor(Class<T> type)
Constructor for YankBeanProcessor configured with Bean class type to look for "Column" annotations for column ==> field mapping
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
mapColumnsToProperties(ResultSetMetaData rsmd,
PropertyDescriptor[] props)
The positions in the returned array represent column numbers.
|
protected int[] mapColumnsToProperties(ResultSetMetaData rsmd, PropertyDescriptor[] props) throws SQLException
PropertyDescriptor[] for the bean property that matches the column name. Also tried to match snake case column names or overrides.
If no bean property was found for a column, the position is set to PROPERTY_NOT_FOUND.mapColumnsToProperties in class org.apache.commons.dbutils.BeanProcessorrsmd - The ResultSetMetaData containing column information.props - The bean property descriptors.SQLException - if a database access error occursCopyright © 2011–2017 Knowm Inc.. All rights reserved.