Package org.teiid.query.processor.proc
Class ExecDynamicSqlInstruction
- java.lang.Object
-
- org.teiid.query.processor.proc.ProgramInstruction
-
- org.teiid.query.processor.proc.ExecDynamicSqlInstruction
-
- All Implemented Interfaces:
Cloneable
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 Summary
Constructors Constructor Description ExecDynamicSqlInstruction(CreateProcedureCommand parentProcCommand, DynamicCommand command, QueryMetadataInterface metadata, IDGenerator idGenerator, CapabilitiesFinder capFinder, boolean returnable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecDynamicSqlInstruction
clone()
Returns a deep clonePlanNode
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()
-
-
-
Constructor Detail
-
ExecDynamicSqlInstruction
public ExecDynamicSqlInstruction(CreateProcedureCommand parentProcCommand, DynamicCommand command, QueryMetadataInterface metadata, IDGenerator idGenerator, CapabilitiesFinder capFinder, boolean returnable)
-
-
Method Detail
-
process
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.
- Specified by:
process
in classProgramInstruction
- Throws:
BlockedException
- if this processing the plan throws a currentVarContextTeiidComponentException
TeiidProcessingException
-
clone
public ExecDynamicSqlInstruction clone()
Returns a deep clone- Overrides:
clone
in classProgramInstruction
- Returns:
- shallow clone
-
getDescriptionProperties
public PlanNode getDescriptionProperties()
- Specified by:
getDescriptionProperties
in classProgramInstruction
-
isReturnable
public boolean isReturnable()
-
setReturnable
public void setReturnable(boolean returnable)
-
requiresTransaction
public Boolean requiresTransaction(boolean transactionalReads)
- Overrides:
requiresTransaction
in classProgramInstruction
-
-