Interface SqlExecutor<T>

Type Parameters:
T - The type of the result
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 SqlExecutor<T>
The executor to apply the PreparedStatement
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(PreparedStatement preparedStatement)
    Apply the prepared statement to get the result
  • Method Details

    • apply

      T apply(PreparedStatement preparedStatement) throws SQLException
      Apply the prepared statement to get the result
      Parameters:
      preparedStatement - The prepared statement
      Returns:
      The result
      Throws:
      SQLException - If an SQL error occurs