Package io.jmix.data.persistence
Record Class SortExpressionContext
java.lang.Object
java.lang.Record
io.jmix.data.persistence.SortExpressionContext
- Record Components:
metaPropertyPath- meta property path to sort bysortDirection- sort direction
public record SortExpressionContext(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection)
extends Record
Contains information for supplying a JPQL sort expression.
-
Constructor Summary
ConstructorsConstructorDescriptionSortExpressionContext(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) Creates an instance of aSortExpressionContextrecord 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.booleanReturnstrueif a sort direction is ascending.Returns the value of themetaPropertyPathrecord component.Returns the value of thesortDirectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SortExpressionContext
Creates an instance of aSortExpressionContextrecord class.- Parameters:
metaPropertyPath- the value for themetaPropertyPathrecord componentsortDirection- the value for thesortDirectionrecord component
-
-
Method Details
-
isSortDirectionAsc
public boolean isSortDirectionAsc()Returnstrueif a sort direction is ascending.- Returns:
trueif a sort direction is ascending
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
metaPropertyPath
Returns the value of themetaPropertyPathrecord component.- Returns:
- the value of the
metaPropertyPathrecord component
-
sortDirection
Returns the value of thesortDirectionrecord component.- Returns:
- the value of the
sortDirectionrecord component
-