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.Labeledpublic void setLabel(String label)
setLabel in interface Statement.Labeledpublic void process(ProcedurePlan env) throws TeiidComponentException
ProgramInstructionincrement 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 ProgramInstructionTeiidComponentExceptionpublic Program getWhileProgram()
public WhileInstruction clone()
clone in class ProgramInstructionpublic PlanNode getDescriptionProperties()
getDescriptionProperties in class ProgramInstructionpublic boolean testCondition(ProcedurePlan procEnv) throws TeiidComponentException, TeiidProcessingException
testCondition in interface RepeatedInstructionTeiidProcessingExceptionTeiidComponentExceptionpublic Program getNestedProgram()
getNestedProgram in interface RepeatedInstructionRepeatedInstruction.getNestedProgram()public void postInstruction(ProcedurePlan procEnv) throws TeiidComponentException
postInstruction in interface RepeatedInstructionTeiidComponentExceptionpublic Boolean requiresTransaction(boolean transactionalReads)
requiresTransaction in class ProgramInstructionCopyright © 2018 JBoss by Red Hat. All rights reserved.