Package com.querydsl.core.types
Class OrderSpecifier<T extends Comparable>
java.lang.Object
com.querydsl.core.types.OrderSpecifier<T>
- Type Parameters:
T- related expression type
- All Implemented Interfaces:
Serializable
OrderSpecifier represents an order-by-element in a Query instance- Author:
- tiwe
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBehaviour for order of null values -
Constructor Summary
ConstructorsConstructorDescriptionOrderSpecifier(Order order, Expression<T> target) OrderSpecifier(Order order, Expression<T> target, OrderSpecifier.NullHandling nullhandling) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the null handlinggetOrder()Get the order of this specifierGet the target expression of this OrderSpecifierinthashCode()booleanGet whether the order is ascending or notCreate a new OrderSpecifier instance with null first enabledCreate a new OrderSpecifier instance with nulls last enabledtoString()
-
Constructor Details
-
OrderSpecifier
-
OrderSpecifier
-
-
Method Details
-
getOrder
Get the order of this specifier- Returns:
- order
-
isAscending
public boolean isAscending()Get whether the order is ascending or not- Returns:
- ascending order
-
getTarget
Get the target expression of this OrderSpecifier- Returns:
- target expression
-
getNullHandling
Get the null handling- Returns:
- null handling
-
nullsFirst
Create a new OrderSpecifier instance with null first enabled- Returns:
- new instance with null first enabled
-
nullsLast
Create a new OrderSpecifier instance with nulls last enabled- Returns:
- new instance with nulls last enabled
-
toString
-
equals
-
hashCode
public int hashCode()
-