Top Description Constructors Methods
org.eclipse.persistence.jpa.jpql.parser

public final Class OrderSiblingsByClause

extends AbstractOrderByClause
Class Inheritance

In a hierarchical query, if the rows of siblings of the same parent need to be ordered, then the ORDER SIBLINGS BY clause should be used. Either ORDER BY or GROUP BY should not be used, as they will destroy the hierarchical order of the CONNECT BY results.
BNF: order_sibling_by_clause ::= ORDER SIBLINGS BY orderby_item {, orderby_item}*
Author
Pascal Filion
Since
2.5
Version
2.5

Constructor Summary

AccessConstructor and Description
public
OrderSiblingsByClause(AbstractExpression
The parent of this expression
parent
)

Creates a new OrderSiblingsByClause.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ExpressionVisitor
The ExpressionVisitor to visit this object
visitor
)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.
public JPQLQueryBNF
Inherited from org.eclipse.persistence.jpa.jpql.parser.AbstractOrderByClause:
acceptChildrenaddChildrenToaddOrderedChildrenTobuildCollectionExpressionfindQueryBNFgetActualIdentifiergetOrderByItemshasOrderByItemshasSpaceAfterIdentifierparsetoParsedText

Constructor Detail

OrderSiblingsByClauseback to summary
public OrderSiblingsByClause(AbstractExpression parent)

Creates a new OrderSiblingsByClause.

Parameters
parent:AbstractExpression

The parent of this expression

Method Detail

acceptback to summary
public void accept(ExpressionVisitor visitor)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.

Parameters
visitor:ExpressionVisitor

The ExpressionVisitor to visit this object

Annotations
@Override
getQueryBNFback to summary
public JPQLQueryBNF getQueryBNF()

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.getQueryBNF.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.getQueryBNF.

Returns the BNF of this Expression.

Returns:JPQLQueryBNF

The JPQLQueryBNF, which represents the grammar of this Expression

Annotations
@Override