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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidapply(BindTarget bindTarget) Apply the binding to aBindTarget.Return the associatedBindMarker.abstract ObjectgetValue()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 is aNULLbinding
-
getValue
Return the binding value.- Returns:
- the value of this binding
(can be
nullif this is aNULLbinding)
-
apply
Apply the binding to aBindTarget.- Parameters:
bindTarget- the target to apply bindings to
-