Package org.h2.command.query
Class QueryOrderBy
java.lang.Object
org.h2.command.query.QueryOrderBy
Describes one element of the ORDER BY clause of a query.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe column index expression.The order by expression.int
Sort type for this column. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getSQL
(StringBuilder builder, int sqlFlags) Appends the order by expression to the specified builder.
-
Field Details
-
expression
The order by 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 sortTypeSort type for this column.
-
-
Constructor Details
-
QueryOrderBy
public QueryOrderBy()
-
-
Method Details
-
getSQL
Appends the order by expression to the specified builder.- Parameters:
builder
- the string buildersqlFlags
- formatting flags
-