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 ProgramInstruction
BlockedException
- if this processing the plan throws a currentVarContextTeiidComponentException
TeiidProcessingException
public ExecDynamicSqlInstruction clone()
clone
in class ProgramInstruction
public PlanNode getDescriptionProperties()
getDescriptionProperties
in class ProgramInstruction
public boolean isReturnable()
public void setReturnable(boolean returnable)
public Boolean requiresTransaction(boolean transactionalReads)
requiresTransaction
in class ProgramInstruction
Copyright © 2019. All rights reserved.