public class ExecDynamicSqlInstruction extends ProgramInstruction
Executes a SQL statement, and remove its results from the buffer manager. Executing this instruction does not modify the values of any of the variables, hence it's results are not important so they are removed immediately.
| Constructor and Description |
|---|
ExecDynamicSqlInstruction(CreateProcedureCommand parentProcCommand,
DynamicCommand command,
QueryMetadataInterface metadata,
IDGenerator idGenerator,
CapabilitiesFinder capFinder,
boolean returnable) |
| Modifier and Type | Method and Description |
|---|---|
ExecDynamicSqlInstruction |
clone()
Returns a deep clone
|
PlanNode |
getDescriptionProperties() |
boolean |
isReturnable() |
void |
process(ProcedurePlan procEnv)
Processing this instruction executes the ProcessorPlan for the command on
the CommandStatement of the update procedure language.
|
Boolean |
requiresTransaction(boolean transactionalReads) |
void |
setReturnable(boolean returnable) |
String |
toString() |
public ExecDynamicSqlInstruction(CreateProcedureCommand parentProcCommand, DynamicCommand command, QueryMetadataInterface metadata, IDGenerator idGenerator, CapabilitiesFinder capFinder, boolean returnable)
public void process(ProcedurePlan procEnv) throws BlockedException, TeiidComponentException, TeiidProcessingException
Processing this instruction executes the ProcessorPlan for the command on the CommandStatement of the update procedure language. Executing this plan does not effect the values of any of the variables defined as part of the update procedure and hence the results of the ProcessPlan execution need not be stored for further processing. The results are removed from the buffer manager immediately after execution. The program counter is incremented after execution of the plan.
process in class ProgramInstructionBlockedException - if this processing the plan throws a currentVarContextTeiidComponentExceptionTeiidProcessingExceptionpublic ExecDynamicSqlInstruction clone()
clone in class ProgramInstructionpublic PlanNode getDescriptionProperties()
getDescriptionProperties in class ProgramInstructionpublic boolean isReturnable()
public void setReturnable(boolean returnable)
public Boolean requiresTransaction(boolean transactionalReads)
requiresTransaction in class ProgramInstructionCopyright © 2019. All rights reserved.