|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.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()
|
String |
getProperty2Name()
|
String |
getSelector1Name()
|
String |
getSelector2Name()
|
int |
hashCode()
|
SelectorName |
selector1Name()
Get the name of the selector that appears on the left-side of the join. |
SelectorName |
selector2Name()
Get the name of the selector that appears on the right-side of the join. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, 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 selector1Name()
public final SelectorName selector2Name()
public String getSelector1Name()
getSelector1Name
in interface EquiJoinCondition
public String getSelector2Name()
getSelector2Name
in interface EquiJoinCondition
public final String getProperty1Name()
getProperty1Name
in interface EquiJoinCondition
public final String getProperty2Name()
getProperty2Name
in interface EquiJoinCondition
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public void accept(Visitor visitor)
Visitable
accept
in interface Visitable
visitor
- the visitor; never null
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |