Class QueryOrder

java.lang.Object
com.ptsmods.mysqlw.query.QueryOrder

public class QueryOrder extends Object
The order in which to return results.
  • Method Details

    • by

      public static QueryOrder by(String column)
      Order by a column in an ascending direction.
      Parameters:
      column - The column to order by.
      Returns:
      A QueryOrder ordering the given column in an ascending direction.
    • by

      public static QueryOrder by(String column, QueryOrder.OrderDirection direction)
      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

      public String getColumn()
      Returns:
      The column this QueryOrder orders by.
    • getDirection

      public QueryOrder.OrderDirection getDirection()
      Returns:
      The direction in which this QueryOrder orders.
    • toString

      public String toString()
      Overrides:
      toString in class Object