org.eclipse.birt.data.engine.api
Interface ISortDefinition

All Known Implementing Classes:
SortDefinition

public interface ISortDefinition

Describes one sort (key, direction) pair in a sort sequence. The sort key can be a single column name or a Javascript expression.
NOTE: Presently only sorting on actual columns are supported. If the sort key is specified as an expression, it must be in the form row.column_name, or row["column_name"]


Field Summary
static int SORT_ASC
          Sorts in ascending order of sort key values
static int SORT_DESC
          Sorts in descending order of sort key values
 
Method Summary
 java.lang.String getColumn()
          Returns the name of the column to sort on.
 IScriptExpression getExpression()
          Returns the JavaScript expression that defines the group key.
 int getSortDirection()
          Returns the sort direction.
 

Field Detail

SORT_ASC

public static final int SORT_ASC
Sorts in ascending order of sort key values

See Also:
Constant Field Values

SORT_DESC

public static final int SORT_DESC
Sorts in descending order of sort key values

See Also:
Constant Field Values
Method Detail

getColumn

public java.lang.String getColumn()
Returns the name of the column to sort on. Either the KeyColumn or KeyExpr can be used to define the sort key.


getExpression

public IScriptExpression getExpression()
Returns the JavaScript expression that defines the group key.


getSortDirection

public int getSortDirection()
Returns the sort direction.

Returns:
the sort direction: one of SORT_ASC or SORT_DESC


Copyright © 2005 Actuate Corp. All rights reserved.