Interface ResultSetProcessor<T>

Type Parameters:
T - The type of the result produced by processing the ResultSet.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ResultSetProcessor<T>
A functional interface for processing a ResultSet. This interface allows for custom processing of database query results.
  • Method Summary

    Modifier and Type
    Method
    Description
    process(ResultSet resultSet)
    Processes the provided ResultSet and extracts or manipulates the data as defined by the implementation.
  • Method Details

    • process

      T process(ResultSet resultSet) throws SQLException
      Processes the provided ResultSet and extracts or manipulates the data as defined by the implementation.
      Parameters:
      resultSet - The ResultSet containing 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 the ResultSet is invalid