Package com.blazebit.persistence.spi
Interface OrderByElement
-
public interface OrderByElement
Represents an order by element.- Since:
- 1.1.0
- Author:
- Christian Beikov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getPosition()
The position of the order by expression in the select clause.boolean
isAscending()
Whether sorting is ascending or descending.boolean
isNullable()
Whether the expression may produce null values.boolean
isNullsFirst()
Whether nulls have precedence or non-nulls.
-
-
-
Method Detail
-
getPosition
int getPosition()
The position of the order by expression in the select clause.- Returns:
- The position
-
isAscending
boolean isAscending()
Whether sorting is ascending or descending.- Returns:
- True if ascending, false otherwise
-
isNullable
boolean isNullable()
Whether the expression may produce null values.- Returns:
- True if nullable, false otherwise
- Since:
- 1.3.0
-
isNullsFirst
boolean isNullsFirst()
Whether nulls have precedence or non-nulls.- Returns:
- True if nulls come first, false otherwise
-
-