com.dhtmlx.connector
Class SortingRule

java.lang.Object
  extended by com.dhtmlx.connector.SortingRule

public class SortingRule
extends java.lang.Object

The Class SortingRule.


Field Summary
 java.lang.String direction
          The direction of sorting
 java.lang.String name
          The name of column
 
Constructor Summary
SortingRule(java.lang.String name, java.lang.String direction)
          Instantiates a new sorting rule.
 
Method Summary
 java.lang.String to_sql()
          Converts to SQL
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The name of column


direction

public java.lang.String direction
The direction of sorting

Constructor Detail

SortingRule

public SortingRule(java.lang.String name,
                   java.lang.String direction)
Instantiates a new sorting rule.

Parameters:
name - the name of column
direction - the direction of sorting
Method Detail

to_sql

public java.lang.String to_sql()
Converts to SQL

Returns:
the SQL string