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)
IndexExpression
| Access | Constructor and Description |
|---|---|
| public | IndexExpressionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | IndexExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe name of the identification variable identificationVariable)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| public IndexExpression | getExpression()
Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public String | getIdentifier()
Implements abstract org. AbstractSingleEncapsulatedExpressionStateObject.
|
| public void | setExpression(IndexExpression
The expression)parsed object representing an INDEX
expressionKeeps a reference of the |
| IndexExpressionStateObject | back to summary |
|---|---|
| public IndexExpressionStateObject(StateObject parent) Creates a new
| |
| IndexExpressionStateObject | back to summary |
|---|---|
| public IndexExpressionStateObject(StateObject parent, String identificationVariable) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| getExpression | back to summary |
|---|---|
| public IndexExpression getExpression() Implements org. Doc from org. Returns the actual parsed object if this
| |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Implements abstract org. Returns the JPQL identifier of the expression represented by this | |
| setExpression | back to summary |
|---|---|
| public void setExpression(IndexExpression expression) Keeps a reference of the
| |