org.eclipse.birt.data.engine.api.querydefn
Class SortDefinition

java.lang.Object
  extended by 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.


Field Summary
protected  int direction
           
protected  java.lang.String keyColumn
           
protected  IScriptExpression keyExpr
           
 
Fields inherited from interface org.eclipse.birt.data.engine.api.ISortDefinition
ASCII_SORT_STRENGTH, DEFAULT_SORT_STRENGTH, SORT_ASC, SORT_DESC
 
Constructor Summary
SortDefinition()
           
 
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.
 int getSortStrength()
          Returns the Strength of sort.
 void setColumn(java.lang.String keyColumn)
           
 void setExpression(java.lang.String keyExpr)
           
 void setSortDirection(int sortDirection)
           
 void setSortStrength(int strength)
          Set the collator sort strength of the destine sort.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyExpr

protected IScriptExpression keyExpr

keyColumn

protected java.lang.String keyColumn

direction

protected int direction
Constructor Detail

SortDefinition

public SortDefinition()
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.

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.

getSortStrength

public int getSortStrength()
Description copied from interface: ISortDefinition
Returns the Strength of sort.

Specified by:
getSortStrength in interface ISortDefinition
Returns:

setSortStrength

public void setSortStrength(int strength)
Set the collator sort strength of the destine sort.

Parameters:
strength -


Copyright © 2008 Actuate Corp. All rights reserved.