Record Class ParameterBinding.Synthetic
java.lang.Object
java.lang.Record
org.springframework.data.jdbc.repository.query.ParameterBinding.Synthetic
- Record Components:
value-source-
- All Implemented Interfaces:
ParameterBinding.ParameterOrigin
- Enclosing class:
ParameterBinding
public static record ParameterBinding.Synthetic(@Nullable Object value, Object source)
extends Record
implements ParameterBinding.ParameterOrigin
Value object capturing the expression of which a binding parameter originates.
- Since:
- 4.0
- Author:
- Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanbooleansource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.@Nullable Objectvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Synthetic
-
-
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). -
value
-
source
-