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

public final Class KeyExpression

extends EncapsulatedIdentificationVariableExpression
Class Inheritance

An identification variable qualified by the KEY operator is a path expression. The KEY operator may only be applied to identification variables that correspond to map-valued associations or map-valued element collections. The type of the path expression is the type computed as the result of the operation; that is, the abstract schema type of the field that is the value of the KEY operator (the map key).

This is part of JPA 2.0.

BNF: KEY(identification_variable)
Author
Pascal Filion
Since
2.3
Version
2.5

Constructor Summary

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

Creates a new KeyExpression.

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.
Inherited from org.eclipse.persistence.jpa.jpql.parser.EncapsulatedIdentificationVariableExpression:
getEncapsulatedExpressionQueryBNFIdgetQueryBNFparse

Constructor Detail

KeyExpressionback to summary
public KeyExpression(AbstractExpression parent)

Creates a new KeyExpression.

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