Module storm

Interface SqlTemplate.BatchListener

Enclosing interface:
SqlTemplate
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 static interface SqlTemplate.BatchListener
A listener for batch events within a SQL query context.

When a batch of positional parameters is about to be processed, the onBatch(List) method is called with the current list of parameters.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when a new batch of positional parameters is processed.
  • Method Details

    • onBatch

      void onBatch(@Nonnull List<SqlTemplate.PositionalParameter> parameters)
      Invoked when a new batch of positional parameters is processed.

      Implementations can inspect, transform, or validate the parameters before they are executed.

      Parameters:
      parameters - the list of positional parameters in this batch.