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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      R call​(java.sql.PreparedStatement statement)
      Subclasses should implement this method to allow generic exception handling.
    • Method Detail

      • call

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