Record Class ParameterBinding.Expression
java.lang.Object
java.lang.Record
org.springframework.data.jdbc.repository.query.ParameterBinding.Expression
- Record Components:
expression-
- All Implemented Interfaces:
ParameterBinding.ParameterOrigin
- Enclosing class:
ParameterBinding
public static record ParameterBinding.Expression(ValueExpression expression)
extends Record
implements ParameterBinding.ParameterOrigin
Value object capturing the expression of which a binding parameter originates.
- Since:
- 4.0
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionExpression(ValueExpression expression) Creates an instance of aExpressionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Expression
Creates an instance of aExpressionrecord class.- Parameters:
expression- the value for theexpressionrecord component
-
-
Method Details
-
isMethodArgument
public boolean isMethodArgument()- Specified by:
isMethodArgumentin interfaceParameterBinding.ParameterOrigin- Returns:
trueif the origin is a method argument reference.
-
isExpression
public boolean isExpression()- Specified by:
isExpressionin interfaceParameterBinding.ParameterOrigin- Returns:
trueif the origin is an expression.
-
isSynthetic
public boolean isSynthetic()- Specified by:
isSyntheticin interfaceParameterBinding.ParameterOrigin- Returns:
trueif the origin is synthetic (contributed by e.g. KeysetPagination)
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-