Interface SqlStatementCustomizer

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 SqlStatementCustomizer
Used with SqlStatementCustomizerFactory to customize sql statements via annotations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked to customize the sql statement
    default void
    Called after the customizer is instantiated but before any statement is available, to pre-initialize any configuration data structures.
  • Method Details

    • apply

      void apply(SqlStatement<?> q) throws SQLException
      Invoked to customize the sql statement
      Parameters:
      q - the statement being customized
      Throws:
      SQLException - will abort statement creation
    • warm

      default void warm(ConfigRegistry config)
      Called after the customizer is instantiated but before any statement is available, to pre-initialize any configuration data structures.
      Parameters:
      config - the configuration registry to warm