public interface ResultSetHandler<T>
Modifier and Type | Method and Description |
---|---|
T |
handle(java.sql.ResultSet rs)
Turn the
ResultSet into an Object. |
@Nullable T handle(java.sql.ResultSet rs) throws java.sql.SQLException
ResultSet
into an Object.rs
- The ResultSet
to handle. It has not been touched
before being passed to this method.ResultSet
data. It is
legal for implementations to return null
if the
ResultSet
contained 0 rows.java.sql.SQLException
- if a database access error occurs