Package org.teiid.query.sql.proc
Class RaiseStatement
- java.lang.Object
-
- org.teiid.query.sql.proc.Statement
-
- org.teiid.query.sql.proc.RaiseStatement
-
- All Implemented Interfaces:
Cloneable
,LanguageObject
,ExpressionStatement
public class RaiseStatement extends Statement implements ExpressionStatement
This class represents a error assignment statement in the storedprocedure language. It extends the
Statement
that could part of aBlock
. This this object holds and error message.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.teiid.query.sql.proc.Statement
Statement.Labeled
-
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
-
-
Field Summary
-
Fields inherited from class org.teiid.query.sql.proc.Statement
TYPE_ASSIGNMENT, TYPE_BREAK, TYPE_COMMAND, TYPE_COMPOUND, TYPE_CONTINUE, TYPE_DECLARE, TYPE_ERROR, TYPE_IF, TYPE_LEAVE, TYPE_LOOP, TYPE_RETURN, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_WHILE
-
-
Constructor Summary
Constructors Constructor Description RaiseStatement()
RaiseStatement(Expression message)
Constructor for RaiseErrorStatement.RaiseStatement(Expression message, boolean warning)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.RaiseStatement
clone()
Deep clone statement to produce a new identical statement.boolean
equals(Object obj)
Class<?>
getExpectedType()
Expression
getExpression()
int
getType()
Return type of statement to make it easier to build switch statements by statement type.int
hashCode()
boolean
isWarning()
void
setExpression(Expression expression)
void
setWarning(boolean warning)
-
-
-
Constructor Detail
-
RaiseStatement
public RaiseStatement()
-
RaiseStatement
public RaiseStatement(Expression message)
Constructor for RaiseErrorStatement.- Parameters:
message
- The error message
-
RaiseStatement
public RaiseStatement(Expression message, boolean warning)
-
-
Method Detail
-
acceptVisitor
public void acceptVisitor(LanguageVisitor visitor)
Description copied from interface:LanguageObject
Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.- Specified by:
acceptVisitor
in interfaceLanguageObject
- Parameters:
visitor
- Visitor being used
-
getExpression
public Expression getExpression()
- Specified by:
getExpression
in interfaceExpressionStatement
-
setExpression
public void setExpression(Expression expression)
- Specified by:
setExpression
in interfaceExpressionStatement
-
getType
public int getType()
Description copied from class:Statement
Return type of statement to make it easier to build switch statements by statement type.
-
clone
public RaiseStatement clone()
Description copied from class:Statement
Deep clone statement to produce a new identical statement.- Specified by:
clone
in interfaceLanguageObject
- Specified by:
clone
in classStatement
- Returns:
- Deep clone
-
getExpectedType
public Class<?> getExpectedType()
- Specified by:
getExpectedType
in interfaceExpressionStatement
-
isWarning
public boolean isWarning()
-
setWarning
public void setWarning(boolean warning)
-
-