Order Class

Contains details about how to sort the rows in the result set. Equivalent to an ORDER BY statement in a SOQL query.

Namespace

DataSource

Usage

Used in the order property on the DataSource.TableSelection class.

Order Properties

The following are properties for Order.

columnName

Name of the column whose values are used to sort the rows in the result set.

Signature

public String columnName {get; set;}

Property Value

Type: String

direction

Direction for sorting rows based on column values.

Signature

public DataSource.OrderDirection direction {get; set;}

Property Value

Type: DataSource.OrderDirection

tableName

Name of the table whose column values are used to sort the rows in the result set.

Signature

public String tableName {get; set;}

Property Value

Type: String

Order Methods

The following are methods for Order.

get(tableName, columnName, direction)

Creates an instance of the DataSource.Order class.

Signature

public static DataSource.Order get(String tableName, String columnName, DataSource.OrderDirection direction)

Parameters

tableName
Type: String
Name of the table whose column values are used to sort the rows in the result set.
columnName
Type: String
Name of the column whose values are used to sort the rows in the result set.
direction
Type: DataSource.OrderDirection
Direction for sorting rows based on column values.

Return Value

Type: DataSource.Order