Package io.github.torand.fastersql.order
Class Orders
java.lang.Object
io.github.torand.fastersql.order.Orders
Provides factory methods for order clauses.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Ascending
asc
(OrderExpression expression) Creates an ascending ordering of an expression.static Descending
desc
(OrderExpression expression) Creates a descending ordering of an expression.
-
Method Details
-
asc
Creates an ascending ordering of an expression.- Parameters:
expression
- the expression.- Returns:
- the order clause.
-
desc
Creates a descending ordering of an expression.- Parameters:
expression
- the expression.- Returns:
- the order clause.
-