|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.graph.query.model.JoinCondition org.jboss.dna.graph.query.model.EquiJoinCondition
@Immutable public class EquiJoinCondition
A join condition that tests whether a property on a node is equal to a property on another node. A node-tuple satisfies the constraint only if:
selector1Name
node has a property named property1Name
, andselector2Name
node has a property named property2Name
, andproperty1Name
is equal to the value of property property2Name
Constructor Summary | |
---|---|
EquiJoinCondition(Column column1,
Column column2)
Create an equi-join condition, given the columns. |
|
EquiJoinCondition(SelectorName selector1Name,
String property1Name,
SelectorName selector2Name,
String property2Name)
Create an equi-join condition, given the names of the selector and property for the left- and right-hand-side of the join. |
Method Summary | |
---|---|
void |
accept(Visitor visitor)
Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation. |
boolean |
equals(Object obj)
|
String |
getProperty1Name()
Get the name of the property that appears on the left-side of the join. |
String |
getProperty2Name()
Get the name of the property that appears on the left-side of the join. |
SelectorName |
getSelector1Name()
Get the name of the selector that appears on the left-side of the join. |
SelectorName |
getSelector2Name()
Get the name of the selector that appears on the right-side of the join. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EquiJoinCondition(SelectorName selector1Name, String property1Name, SelectorName selector2Name, String property2Name)
selector1Name
- the selector name appearing on the left-side of the join; never nullproperty1Name
- the property name for the left-side of the join; never nullselector2Name
- the selector name appearing on the right-side of the join; never nullproperty2Name
- the property name for the right-side of the join; never nullpublic EquiJoinCondition(Column column1, Column column2)
column1
- the column for the left-side of the join; never nullcolumn2
- the column for the right-side of the join; never nullMethod Detail |
---|
public final SelectorName getSelector1Name()
public final String getProperty1Name()
public final SelectorName getSelector2Name()
public final String getProperty2Name()
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public void accept(Visitor visitor)
visitor
- the visitor; never nullVisitable.accept(org.jboss.dna.graph.query.model.Visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |