Class Bindings.Binding
java.lang.Object
org.springframework.r2dbc.core.binding.Bindings.Binding
- Enclosing class:
Bindings
Base class for value objects representing a value or a
null binding.- Since:
- 5.3
- Author:
- Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidapply(BindTarget bindTarget) Apply the binding to aBindTarget.Return the associatedBindMarker.getValue()Return the binding value.abstract booleanhasValue()Return whether the binding has a value associated with it.booleanisnull()Return whether the binding is empty.
-
Constructor Details
-
Binding
-
-
Method Details
-
getBindMarker
Return the associatedBindMarker. -
hasValue
public abstract boolean hasValue()Return whether the binding has a value associated with it.- Returns:
trueif there is a value present, otherwisefalsefor anullbinding
-
isnull
public boolean isnull()Return whether the binding is empty.- Returns:
trueif this is anullbinding
-
getValue
-
apply
Apply the binding to aBindTarget.- Parameters:
bindTarget- the target to apply bindings to
-