Interface BindMarker


public interface BindMarker
A bind marker represents a single bindable parameter within a query.

Bind markers are dialect-specific and provide a placeholder that is used in the actual query.

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

    Modifier and Type
    Method
    Description
    void
    bind(BindTarget bindTarget, Object value)
    Bind the given value to the Statement using the underlying binding strategy.
    void
    bindNull(BindTarget bindTarget, Class<?> valueType)
    Bind a null value to the Statement using the underlying binding strategy.
    Return the database-specific placeholder for a given substitution.
  • Method Details

    • getPlaceholder

      String getPlaceholder()
      Return the database-specific placeholder for a given substitution.
    • bind

      void bind(BindTarget bindTarget, Object value)
      Bind the given value to the Statement using the underlying binding strategy.
      Parameters:
      bindTarget - the target to bind the value to
      value - the actual value (must not be null; use bindNull(BindTarget, Class) for null values)
      See Also:
    • bindNull

      void bindNull(BindTarget bindTarget, Class<?> valueType)
      Bind a null value to the Statement using the underlying binding strategy.
      Parameters:
      bindTarget - the target to bind the value to
      valueType - the value type (must not be null)
      See Also: