|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.core.AbstractBeanPropertyRowMapper
public abstract class AbstractBeanPropertyRowMapper
Abstract base class for BeanPropertyRowMapper implementations. Provides initialization of mapped/persistent fields metadata and the actual mapping between bean properties and SQL table columns.
Nested Class Summary | |
---|---|
protected class |
AbstractBeanPropertyRowMapper.PersistentField
A PersistentField represents the info we are interested in knowing about the fields and their relationship to the columns of the database table. |
Field Summary | |
---|---|
protected Log |
logger
Logger available to subclasses |
protected Class |
mappedClass
The class we are mapping to |
Constructor Summary | |
---|---|
AbstractBeanPropertyRowMapper()
|
Method Summary | |
---|---|
protected Object |
doMapRow(ResultSet rs,
int rowNumber)
|
protected void |
doSetMappedClass(Class mappedClass)
Set the class that each row should be mapped to. |
Class |
getMappedClass()
Get the class that we are mapping to. |
protected void |
initialize(Class mappedClass)
Initialize the mapping metadata |
static String |
underscoreName(String name)
Convert a name in camelCase to an underscored name in lower case. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Log logger
protected Class mappedClass
Constructor Detail |
---|
public AbstractBeanPropertyRowMapper()
Method Detail |
---|
protected void doSetMappedClass(Class mappedClass)
mappedClass
- the mapped classpublic Class getMappedClass()
protected Object doMapRow(ResultSet rs, int rowNumber) throws SQLException
SQLException
protected void initialize(Class mappedClass)
mappedClass
- public static String underscoreName(String name)
name
- The string containing original name
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |