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.
  • 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

      @Nullable public abstract 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