public class ReflectionBeanMapper<T> extends Object implements ResultMapper<T>
| Constructor and Description |
|---|
ReflectionBeanMapper(Class<T> beanClass) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
createBeanInstance() |
static <C> ReflectionBeanMapper<C> |
createInstance(Class<C> beanClass) |
T |
transform(ResultSet resultSet)
Transforms JDBC data into Java object.
|
public static <C> ReflectionBeanMapper<C> createInstance(Class<C> beanClass)
public T transform(ResultSet resultSet) throws SQLException
ResultMapper
This method is called for each row in ResultSet.
transform in interface ResultMapper<T>resultSet - result set with dataSQLException - in case of reading errorprotected T createBeanInstance() throws SQLException
SQLExceptionCopyright © 2014–2015 Vracon s.r.o.. All rights reserved.