public class UpdateAnalyzedStatement extends java.lang.Object implements AnalyzedRelation, AnalyzedStatement
Modifier and Type | Class and Description |
---|---|
static class |
UpdateAnalyzedStatement.NestedAnalyzedStatement |
Constructor and Description |
---|
UpdateAnalyzedStatement(AnalyzedRelation sourceRelation,
java.util.List<UpdateAnalyzedStatement.NestedAnalyzedStatement> nestedStatements) |
Modifier and Type | Method and Description |
---|---|
<C,R> R |
accept(AnalyzedRelationVisitor<C,R> visitor,
C context) |
<C,R> R |
accept(AnalyzedStatementVisitor<C,R> analyzedStatementVisitor,
C context) |
java.util.List<Field> |
fields() |
Field |
getField(Path path) |
QualifiedName |
getQualifiedName() |
Field |
getWritableField(Path path) |
boolean |
isWriteOperation()
Defines whether an operation changes the cluster in any way (write).
|
java.util.List<UpdateAnalyzedStatement.NestedAnalyzedStatement> |
nestedStatements() |
void |
setQualifiedName(QualifiedName qualifiedName) |
AnalyzedRelation |
sourceRelation() |
public UpdateAnalyzedStatement(AnalyzedRelation sourceRelation, java.util.List<UpdateAnalyzedStatement.NestedAnalyzedStatement> nestedStatements)
public AnalyzedRelation sourceRelation()
public java.util.List<UpdateAnalyzedStatement.NestedAnalyzedStatement> nestedStatements()
public <C,R> R accept(AnalyzedStatementVisitor<C,R> analyzedStatementVisitor, C context)
accept
in interface AnalyzedStatement
public <C,R> R accept(AnalyzedRelationVisitor<C,R> visitor, C context)
accept
in interface AnalyzedRelation
@Nullable public Field getField(Path path)
getField
in interface AnalyzedRelation
public Field getWritableField(Path path) throws java.lang.UnsupportedOperationException, ColumnUnknownException
getWritableField
in interface AnalyzedRelation
java.lang.UnsupportedOperationException
ColumnUnknownException
public java.util.List<Field> fields()
fields
in interface AnalyzedRelation
public boolean isWriteOperation()
AnalyzedStatement
NOTE: Read only statements with possible writing child statements (like e.g. select using update subquery) must take care about child's write behaviour while returning here.
isWriteOperation
in interface AnalyzedStatement
public QualifiedName getQualifiedName()
getQualifiedName
in interface AnalyzedRelation
public void setQualifiedName(QualifiedName qualifiedName)
setQualifiedName
in interface AnalyzedRelation