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

public final Class WhenClauseFactory

extends ExpressionFactory
Class Inheritance
Imports
org.eclipse.persistence.jpa.jpql.WordParser

This WhenClauseFactory creates a new WhenClause when the portion of the query to parse starts with WHEN.
Author
Pascal Filion
Since
2.3
Version
2.4
See Also
WhenClause

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this WhenClauseFactory.

Constructor Summary

AccessConstructor and Description
public
WhenClauseFactory()

Creates a new WhenClauseFactory.

Method Summary

Modifier and TypeMethod and Description
protected 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

Field Detail

IDback to summary
public static final String ID

The unique identifier of this WhenClauseFactory.

Constructor Detail

WhenClauseFactoryback to summary
public WhenClauseFactory()

Creates a new WhenClauseFactory.

Method Detail

buildExpressionback to summary
protected 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