-
public interface Order
An object that defines an ordering over the query results.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Expression<?>
getExpression()
Return the expression that is used for ordering.boolean
isAscending()
Whether ascending ordering is in effect.Order
nullsFirst()
Set nulls to be positioned first in the ordering.Order
nullsLast()
Set nulls to be positioned last in the ordering.Order
reverse()
Switch the ordering.
-
-
-
Method Detail
-
reverse
Order reverse()
Switch the ordering.- Returns:
- a new
Order
instance with the reversed ordering
-
isAscending
boolean isAscending()
Whether ascending ordering is in effect.- Returns:
- boolean indicating whether ordering is ascending
-
getExpression
Expression<?> getExpression()
Return the expression that is used for ordering.- Returns:
- expression used for ordering
-
nullsFirst
Order nullsFirst()
Set nulls to be positioned first in the ordering. Note that this is a DataNucleus extension, post JPA2.1- Returns:
- This instance
-
nullsLast
Order nullsLast()
Set nulls to be positioned last in the ordering. Note that this is a DataNucleus extension, post JPA 2.1- Returns:
- This instance
-
-