|
||||||||||
| 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.JoinPredicate
public class JoinPredicate
Represents a subpart of the FROM clause specifying a join within the FROM. It may optionally specify criteria for the join, depending on the join type. For example, these are some representations of JoinPredicates:
| Constructor Summary | |
|---|---|
JoinPredicate()
Construct a JoinPredicate |
|
JoinPredicate(FromClause leftClause,
FromClause rightClause,
JoinType type)
Construct a JoinPredicate between two clauses of the specified type. |
|
JoinPredicate(FromClause leftClause,
FromClause rightClause,
JoinType type,
Criteria criteria)
Construct a JoinPredicate between two clauses of the specified type. |
|
JoinPredicate(FromClause leftClause,
FromClause rightClause,
JoinType type,
java.util.List criteria)
Construct a JoinPredicate between two clauses of the specified type. |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
java.lang.Object |
clone()
Return deep clone for object |
void |
collectGroups(java.util.Collection groups)
Collect all GroupSymbols for this from clause. |
boolean |
equals(java.lang.Object obj)
Compare this object to another |
java.util.List |
getJoinCriteria()
Get join criteria for this predicate |
JoinType |
getJoinType()
Get join type for this predicate |
FromClause |
getLeftClause()
Get left clause |
FromClause |
getRightClause()
Get right clause |
int |
hashCode()
Get hash code for object |
void |
setJoinCriteria(java.util.List criteria)
Set join criteria for this predicate |
void |
setJoinType(JoinType type)
Set join type for this predicate |
void |
setLeftClause(FromClause predicate)
Set left clause |
void |
setRightClause(FromClause predicate)
Set right clause |
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 JoinPredicate()
public JoinPredicate(FromClause leftClause,
FromClause rightClause,
JoinType type)
leftClause - Left from clauserightClause - Right from clausetype - Type of join
public JoinPredicate(FromClause leftClause,
FromClause rightClause,
JoinType type,
java.util.List criteria)
leftClause - Left from clauserightClause - Right from clausetype - Type of joincriteria - List of Criteria for this join predicate
public JoinPredicate(FromClause leftClause,
FromClause rightClause,
JoinType type,
Criteria criteria)
leftClause - Left from clauserightClause - Right from clausetype - Type of joincriteria - List of Criteria for this join predicate| Method Detail |
|---|
public void setLeftClause(FromClause predicate)
predicate - Left clause to setpublic FromClause getLeftClause()
public void setRightClause(FromClause predicate)
predicate - Right clause to setpublic FromClause getRightClause()
public void setJoinType(JoinType type)
type - Type of joinpublic JoinType getJoinType()
public void setJoinCriteria(java.util.List criteria)
criteria - List of Criteria set on this predicatepublic java.util.List getJoinCriteria()
Criteriapublic 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 | |||||||||