|
ModeShape Distribution 3.1.2.Final | |||||||||
| 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 null
public 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 null| Method Detail |
|---|
public final SelectorName selector1Name()
public final SelectorName selector2Name()
public String getSelector1Name()
getSelector1Name in interface EquiJoinConditionpublic String getSelector2Name()
getSelector2Name in interface EquiJoinConditionpublic final String getProperty1Name()
getProperty1Name in interface EquiJoinConditionpublic final String getProperty2Name()
getProperty2Name in interface EquiJoinConditionpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic void accept(Visitor visitor)
Visitable
accept in interface Visitablevisitor - the visitor; never null
|
ModeShape Distribution 3.1.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||