public class SqlOrderByVisitor
extends CodeVisitorSupport
AST visitor used by DataSet to derive an SQL ORDER BY clause
from a simple sort closure.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public String |
getOrderBy()Returns the SQL ORDER BY fragment built so far. |
|
public void |
visitPropertyExpression(PropertyExpression expression)Appends the referenced property name as the next order-by term. |
|
public void |
visitReturnStatement(ReturnStatement statement)Visits the closure return expression that defines the sort key. |
Returns the SQL ORDER BY fragment built so far.
Appends the referenced property name as the next order-by term.
expression - the property expression to visitVisits the closure return expression that defines the sort key.
statement - the return statement to visit