Interface PreparedStatementCustomizer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Customizes a PreparedStatement before execution.

Used by Query.customize(PreparedStatementCustomizer).

Since:
4.0.0
Author:
Mark Allen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(@NonNull StatementContext<?> statementContext, @NonNull PreparedStatement preparedStatement)
    Applies customization to the prepared statement before execution.
  • Method Details

    • customize

      void customize(@NonNull StatementContext<?> statementContext, @NonNull PreparedStatement preparedStatement) throws SQLException
      Applies customization to the prepared statement before execution.
      Parameters:
      statementContext - current SQL context
      preparedStatement - the prepared statement to customize
      Throws:
      SQLException - if customization fails