Interface PreparedStatementCallback<R>

Type Parameters:
R - The return type

public interface PreparedStatementCallback<R>
SQL PreparedStatement callback interface that helps with dealing with SQLException.
Since:
1.0.0
Author:
graemerocher
  • Method Summary

    Modifier and Type
    Method
    Description
    call(@NonNull PreparedStatement statement)
    Subclasses should implement this method to allow generic exception handling.
  • Method Details

    • call

      @NonNull R call(@NonNull @NonNull PreparedStatement statement) throws SQLException
      Subclasses should implement this method to allow generic exception handling.
      Parameters:
      statement - The statement
      Returns:
      The result
      Throws:
      SQLException - If an error occurs