Interface BindMarkers

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 BindMarkers
Bind markers represent placeholders in SQL queries for substitution for an actual parameter. Using bind markers allows creating safe queries so query strings are not required to contain escaped values but rather the driver encodes parameter in the appropriate representation.

BindMarkers is stateful and can be only used for a single binding pass of one or more parameters. It maintains bind indexes/bind parameter names.

Since:
5.3
Author:
Mark Paluch
See Also:
  • Method Details

    • next

      BindMarker next()
      Create a new BindMarker.
    • next

      default BindMarker next(String hint)
      Create a new BindMarker that accepts a hint. Implementations are allowed to consider/ignore/filter the name hint to create more expressive bind markers.
      Parameters:
      hint - an optional name hint that can be used as part of the bind marker
      Returns:
      a new BindMarker