Package org.hibernate.query.sql.spi
Record Class ParameterOccurrence
java.lang.Object
java.lang.Record
org.hibernate.query.sql.spi.ParameterOccurrence
public record ParameterOccurrence(QueryParameterImplementor<?> parameter, int sourcePosition)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParameterOccurrence
(QueryParameterImplementor<?> parameter, int sourcePosition) Creates an instance of aParameterOccurrence
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theparameter
record component.int
Returns the value of thesourcePosition
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ParameterOccurrence
Creates an instance of aParameterOccurrence
record class.- Parameters:
parameter
- the value for theparameter
record componentsourcePosition
- the value for thesourcePosition
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
parameter
Returns the value of theparameter
record component.- Returns:
- the value of the
parameter
record component
-
sourcePosition
public int sourcePosition()Returns the value of thesourcePosition
record component.- Returns:
- the value of the
sourcePosition
record component
-