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

public final Class IndexExpression

extends EncapsulatedIdentificationVariableExpression
Class Inheritance

The INDEX function returns an integer value corresponding to the position of its argument in an ordered list. The INDEX function can only be applied to identification variables denoting types for which an order column has been specified.
BNF: expression ::= INDEX(identification_variable)
Author
Pascal Filion
Since
2.3
Version
2.5

Constructor Summary

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

Creates a new IndexExpression.

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.EncapsulatedIdentificationVariableExpression:
getEncapsulatedExpressionQueryBNFIdparse

Constructor Detail

IndexExpressionback to summary
public IndexExpression(AbstractExpression parent)

Creates a new IndexExpression.

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()

Overrides org.eclipse.persistence.jpa.jpql.parser.EncapsulatedIdentificationVariableExpression.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