org.eclipse.birt.data.engine.api.querydefn
Class SortDefinition
java.lang.Object
org.eclipse.birt.data.engine.api.querydefn.SortDefinition
- All Implemented Interfaces:
- ISortDefinition
- public class SortDefinition
- extends java.lang.Object
- implements ISortDefinition
Default implementation of the ISortDefinition
interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keyExpr
protected IScriptExpression keyExpr
keyColumn
protected java.lang.String keyColumn
direction
protected int direction
SortDefinition
public SortDefinition()
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.
- Specified by:
getColumn
in interface ISortDefinition
getExpression
public IScriptExpression getExpression()
- Returns the JavaScript expression that defines the group key.
- Specified by:
getExpression
in interface ISortDefinition
setColumn
public void setColumn(java.lang.String keyColumn)
- Parameters:
keyColumn
- Name of key column to sorty by
setExpression
public void setExpression(java.lang.String keyExpr)
- Parameters:
keyExpr
- Key expression to sort by
getSortDirection
public int getSortDirection()
- Returns the sort direction.
- Specified by:
getSortDirection
in interface ISortDefinition
- Returns:
- the sort direction: one of SORT_ASC or SORT_DESC
setSortDirection
public void setSortDirection(int sortDirection)
- Parameters:
sortDirection
- The sortDirection to set.
Copyright © 2005 Actuate Corp. All rights reserved.