|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.query.QueryBuilder.JoinClause
public class QueryBuilder.JoinClause

Class used to specify a join clause of a query.
QueryBuilder.join(String),
QueryBuilder.innerJoin(String),
QueryBuilder.leftOuterJoin(String),
QueryBuilder.rightOuterJoin(String),
QueryBuilder.fullOuterJoin(String)| Constructor Summary | |
|---|---|
protected |
QueryBuilder.JoinClause(NamedSelector rightTable,
JoinType type)
|
| Method Summary | |
|---|---|
protected QueryBuilder |
createJoin(JoinCondition condition)
|
protected SelectorName |
nameOf(String tableName)
Walk the current source or the 'rightSource' to find the named selector with the supplied name or alias |
QueryBuilder |
on(String columnEqualExpression)
Define the join as using an equi-join criteria by specifying the expression equating two columns. |
QueryBuilder |
onChildNode(String parentTable,
String childTable)
Define the join criteria to require the node in one table is a child of the node in another table. |
QueryBuilder |
onDescendant(String ancestorTable,
String descendantTable)
Define the join criteria to require the node in one table is a descendant of the node in another table. |
QueryBuilder |
onSameNode(String table1,
String table2)
Define the join criteria to require the two tables represent the same node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected QueryBuilder.JoinClause(NamedSelector rightTable,
JoinType type)
| Method Detail |
|---|
protected SelectorName nameOf(String tableName)
tableName - the table name
IllegalArgumentException - if the table name could not be resolvedpublic QueryBuilder on(String columnEqualExpression)
columnEqualExpression - the equality expression between the two tables; may not be null
IllegalArgumentException - if the supplied expression is not an equality expression
public QueryBuilder onSameNode(String table1,
String table2)
table1 - the name or alias of the first tabletable2 - the name or alias of the second table
public QueryBuilder onDescendant(String ancestorTable,
String descendantTable)
ancestorTable - the name or alias of the table containing the ancestor nodedescendantTable - the name or alias of the table containing the descendant node
public QueryBuilder onChildNode(String parentTable,
String childTable)
parentTable - the name or alias of the table containing the parent nodechildTable - the name or alias of the table containing the child node
protected QueryBuilder createJoin(JoinCondition condition)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||