Class OrderDirection

java.lang.Object
anderix.datajets.OrderDirection

public class OrderDirection extends Object
Used as a parameter in orderBy methods in SqlBuilder. The purpose is to define the sort order for the SQL SELECT statement returned by SqlBuilder. Alternatively, you may use the orderByAscending or orderByDescending methods to specify sort order.
See Also:
  • Field Details

    • ASCENDING

      public static final OrderDirection ASCENDING
      A sort order to define ascending alphabetical or numerical data. This is the ASC keyword in SQL.
    • DESCENDING

      public static final OrderDirection DESCENDING
      A sort order to define descending alphabetical or numerical data. This is the DESC keyword in SQL.
  • Method Details

    • toString

      public String toString()
      Returns a String representation of the sort order direction. This String is intended for use in a SQL statement.
      Overrides:
      toString in class Object
      Returns:
      the sort order direction as a String