public class WhileInstruction extends ProgramInstruction implements RepeatedInstruction
Constructor and Description |
---|
WhileInstruction(Program program,
Criteria condition,
String label) |
Modifier and Type | Method and Description |
---|---|
WhileInstruction |
clone()
Returns a deep clone
|
PlanNode |
getDescriptionProperties() |
String |
getLabel() |
Program |
getNestedProgram() |
Program |
getWhileProgram() |
void |
postInstruction(ProcedurePlan procEnv) |
void |
process(ProcedurePlan env)
Allow this instruction to do whatever processing it needs, and to
in turn manipulate the running program.
|
Boolean |
requiresTransaction(boolean transactionalReads) |
void |
setLabel(String label) |
boolean |
testCondition(ProcedurePlan procEnv) |
String |
toString() |
public String getLabel()
getLabel
in interface Statement.Labeled
public void setLabel(String label)
setLabel
in interface Statement.Labeled
public void process(ProcedurePlan env) throws TeiidComponentException
ProgramInstruction
increment
the program counter of the current program, but specialized
instructions may add sub programs to the stack or not increment the counter (so that they are executed again.)process
in class ProgramInstruction
TeiidComponentException
public Program getWhileProgram()
public WhileInstruction clone()
clone
in class ProgramInstruction
public PlanNode getDescriptionProperties()
getDescriptionProperties
in class ProgramInstruction
public boolean testCondition(ProcedurePlan procEnv) throws TeiidComponentException, TeiidProcessingException
testCondition
in interface RepeatedInstruction
TeiidProcessingException
TeiidComponentException
public Program getNestedProgram()
getNestedProgram
in interface RepeatedInstruction
RepeatedInstruction.getNestedProgram()
public void postInstruction(ProcedurePlan procEnv) throws TeiidComponentException
postInstruction
in interface RepeatedInstruction
TeiidComponentException
public Boolean requiresTransaction(boolean transactionalReads)
requiresTransaction
in class ProgramInstruction
Copyright © 2019. All rights reserved.