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

public final Class UpdateItemStateFieldPathExpressionFactory

extends ExpressionFactory
Class Inheritance
Annotations
@SuppressWarnings:nls
Imports
org.eclipse.persistence.jpa.jpql.ExpressionTools, .WordParser

This UpdateItemStateFieldPathExpressionFactory is meant to handle the parsing of a portion of the query when it's expected to be a state field path. By default a word without a dot would be parsed as an identification variable but for the left side of the update item assignment, a single word is a state field path expression.
Author
Pascal Filion
Since
2.3
Version
2.5
See Also
StateFieldPathExpression

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this StateFieldPathExpressionFactory.

Constructor Summary

AccessConstructor and Description
public
UpdateItemStateFieldPathExpressionFactory()

Creates a new UpdateItemStateFieldPathExpressionFactory.

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 StateFieldPathExpressionFactory.

Constructor Detail

UpdateItemStateFieldPathExpressionFactoryback to summary
public UpdateItemStateFieldPathExpressionFactory()

Creates a new UpdateItemStateFieldPathExpressionFactory.

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