new_value specified for an update operation must be compatible in type with the
field to which it is assigned.
update_item ::= [identification_variable.]{state_field | single_valued_association_field} = new_valueUpdateClause
| Modifier and Type | Field and Description |
|---|---|
| private boolean | hasEqualSign
Determines whether the equal sign was parsed or not. |
| private boolean | hasSpaceAfterEqualSign
Determines whether a whitespace was parsed after the equal sign or not. |
| private boolean | hasSpaceAfterStateFieldPathExpression
Determines whether a whitespace was parsed before the equal sign or not |
| private AbstractExpression | newValue
The expression representing the new value. |
| private AbstractExpression | stateFieldExpression
The expression representing the state field to have its value updated. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ExpressionVisitor
The visitor)ExpressionVisitor to visit this objectImplements org. Expression by the given visitor.
|
| public void | acceptChildren(ExpressionVisitor
The visitor)visitor to visit the children of this object.Implements org. Expression.
|
| protected void | addChildrenTo(Collection<Expression>
The collection used to store the children children)Overrides org. AbstractExpression to the given collection.
|
| protected void | addOrderedChildrenTo(List<Expression>
The list used to store the string representation of this children)AbstractExpressionOverrides org. AbstractExpression to the given list.
|
| public JPQLQueryBNF | findQueryBNF(Expression
The expression)Expression that is a descendant of this oneOverrides org. Implements org. JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression.
|
| public Expression | Returns: The expression for the new valueReturns the |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| public Expression | Returns: The expression for the state field path expressionReturns the |
| public boolean | Returns: true if the equal sign was parsed; false otherwiseDetermines whether the equal sign was parsed or not. |
| public boolean | Returns: true the new value was parsed; false if nothing was parsedDetermines whether the new value section of the query was parsed. |
| public boolean | Returns: true if there was a whitespace after the equal sign; false otherwiseDetermines whether a whitespace was parsed after the equal sign or not. |
| public boolean | Returns: true if there was a whitespace after the state field path expression;
false otherwiseDetermines whether a whitespace was parsed after the state field path expression not. |
| public boolean | Returns: true the state field was parsed; false otherwiseDetermines whether the state field was parsed. |
| protected boolean | isParsingComplete(WordParser
The text to parse based on the current position of the cursor wordParser, String The word that was retrieved from the given text, which is the first word in the text word, Expression The expression)Expression that has already been parsedOverrides org. |
| protected void | parse(WordParser
The text to parse based on the current position of the cursor wordParser, boolean Determines whether the parsing system should be tolerant, meaning if it should
try to parse invalid or incomplete queries tolerant)Implements abstract org. WordParser.
|
| protected void | toParsedText(StringBuilder
The buffer used to append this writer, boolean Expression's string representationDetermines whether the string representation should represent what was parsed,
i.e. include any "virtual" whitespace (such as ending whitespace) and the actual case of the
JPQL identifiers actual)Implements abstract org. Expression, including its children,
if it has any.
|
| hasEqualSign | back to summary |
|---|---|
| private boolean hasEqualSign Determines whether the equal sign was parsed or not. | |
| hasSpaceAfterEqualSign | back to summary |
|---|---|
| private boolean hasSpaceAfterEqualSign Determines whether a whitespace was parsed after the equal sign or not. | |
| hasSpaceAfterStateFieldPathExpression | back to summary |
|---|---|
| private boolean hasSpaceAfterStateFieldPathExpression Determines whether a whitespace was parsed before the equal sign or not | |
| newValue | back to summary |
|---|---|
| private AbstractExpression newValue The expression representing the new value. | |
| stateFieldExpression | back to summary |
|---|---|
| private AbstractExpression stateFieldExpression The expression representing the state field to have its value updated. | |
| UpdateItem | back to summary |
|---|---|
| public UpdateItem(AbstractExpression parent) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(ExpressionVisitor visitor) Implements org. Doc from org. Visits this
| |
| acceptChildren | back to summary |
|---|---|
| public void acceptChildren(ExpressionVisitor visitor) Implements org. Doc from org. Visits the children of this
This does not traverse the
| |
| addChildrenTo | back to summary |
|---|---|
| protected void addChildrenTo(Collection<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| addOrderedChildrenTo | back to summary |
|---|---|
| protected void addOrderedChildrenTo(List<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| findQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF findQueryBNF(Expression expression) Overrides org. Implements org. Doc from org. Retrieves the
| |
| getNewValue | back to summary |
|---|---|
| public Expression getNewValue() Returns the
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| getStateFieldPathExpression | back to summary |
|---|---|
| public Expression getStateFieldPathExpression() Returns the
| |
| hasEqualSign | back to summary |
|---|---|
| public boolean hasEqualSign() Determines whether the equal sign was parsed or not.
| |
| hasNewValue | back to summary |
|---|---|
| public boolean hasNewValue() Determines whether the new value section of the query was parsed.
| |
| hasSpaceAfterEqualSign | back to summary |
|---|---|
| public boolean hasSpaceAfterEqualSign() Determines whether a whitespace was parsed after the equal sign or not.
| |
| hasSpaceAfterStateFieldPathExpression | back to summary |
|---|---|
| public boolean hasSpaceAfterStateFieldPathExpression() Determines whether a whitespace was parsed after the state field path expression not.
| |
| hasStateFieldPathExpression | back to summary |
|---|---|
| public boolean hasStateFieldPathExpression() Determines whether the state field was parsed.
| |
| isParsingComplete | back to summary |
|---|---|
| protected boolean isParsingComplete(WordParser wordParser, String word, Expression expression) Overrides org. Doc from org. Determines whether the parsing is complete based on what is left in the given text. The text is never empty.
| |
| parse | back to summary |
|---|---|
| protected void parse(WordParser wordParser, boolean tolerant) Implements abstract org. Doc from org. Parses the query by starting at the current position, which is part of the given
| |
| toParsedText | back to summary |
|---|---|
| protected void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |