|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.sql.proc.Statement
org.teiid.query.sql.proc.RaiseErrorStatement
public class RaiseErrorStatement
This class represents a error assignment statement in the storedprocedure language.
It extends the Statement that could part of a Block. This
this object holds and error message.
| Nested Class Summary |
|---|
| 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_CONTINUE, TYPE_DECLARE, TYPE_ERROR, TYPE_IF, TYPE_LOOP, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_WHILE |
| Constructor Summary | |
|---|---|
RaiseErrorStatement()
Constructor for RaiseErrorStatement. |
|
RaiseErrorStatement(Expression message)
Constructor for RaiseErrorStatement. |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
RaiseErrorStatement |
clone()
Deep clone statement to produce a new identical statement. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Class<?> |
getExpectedType()
|
Expression |
getExpression()
|
int |
getType()
Return type of statement to make it easier to build switch statements by statement type. |
int |
hashCode()
|
void |
setExpression(Expression expression)
|
| Methods inherited from class org.teiid.query.sql.proc.Statement |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RaiseErrorStatement()
public RaiseErrorStatement(Expression message)
message - The error message| Method Detail |
|---|
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor in interface LanguageObjectvisitor - Visitor being usedpublic Expression getExpression()
getExpression in interface ExpressionStatementpublic void setExpression(Expression expression)
setExpression in interface ExpressionStatementpublic int getType()
Statement
getType in class StatementAssignmentStatement.getType()public RaiseErrorStatement clone()
Statement
clone in interface LanguageObjectclone in class Statementpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.Class<?> getExpectedType()
getExpectedType in interface ExpressionStatement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||