Package com.ptsmods.mysqlw.query
Class QueryOrder
java.lang.Object
com.ptsmods.mysqlw.query.QueryOrder
The order in which to return results.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryOrder
Order by a column in anascending direction
.static QueryOrder
by
(String column, QueryOrder.OrderDirection direction) Order by a column in the given direction.toString()
-
Method Details
-
by
Order by a column in anascending direction
.- Parameters:
column
- The column to order by.- Returns:
- A QueryOrder ordering the given column in an ascending direction.
-
by
Order by a column in the given direction.- Parameters:
column
- The column to order by.direction
- The direction to order in.- Returns:
- A QueryOrder ordering the given column in the given direction.
-
getColumn
- Returns:
- The column this QueryOrder orders by.
-
getDirection
- Returns:
- The direction in which this QueryOrder orders.
-
toString
-