Interface ResultSetProcessor<T>
- Type Parameters:
T- The type of the result produced by processing theResultSet.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface for processing a
ResultSet.
This interface allows for custom processing of database query results.-
Method Summary
-
Method Details
-
process
Processes the providedResultSetand extracts or manipulates the data as defined by the implementation.- Parameters:
resultSet- TheResultSetcontaining the data to process; must not be null- Returns:
- The result of processing the
ResultSet, as defined by the implementation - Throws:
SQLException- If a database access error occurs or theResultSetis invalid
-