Interface SqlStatementParameterCustomizer


  • public interface SqlStatementParameterCustomizer
    Customize a SqlStatement according to the value of an annotated parameter.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void apply​(SqlStatement<?> stmt, java.lang.Object arg)
      Applies the customization to the SQL statement using the argument passed to the method.
      default void warm​(ConfigRegistry config)
      Called after the customizer is instantiated but before any statement is available, to pre-initialize any configuration data structures.
    • Method Detail

      • apply

        void apply​(SqlStatement<?> stmt,
                   java.lang.Object arg)
            throws java.sql.SQLException
        Applies the customization to the SQL statement using the argument passed to the method.
        Parameters:
        stmt - the statement being customized
        arg - the argument passed to the method
        Throws:
        java.sql.SQLException - will abort statement creation
      • warm

        @Beta
        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