UPDATE clause of a query consists of a conditional expression used to
select objects or values that satisfy the expression. The UPDATE clause
restricts the result of a select statement or the scope of an update operation.
BNF: update_statement ::= update_clause [where_clause]
UpdateStatement
| Access | Constructor and Description |
|---|---|
| public | UpdateStatementStateObject(JPQLQueryStateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| public UpdateItemStateObject | Returns: The newly addedUpdateItemStateObjectThe path of the value to update path)Adds a new item to the |
| public UpdateItemStateObject | Returns: The newly addedUpdateItemStateObjectThe path of the value to update path, StateObject The newValue)StateObject representation of the new valueAdds a new item to the |
| public UpdateItemStateObject | Returns: The newly addedUpdateItemStateObjectThe path of the value to update path, String The string representation of the new value to parse and to convert into a
newValue)StateObject representationAdds a new item to the |
| protected AbstractModifyClauseStateObject | buildModifyClause()
Implements abstract org. AbstractModifyClauseStateObject that represents the modify clause.
|
| public UpdateStatement | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public UpdateClauseStateObject | Returns: The state object representing theUPDATE clause, which is never
nullUPDATE clause.
|
| public void | setExpression(UpdateStatement
The expression)parsed object representing an UpdateStatement
statementKeeps a reference of the |
| UpdateStatementStateObject | back to summary |
|---|---|
| public UpdateStatementStateObject(JPQLQueryStateObject parent) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| addItem | back to summary |
|---|---|
| public UpdateItemStateObject addItem(String path) Adds a new item to the
| |
| addItem | back to summary |
|---|---|
| public UpdateItemStateObject addItem(String path, StateObject newValue) Adds a new item to the
| |
| addItem | back to summary |
|---|---|
| public UpdateItemStateObject addItem(String path, String newValue) Adds a new item to the
| |
| buildModifyClause | back to summary |
|---|---|
| protected AbstractModifyClauseStateObject buildModifyClause() Implements abstract org. Creates the actual
| |
| getExpression | back to summary |
|---|---|
| public UpdateStatement getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getModifyClause | back to summary |
|---|---|
| public UpdateClauseStateObject getModifyClause() Returns the state object representing the
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(UpdateStatement expression) Keeps a reference of the
| |