|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.sql.lang.From
public class From
Represents a FROM clause in a SELECT query. The from clause holds a set of
FROM subclauses. Each FROM subclause can be either a single group
(UnaryFromClause) or a join predicate (JoinPredicate).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject |
|---|
LanguageObject.Util |
| Constructor Summary | |
|---|---|
From()
Constructs a default instance of this class. |
|
From(java.util.List<? extends FromClause> parameters)
Constructs an instance of this class from an ordered set of from clauses |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
void |
addClause(FromClause clause)
Add a clause to the FROM |
void |
addClauses(java.util.Collection<? extends FromClause> toAdd)
Add clauses to the FROM |
void |
addGroup(GroupSymbol group)
Adds a new group to the list (it will be wrapped in a UnaryFromClause) |
void |
addGroups(java.util.Collection<GroupSymbol> groups)
Adds a new collection of groups to the list |
java.lang.Object |
clone()
Return copy of this From clause. |
boolean |
containsGroup(GroupSymbol group)
Checks if a group is in the From |
boolean |
equals(java.lang.Object obj)
Compare two Froms for equality. |
java.util.List<FromClause> |
getClauses()
Get all the clauses in FROM |
java.util.List<GroupSymbol> |
getGroups()
Returns an ordered list of the groups in all sub-clauses. |
int |
hashCode()
Get hashcode for From. |
void |
setClauses(java.util.List<FromClause> clauses)
Set all the clauses |
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 From()
public From(java.util.List<? extends FromClause> parameters)
parameters - The ordered list of from clauses| Method Detail |
|---|
public void addClause(FromClause clause)
clause - Add a clause to the FROMpublic void addClauses(java.util.Collection<? extends FromClause> toAdd)
clauses - Collection of FromClausespublic java.util.List<FromClause> getClauses()
FromClausepublic void setClauses(java.util.List<FromClause> clauses)
clauses - List of FromClausepublic void addGroup(GroupSymbol group)
group - Group to addpublic void addGroups(java.util.Collection<GroupSymbol> groups)
groups - Collection of GroupSymbolpublic java.util.List<GroupSymbol> getGroups()
GroupSymbolpublic boolean containsGroup(GroupSymbol group)
group - Group to check for
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor in interface LanguageObjectvisitor - Visitor being usedpublic java.lang.Object clone()
clone in interface LanguageObjectclone in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 | |||||||||