public class OrderByElement extends Object implements Serializable
Constructor and Description |
---|
OrderByElement()
Ctor.
|
OrderByElement(Expression expression,
boolean descending)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Expression |
getExpression()
Returns the order-by value expression.
|
boolean |
isDescending()
Returns true for descending sorts for this column, false for ascending sort.
|
void |
setDescending(boolean descending)
Set to true for descending sorts for this column, false for ascending sort.
|
void |
setExpression(Expression expression)
Sets the order-by value expression.
|
void |
toEPL(StringWriter writer)
Renders the clause in textual representation.
|
public OrderByElement()
public OrderByElement(Expression expression, boolean descending)
expression
- is the expression to order bydescending
- true for descending sort, false for ascending sortpublic Expression getExpression()
public void setExpression(Expression expression)
expression
- provides order-by valuespublic boolean isDescending()
public void setDescending(boolean descending)
descending
- true for descending sortpublic void toEPL(StringWriter writer)
writer
- to output to