Top Description Fields Constructors Methods
org.h2.command.query

public Class QueryOrderBy

extends Object
Class Inheritance
Imports
org.h2.expression.Expression, org.h2.result.SortOrder

Describes one element of the ORDER BY clause of a query.

Field Summary

Modifier and TypeField and Description
public Expression
columnIndexExpr

The column index expression.

public Expression
expression

The order by expression.

public int
sortType

Sort type for this column.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
getSQL(StringBuilder
the string builder
builder
,
int
formatting flags
sqlFlags
)

Appends the order by expression to the specified builder.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnIndexExprback to summary
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).

expressionback to summary
public Expression expression

The order by expression.

sortTypeback to summary
public int sortType

Sort type for this column.

Constructor Detail

QueryOrderByback to summary
public QueryOrderBy()

Method Detail

getSQLback to summary
public void getSQL(StringBuilder builder, int sqlFlags)

Appends the order by expression to the specified builder.

Parameters
builder:StringBuilder

the string builder

sqlFlags:int

formatting flags