|
||||||||||
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.CommandStatement
public class CommandStatement
This class represents a variable assignment statement in the storedprocedure language.
It extends the Statement
that could part of a block. This statement has
a command that should be executed as part of the procedure.
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 | |
---|---|
CommandStatement()
Constructor for CommandStatement. |
|
CommandStatement(Command value)
Constructor for CommandStatement. |
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 CommandStatements for equality. |
Command |
getCommand()
Get the command on this statement. |
int |
getType()
Return the type for this statement, this is one of the types defined on the statement object. |
int |
hashCode()
Get hashcode for CommandStatement. |
void |
setCommand(Command command)
Sets the subquery Command object |
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 CommandStatement()
public CommandStatement(Command value)
value
- The Command
on this statementMethod Detail |
---|
public Command getCommand()
getCommand
in interface SubqueryContainer
Command
on this statementpublic void setCommand(Command command)
SubqueryContainer
setCommand
in interface SubqueryContainer
command
- the subquery Command objectpublic 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 |