Class OrderImpl
java.lang.Object
cz.cvut.kbss.jopa.query.criteria.expressions.OrderImpl
- All Implemented Interfaces:
Order
-
Constructor Summary
ConstructorsConstructorDescriptionOrderImpl
(Expression<?> expression) OrderImpl
(Expression<?> expression, boolean ascending) -
Method Summary
Modifier and TypeMethodDescriptionExpression<?>
Return the expression that is used for ordering.boolean
Whether ascending ordering is in effect.reverse()
Switch the ordering.
-
Constructor Details
-
OrderImpl
-
OrderImpl
-
-
Method Details
-
getExpression
Description copied from interface:Order
Return the expression that is used for ordering.- Specified by:
getExpression
in interfaceOrder
- Returns:
- expression used for ordering
-
isAscending
public boolean isAscending()Description copied from interface:Order
Whether ascending ordering is in effect.- Specified by:
isAscending
in interfaceOrder
- Returns:
- boolean indicating whether ordering is ascending
-
reverse
Description copied from interface:Order
Switch the ordering.
-