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
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
apply
(BindTarget bindTarget) Apply the binding to aBindTarget
.Return the associatedBindMarker
.abstract Object
getValue()
Return the binding value.abstract boolean
hasValue()
Return whether the binding has a value associated with it.boolean
isNull()
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:
true
if there is a value present, otherwisefalse
for aNULL
binding
-
isNull
public boolean isNull()Return whether the binding is empty.- Returns:
true
if this is aNULL
binding
-
getValue
Return the binding value.- Returns:
- the value of this binding
(can be
null
if this is aNULL
binding)
-
apply
Apply the binding to aBindTarget
.- Parameters:
bindTarget
- the target to apply bindings to
-