Record Class JpqlQueryBuilder.ParameterPlaceholder
java.lang.Object
java.lang.Record
org.springframework.data.jpa.repository.query.JpqlQueryBuilder.ParameterPlaceholder
- Record Components:
placeholder-
- Enclosing class:
JpqlQueryBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionParameterPlaceholder(String placeholder) Creates an instance of aParameterPlaceholderrecord class. -
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.indexed(int index) Factory method to create a parameter placeholder using a parameterindex.Factory method to create a parameter placeholder using a parametername.Returns the value of theplaceholderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParameterPlaceholder
Creates an instance of aParameterPlaceholderrecord class.- Parameters:
placeholder- the value for theplaceholderrecord component
-
-
Method Details
-
indexed
Factory method to create a parameter placeholder using a parameterindex.- Parameters:
index- the parameter index.- Returns:
- an indexed parameter placeholder.
-
named
Factory method to create a parameter placeholder using a parametername.- Parameters:
name- the parameter name.- Returns:
- a named parameter placeholder.
-
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). -
placeholder
Returns the value of theplaceholderrecord component.- Returns:
- the value of the
placeholderrecord component
-