Top Description Methods
liquibase.executor.jvm

pack-priv Interface ResultSetExtractor

Known Direct Implementers
liquibase.executor.jvm.RowMapperResultSetExtractor
Imports
java.sql.ResultSet, .SQLException

Callback interface used by liquibase.executor.Executor's query methods. Implementations of this interface perform the actual work of extracting results from a java.sql.ResultSet, but don't need to worry about exception handling. SQLExceptions will be caught and handled by the calling JdbcTemplate.

Author
Spring Framework
See Also
liquibase.executor.Executor, RowCallbackHandler, RowMapper

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

an arbitrary result object, or null if none (the extractor will typically be stateful in the latter case).
extractData
(ResultSet
ResultSet to extract data from. Implementations should not close this: it will be closed by the calling JdbcTemplate.
rs
)

Implementations must implement this method to process the entire ResultSet.

Method Detail

extractDataback to summary
public Object extractData(ResultSet rs) throws SQLException

Implementations must implement this method to process the entire ResultSet.

Parameters
rs:ResultSet

ResultSet to extract data from. Implementations should not close this: it will be closed by the calling JdbcTemplate.

Returns:Object

an arbitrary result object, or null if none (the extractor will typically be stateful in the latter case).

Exceptions
SQLException:
if a SQLException is encountered getting column values or navigating (that is, there's no need to catch SQLException)
DatabaseException:
in case of custom exceptions