Package org.teiid.query.processor.proc
Class ErrorInstruction
- java.lang.Object
-
- org.teiid.query.processor.proc.ProgramInstruction
-
- org.teiid.query.processor.proc.ErrorInstruction
-
- All Implemented Interfaces:
Cloneable
public class ErrorInstruction extends ProgramInstruction
This instruction updates the current variable context with the Variable defined using the declare statement that is used in constructing this instruction.
-
-
Constructor Summary
Constructors Constructor Description ErrorInstruction()
Constructor for DeclareInstruction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorInstruction
clone()
Override Object.clone() to make the method public.PlanNode
getDescriptionProperties()
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
setExpression(Expression expression)
void
setWarning(boolean warning)
String
toString()
-
-
-
Method Detail
-
setExpression
public void setExpression(Expression expression)
-
setWarning
public void setWarning(boolean warning)
-
clone
public ErrorInstruction clone()
Description copied from class:ProgramInstruction
Override Object.clone() to make the method public. This method simply calls super.clone(), deferring to the default shallow cloning. Some ProcessorInstruction subclasses may need to override with custom safe or deep cloning.- Overrides:
clone
in classProgramInstruction
- Returns:
- shallow clone
- See Also:
ProgramInstruction.clone()
-
getDescriptionProperties
public PlanNode getDescriptionProperties()
- Specified by:
getDescriptionProperties
in classProgramInstruction
-
process
public void process(ProcedurePlan env) throws TeiidComponentException, TeiidProcessingException, TeiidSQLException
Description copied from class:ProgramInstruction
Allow this instruction to do whatever processing it needs, and to in turn manipulate the running program. A typical instruction should simplyincrement
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.)- Specified by:
process
in classProgramInstruction
- Throws:
TeiidSQLException
TeiidComponentException
TeiidProcessingException
-
requiresTransaction
public Boolean requiresTransaction(boolean transactionalReads)
- Overrides:
requiresTransaction
in classProgramInstruction
-
-