Class QueryOrderBy

java.lang.Object
org.h2.command.query.QueryOrderBy

public class QueryOrderBy extends Object
Describes one element of the ORDER BY clause of a query.
  • Field Details

    • expression

      public Expression expression
      The order by expression.
    • columnIndexExpr

      public Expression columnIndexExpr
      The column index expression. This can be a column index number (1 meaning the first column of the select list) or a parameter (the parameter is a number representing the column index number).
    • sortType

      public int sortType
      Sort type for this column.
  • Constructor Details

    • QueryOrderBy

      public QueryOrderBy()
  • Method Details

    • getSQL

      public void getSQL(StringBuilder builder, int sqlFlags)
      Appends the order by expression to the specified builder.
      Parameters:
      builder - the string builder
      sqlFlags - formatting flags