Class ParameterBinding
java.lang.Object
org.springframework.data.jdbc.repository.query.ParameterBinding
- Direct Known Subclasses:
ParameterBinding.LikeParameterBinding
A generic parameter binding with name or position information.
- Since:
- 4.0
- Author:
- Mark Paluch
-
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 classRepresents a parameter binding in a JDBC query augmented with instructions of how to apply a parameter as LIKE parameter.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 final recordValue object capturing the expression of which a binding parameter originates. -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable StringgetName()inthashCode()static ParameterBindinglike(ParameterBinding binding, Part.Type partType) static ParameterBindingnamed(String name, ParameterBinding.ParameterOrigin origin) Creates a newParameterBindingfor the named parameter with the given name and origin.static ParameterBindingCreates a newParameterBindingfor the parameter with the given name and origin.toString()
-
Method Details
-
of
Creates a newParameterBindingfor the parameter with the given name and origin.- Parameters:
parameter-- Returns:
-
named
Creates a newParameterBindingfor the named parameter with the given name and origin.- Parameters:
name-origin-- Returns:
-
like
- Parameters:
binding-partType-- Returns:
-
getIdentifier
-
getOrigin
-
getName
- Returns:
- the name if available or null.
-
equals
-
hashCode
-
toString
-