Package org.teiid.query.sql.proc
Class Statement
- java.lang.Object
-
- org.teiid.query.sql.proc.Statement
-
- All Implemented Interfaces:
Cloneable
,LanguageObject
- Direct Known Subclasses:
AssignmentStatement
,Block
,BranchingStatement
,CommandStatement
,IfStatement
,LoopStatement
,RaiseStatement
,WhileStatement
public abstract class Statement extends Object implements LanguageObject
This class represents the a statement in the stored procedure language. The subclasses of this class represent specific statements like an
IfStatement
,AssignmentStatement
etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Statement.Labeled
-
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_ASSIGNMENT
Represents a ASSIGNMENT statementstatic int
TYPE_BREAK
Represents a BREAK statementstatic int
TYPE_COMMAND
Represents a SQL COMMAND statementstatic int
TYPE_COMPOUND
static int
TYPE_CONTINUE
Represents a CONTINUE statementstatic int
TYPE_DECLARE
Represents a DECLARE statementstatic int
TYPE_ERROR
Represents a ERROR statementstatic int
TYPE_IF
Represents a IF statementstatic int
TYPE_LEAVE
static int
TYPE_LOOP
Represents a LOOP statementstatic int
TYPE_RETURN
static int
TYPE_UNKNOWN
Represents an unknown type of statementstatic int
TYPE_UPDATE
static int
TYPE_WHILE
Represents a WHILE statement
-
Constructor Summary
Constructors Constructor Description Statement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Object
clone()
Deep clone statement to produce a new identical statement.abstract int
getType()
Return type of statement to make it easier to build switch statements by statement type.String
toString()
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teiid.query.sql.LanguageObject
acceptVisitor
-
-
-
-
Field Detail
-
TYPE_UNKNOWN
public static final int TYPE_UNKNOWN
Represents an unknown type of statement- See Also:
- Constant Field Values
-
TYPE_IF
public static final int TYPE_IF
Represents a IF statement- See Also:
- Constant Field Values
-
TYPE_COMMAND
public static final int TYPE_COMMAND
Represents a SQL COMMAND statement- See Also:
- Constant Field Values
-
TYPE_DECLARE
public static final int TYPE_DECLARE
Represents a DECLARE statement- See Also:
- Constant Field Values
-
TYPE_ERROR
public static final int TYPE_ERROR
Represents a ERROR statement- See Also:
- Constant Field Values
-
TYPE_ASSIGNMENT
public static final int TYPE_ASSIGNMENT
Represents a ASSIGNMENT statement- See Also:
- Constant Field Values
-
TYPE_LOOP
public static final int TYPE_LOOP
Represents a LOOP statement- See Also:
- Constant Field Values
-
TYPE_WHILE
public static final int TYPE_WHILE
Represents a WHILE statement- See Also:
- Constant Field Values
-
TYPE_CONTINUE
public static final int TYPE_CONTINUE
Represents a CONTINUE statement- See Also:
- Constant Field Values
-
TYPE_BREAK
public static final int TYPE_BREAK
Represents a BREAK statement- See Also:
- Constant Field Values
-
TYPE_UPDATE
public static final int TYPE_UPDATE
- See Also:
- Constant Field Values
-
TYPE_COMPOUND
public static final int TYPE_COMPOUND
- See Also:
- Constant Field Values
-
TYPE_LEAVE
public static final int TYPE_LEAVE
- See Also:
- Constant Field Values
-
TYPE_RETURN
public static final int TYPE_RETURN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public abstract int getType()
Return type of statement to make it easier to build switch statements by statement type.- Returns:
- Type from TYPE constants
-
clone
public abstract Object clone()
Deep clone statement to produce a new identical statement.- Specified by:
clone
in interfaceLanguageObject
- Overrides:
clone
in classObject
- Returns:
- Deep clone
-
-