Class Bindings.Binding

java.lang.Object
org.springframework.r2dbc.core.binding.Bindings.Binding
Enclosing class:
Bindings

public abstract static class Bindings.Binding extends Object
Base class for value objects representing a value or a null binding.
Since:
5.3
Author:
Mark Paluch
  • Constructor Details

  • Method Details

    • getBindMarker

      public BindMarker getBindMarker()
      Return the associated BindMarker.
    • hasValue

      public abstract boolean hasValue()
      Return whether the binding has a value associated with it.
      Returns:
      true if there is a value present, otherwise false for a null binding
    • isnull

      public boolean isnull()
      Return whether the binding is empty.
      Returns:
      true if this is a null binding
    • getValue

      public abstract @nullable Object getValue()
      Return the binding value.
      Returns:
      the value of this binding (can be null if this is a null binding)
    • apply

      public abstract void apply(BindTarget bindTarget)
      Apply the binding to a BindTarget.
      Parameters:
      bindTarget - the target to apply bindings to