Package groovy.sql
Class SqlOrderByVisitor
java.lang.Object
groovy.sql.SqlOrderByVisitor
Derives an SQL
ORDER BY fragment from a simple sort closure, used by DataSet.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the SQLORDER BYfragment built so far.voidAppends the outermost referenced property name of each property access in the supplied closure body, in source order.
-
Constructor Details
-
SqlOrderByVisitor
public SqlOrderByVisitor()
-
-
Method Details
-
visit
Appends the outermost referenced property name of each property access in the supplied closure body, in source order.- Parameters:
code- the sort closure body to inspect
-
getOrderBy
Returns the SQLORDER BYfragment built so far.- Returns:
- the derived order-by fragment
-