Class ParameterBinding
java.lang.Object
org.springframework.data.jpa.repository.query.ParameterBinding
- Direct Known Subclasses:
ParameterBinding.PartTreeParameterBinding
A generic parameter binding with name or position information.
- Author:
- Thomas Darimont, Mark Paluch, Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceIdentifies a binding parameter by name, position or both.static final recordValue object capturing the expression of which a binding parameter originates.static final recordValue object capturing the method invocation parameter reference.static interfaceValue type hierarchy to describe where a binding parameter comes from, either method call or an expression.static classRepresents aParameterBindingin a JPQL query augmented with instructions of how to apply a parameter as anINparameter.static final recordValue object capturing the expression of which a binding parameter originates. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbindsTo(ParameterBinding other) Check whether theotherbinding uses the same bind target.boolean@Nullable StringgetName()inthashCode()booleanisCompatibleWith(ParameterBinding other) Check whether this binding can be bound as theotherbinding by checking its type and origin.@Nullable ObjecttoString()
-
Method Details
-
getIdentifier
-
getOrigin
-
getName
- Returns:
- the name if available or null.
-
equals
-
hashCode
-
toString
-
prepare
-
bindsTo
Check whether theotherbinding uses the same bind target.- Parameters:
other- must not be null.- Returns:
trueif the other binding uses the same parameter to bind to as this one.
-
isCompatibleWith
Check whether this binding can be bound as theotherbinding by checking its type and origin. Subclasses may override this method to include other properties for the compatibility check.- Parameters:
other-- Returns:
trueif the other binding is compatible with this one.
-