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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryOrderOrder by a column in anascending direction.static QueryOrderby(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
-