|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.core.JdbcTemplate.RowCallbackHandlerResultSetExtractor
Adapter to enable use of a RowCallbackHandler inside a ResultSetExtractor.
Uses a regular ResultSet, so we have to be careful when using it: We don't use it for navigating since this could lead to unpredictable consequences.
Constructor Summary | |
JdbcTemplate.RowCallbackHandlerResultSetExtractor(RowCallbackHandler rch)
|
Method Summary | |
java.lang.Object |
extractData(java.sql.ResultSet rs)
Implementations must implement this method to process all rows in the ResultSet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JdbcTemplate.RowCallbackHandlerResultSetExtractor(RowCallbackHandler rch)
Method Detail |
public java.lang.Object extractData(java.sql.ResultSet rs) throws java.sql.SQLException
ResultSetExtractor
extractData
in interface ResultSetExtractor
rs
- ResultSet to extract data from. Implementations should
not close this: it will be closed by the JdbcTemplate.
java.sql.SQLException
- if a SQLException is encountered getting column
values or navigating (that is, there's no need to catch SQLException)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |