public class OrderByClause extends Object implements Serializable
Constructor and Description |
---|
OrderByClause()
Ctor.
|
OrderByClause(Expression... expressions)
Ctor.
|
OrderByClause(String... properties)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
OrderByClause |
add(Expression expression,
boolean isDescending)
Adds an expression and flag.
|
OrderByClause |
add(String property,
boolean isDescending)
Adds a property and flag.
|
static OrderByClause |
create()
Create an empty order-by clause.
|
static OrderByClause |
create(Expression... expressions)
Create an order-by clause.
|
static OrderByClause |
create(String... properties)
Create an order-by clause.
|
List<OrderByElement> |
getOrderByExpressions()
Returns a list of expressions and flags to order by.
|
void |
setOrderByExpressions(List<OrderByElement> orderByExpressions)
Sets a list of expressions and flags to order by.
|
void |
toEPL(StringWriter writer)
Renders the clause in textual representation.
|
public OrderByClause()
public OrderByClause(String... properties)
properties
- property namespublic OrderByClause(Expression... expressions)
expressions
- is the expressionspublic static OrderByClause create()
public static OrderByClause create(String... properties)
properties
- is the property names to order bypublic static OrderByClause create(Expression... expressions)
expressions
- is the expressios returning values to order bypublic OrderByClause add(String property, boolean isDescending)
property
- is the name of the property to addisDescending
- true for descending, false for ascending sortpublic OrderByClause add(Expression expression, boolean isDescending)
expression
- returns values to order byisDescending
- true for descending, false for ascending sortpublic List<OrderByElement> getOrderByExpressions()
public void setOrderByExpressions(List<OrderByElement> orderByExpressions)
orderByExpressions
- is the expressions to order bypublic void toEPL(StringWriter writer)
writer
- to output to