public class BeanRowMapper<T> extends Object implements org.springframework.jdbc.core.RowMapper<T>
| Constructor and Description |
|---|
BeanRowMapper(Class<T> beanClass) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getBeanClass() |
T |
mapRow(ResultSet rs,
int rowNum) |
protected void |
setBeanClass(Class<T> beanClass)
Method set beanClass and read information from the bean and to create internal mapping table
for properties ( propertyNameLowerCase => propertyName )
|
public BeanRowMapper(Class<T> beanClass) throws IntrospectionException
IntrospectionExceptionpublic T mapRow(ResultSet rs, int rowNum) throws SQLException
mapRow in interface org.springframework.jdbc.core.RowMapper<T>SQLExceptionprotected void setBeanClass(Class<T> beanClass) throws IntrospectionException
IntrospectionExceptionCopyright © 2010–2021 Vegard IT GmbH, Germany. All rights reserved.