public class OrderByClause
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
OrderByClause()
Ctor.
|
OrderByClause(Expression... expressions)
Ctor.
|
OrderByClause(java.lang.String... properties)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
OrderByClause |
add(Expression expression,
boolean isDescending)
Adds an expression and flag.
|
OrderByClause |
add(java.lang.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(java.lang.String... properties)
Create an order-by clause.
|
java.util.List<OrderByElement> |
getOrderByExpressions()
Returns a list of expressions and flags to order by.
|
void |
setOrderByExpressions(java.util.List<OrderByElement> orderByExpressions)
Sets a list of expressions and flags to order by.
|
void |
toEPL(java.io.StringWriter writer)
Renders the clause in textual representation.
|
public OrderByClause()
public OrderByClause(java.lang.String... properties)
properties
- property namespublic OrderByClause(Expression... expressions)
expressions
- is the expressionspublic static OrderByClause create()
public static OrderByClause create(java.lang.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(java.lang.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 java.util.List<OrderByElement> getOrderByExpressions()
public void setOrderByExpressions(java.util.List<OrderByElement> orderByExpressions)
orderByExpressions
- is the expressions to order bypublic void toEPL(java.io.StringWriter writer)
writer
- to output to