public final class OrderByClause extends DataObject
DataObject
that represents an ordering of the results of the evaluation of an Expression
. An OrderByClause
is similar to the ORDER BY
clause of a SQL SELECT
statement. The OrderByElement
objects of an OrderByClause
specify the order.Constructor and Description |
---|
OrderByClause(java.util.List<OrderByElement> elements) |
OrderByClause(OrderByElement[] elements)
Creates an
OrderByClause with the specified OrderByElement objects. |
Modifier and Type | Method and Description |
---|---|
OrderByElement[] |
getElements()
Gets the elements of this
OrderByClause , which specify the ordering of the results. |
boolean |
isCompositeObject()
Indicates whether this
OrderByClause contains other SyntaxObject objects. |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitOrderByClause method of the SyntaxObjectVisitor and passes that method this OrderByClause and an Object . |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public OrderByClause(OrderByElement[] elements)
OrderByClause
with the specified OrderByElement
objects.elements
- An array of OrderByElement
objects that specify the ordering sequence.public OrderByClause(java.util.List<OrderByElement> elements)
public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitOrderByClause
method of the SyntaxObjectVisitor
and passes that method this OrderByClause
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitOrderByClause
method.public OrderByElement[] getElements()
OrderByClause
, which specify the ordering of the results.OrderByElement
objects that specify the ordering sequence.public boolean isCompositeObject()
OrderByClause
contains other SyntaxObject
objects. Because an OrderByClause
contains one or more OrderByElement
objects, this method returns true
.boolean
that is true
.