|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.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
).
Constructor Summary | |
---|---|
From()
Constructs a default instance of this class. |
|
From(java.util.List 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 clauses)
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 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 |
getClauses()
Get all the clauses in FROM |
java.util.List |
getGroups()
Returns an ordered list of the groups in all sub-clauses. |
int |
hashCode()
Get hashcode for From. |
void |
setClauses(java.util.List 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 parameters)
parameters
- The ordered list of from clausesMethod Detail |
---|
public void addClause(FromClause clause)
clause
- Add a clause to the FROMpublic void addClauses(java.util.Collection clauses)
clauses
- Collection of FromClause
spublic java.util.List getClauses()
FromClause
public void setClauses(java.util.List clauses)
clauses
- List of FromClause
public void addGroup(GroupSymbol group)
group
- Group to addpublic void addGroups(java.util.Collection groups)
groups
- Collection of GroupSymbol
public java.util.List getGroups()
GroupSymbol
public boolean containsGroup(GroupSymbol group)
group
- Group to check for
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 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.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 |