public class QueryBuilder.JoinClause extends Object
Modifier | Constructor and Description |
---|---|
protected |
JoinClause(NamedSelector rightTable,
JoinType type) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected JoinClause(NamedSelector rightTable, JoinType type)
protected SelectorName nameOf(String tableName)
tableName
- the table nameIllegalArgumentException
- if the table name could not be resolvedpublic QueryBuilder on(String columnEqualExpression)
columnEqualExpression
- the equality expression between the two tables; may not be nullIllegalArgumentException
- if the supplied expression is not an equality expressionpublic QueryBuilder onSameNode(String table1, String table2)
table1
- the name or alias of the first tabletable2
- the name or alias of the second tablepublic 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 nodepublic 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 nodeprotected QueryBuilder createJoin(JoinCondition condition)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.