|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.sql.proc.Statement
com.metamatrix.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.
Field Summary |
---|
Fields inherited from class com.metamatrix.query.sql.proc.Statement |
---|
TYPE_ASSIGNMENT, TYPE_BREAK, TYPE_COMMAND, TYPE_CONTINUE, TYPE_DECLARE, TYPE_ERROR, TYPE_IF, TYPE_LOOP, TYPE_UNKNOWN, 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 command. |
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
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)
setCommand
in interface SubqueryContainer
command
- the subquery Command objectcom.metamatrix.query.sql.lang.SubqueryLanguageObject#setCommand()
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
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |