|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.query.sql.lang.FromClause
com.metamatrix.query.sql.lang.SubqueryFromClause
public class SubqueryFromClause
A FROM subpart that represents a subquery. For example, the FROM clause: "FROM (SELECT a FROM b)" will have a SubqueryFromClause referencing the subquery.
| Constructor Summary | |
|---|---|
SubqueryFromClause(GroupSymbol symbol,
Command command)
|
|
SubqueryFromClause(java.lang.String name)
Construct default object |
|
SubqueryFromClause(java.lang.String name,
Command command)
Construct object with specified command and name |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
java.lang.Object |
clone()
Get deep clone of object |
void |
collectGroups(java.util.Collection groups)
Collect all GroupSymbols for this from clause. |
boolean |
equals(java.lang.Object obj)
Check whether objects are equal |
Command |
getCommand()
Get command held by clause |
GroupSymbol |
getGroupSymbol()
Get GroupSymbol representing the named subquery |
java.lang.String |
getName()
Get name of this clause. |
java.lang.String |
getOutputName()
|
int |
hashCode()
Get hash code of object |
void |
setCommand(Command command)
Set the command held by the clause |
void |
setName(java.lang.String name)
Reset the alias for this subquery from clause and it's pseudo-GroupSymbol. |
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
| Methods inherited from class com.metamatrix.query.sql.lang.FromClause |
|---|
hasHint, isMakeDep, isMakeNotDep, isOptional, setMakeDep, setMakeNotDep, setOptional |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SubqueryFromClause(java.lang.String name)
public SubqueryFromClause(java.lang.String name,
Command command)
command - Command representing subquery, or stored procedurename - Alias of the subquery
public SubqueryFromClause(GroupSymbol symbol,
Command command)
| Method Detail |
|---|
public void setName(java.lang.String name)
name - New namepublic void setCommand(Command command)
setCommand in interface SubqueryContainercommand - Command to holdpublic Command getCommand()
getCommand in interface SubqueryContainerpublic java.lang.String getName()
public java.lang.String getOutputName()
public GroupSymbol getGroupSymbol()
public void collectGroups(java.util.Collection groups)
collectGroups in class FromClausegroups - Groups to add topublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor in interface LanguageObjectacceptVisitor in class FromClausevisitor - Visitor being usedpublic boolean equals(java.lang.Object obj)
equals in class FromClauseobj - Other object
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in interface LanguageObjectclone in class FromClausepublic 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 | |||||||||