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

public abstract Class GeneralIdentificationExpressionFactory

extends ExpressionFactory
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.jpa.jpql.parser.KeyExpressionFactory, org.eclipse.persistence.jpa.jpql.parser.ValueExpressionFactory
Imports
org.eclipse.persistence.jpa.jpql.WordParser

This ValueExpressionFactory creates a general identification variable, which is either with the identifier KEY or VALUE and then checks the existence of a path expression.
Author
Pascal Filion
Since
2.3
Version
2.4
See Also
KeyExpressionFactory, ValueExpressionFactory

Constructor Summary

AccessConstructor and Description
public
GeneralIdentificationExpressionFactory(String
The unique identifier of this ExpressionFactory
id
,
String
The JPQL identifier handled by this factory
identifier
)

Creates a new GeneralIdentificationExpressionFactory.

Method Summary

Modifier and TypeMethod and Description
protected abstract AbstractExpression

Returns:

The Expression this factory manages
buildExpression
(AbstractExpression
The parent of this expression
parent
)

Creates the actual expression this factory manages.

protected final AbstractExpression
buildExpression(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
JPQLQueryBNF
The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
queryBNF
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.
Inherited from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory:
addIdentifieraddIdentifierscompareToequalsgetExpressionRegistrygetIdhashCodeidentifierssetExpressionRegistrytoString

Constructor Detail

GeneralIdentificationExpressionFactoryback to summary
public GeneralIdentificationExpressionFactory(String id, String identifier)

Creates a new GeneralIdentificationExpressionFactory.

Parameters
id:String

The unique identifier of this ExpressionFactory

identifier:String

The JPQL identifier handled by this factory

Method Detail

buildExpressionback to summary
protected abstract AbstractExpression buildExpression(AbstractExpression parent)

Creates the actual expression this factory manages.

Parameters
parent:AbstractExpression

The parent of this expression

Returns:AbstractExpression

The Expression this factory manages

buildExpressionback to summary
protected final AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The current word being parsed

queryBNF:JPQLQueryBNF

The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

Annotations
@Override