|
||||||||||
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.LoopStatement
public class LoopStatement
This class represents a loop statement in the storedprocedure language
to cursor through a result set.
It extends the Statement
that could part of a block. This statement has
a block, a select statement and a cursor.
determines which block should be executed..
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 | |
---|---|
LoopStatement(Block block,
Command query,
java.lang.String cursorName)
|
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
java.lang.Object |
clone()
Deep clone statement to produce a new identical statement. |
boolean |
equals(java.lang.Object obj)
Compare two LoopStatements for equality. |
Block |
getBlock()
|
Command |
getCommand()
Returns the subquery Command object |
java.lang.String |
getCursorName()
|
int |
getType()
Return the type for this statement, this is one of the types defined on the statement object. |
int |
hashCode()
Get hashcode for LoopStatement. |
void |
setBlock(Block block)
|
void |
setCommand(Command command)
Sets the command. |
void |
setCommand(Query query)
|
void |
setCursorName(java.lang.String cursorName)
|
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 LoopStatement(Block block, Command query, java.lang.String cursorName)
Method Detail |
---|
public java.lang.String getCursorName()
public Block getBlock()
public Command getCommand()
SubqueryContainer
getCommand
in interface SubqueryContainer
public void setCommand(Command command)
setCommand
in interface SubqueryContainer
command
- the subquery Command objectpublic void setCursorName(java.lang.String cursorName)
string
- public void setBlock(Block block)
block
- public void setCommand(Query query)
query
- public int getType()
getType
in class Statement
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic java.lang.Object clone()
clone
in interface LanguageObject
clone
in class Statement
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Other object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |