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.booleanWhether ascending ordering is in effect.reverse()Switch the ordering.
-
Constructor Details
-
OrderImpl
-
OrderImpl
-
-
Method Details
-
getExpression
Description copied from interface:OrderReturn the expression that is used for ordering.- Specified by:
getExpressionin interfaceOrder- Returns:
- expression used for ordering
-
isAscending
public boolean isAscending()Description copied from interface:OrderWhether ascending ordering is in effect.- Specified by:
isAscendingin interfaceOrder- Returns:
- boolean indicating whether ordering is ascending
-
reverse
Description copied from interface:OrderSwitch the ordering.
-