Package javax.jdo.query
Interface OrderExpression<T>
- Type Parameters:
T
- Java type of the expression being represented here
public interface OrderExpression<T>
Expression representing the ordering using an expression, a direction, and how to treat nulls.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionAccessor for the direction of the ordering with this expression.Accessor for the expression being used for ordering.Accessor for the position of nulls with this expression.Method to set nulls to be ordered BEFORE non-nulls.Method to set nulls to be ordered AFTER non-nulls.
-
Method Details
-
getDirection
OrderExpression.OrderDirection getDirection()Accessor for the direction of the ordering with this expression.- Returns:
- The direction
-
nullsFirst
OrderExpression<T> nullsFirst()Method to set nulls to be ordered BEFORE non-nulls.- Returns:
- The order expression
-
nullsLast
OrderExpression<T> nullsLast()Method to set nulls to be ordered AFTER non-nulls.- Returns:
- The order expression
-
getNullsPosition
OrderExpression.OrderNullsPosition getNullsPosition()Accessor for the position of nulls with this expression.- Returns:
- The nulls position (or null if not defined)
-
getExpression
Expression<T> getExpression()Accessor for the expression being used for ordering.- Returns:
- Ordering expression
-