ResultSetExtractor implementation that returns a Spring SqlRowSet
representation for each given ResultSet.
The default implementation uses a standard JDBC CachedRowSet underneath.
newCachedRowSet, org.springframework.jdbc.support.rowset.SqlRowSet , JdbcTemplate#queryForRowSet(String), javax.sql.rowset.CachedRowSet
| Modifier and Type | Field and Description |
|---|---|
| private static final RowSetFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected SqlRowSet | Returns: the disconnected SqlRowSetthe original ResultSet (connected) rs)Create a |
| public SqlRowSet | extractData(ResultSet
the ResultSet to extract data from. Implementations should
not close this: it will be closed by the calling JdbcTemplate. rs)Implements org. Implementations must implement this method to process the entire ResultSet. |
| protected CachedRowSet | Returns: a new CachedRowSet instanceCreate a new |
| rowSetFactory | back to summary |
|---|---|
| private static final RowSetFactory rowSetFactory | |
| SqlRowSetResultSetExtractor | back to summary |
|---|---|
| public SqlRowSetResultSetExtractor() | |
| createSqlRowSet | back to summary |
|---|---|
| protected SqlRowSet createSqlRowSet(ResultSet rs) throws SQLException Create a This implementation creates a Spring
| |
| extractData | back to summary |
|---|---|
| public SqlRowSet extractData(ResultSet rs) throws SQLException Implements org. Doc from org. Implementations must implement this method to process the entire ResultSet.
| |
| newCachedRowSet | back to summary |
|---|---|
| protected CachedRowSet newCachedRowSet() throws SQLException Create a new The default implementation uses JDBC 4.1's
| |