|
ModeShape Distribution 3.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jcr.query.model.SameNodeJoinCondition
@Immutable public class SameNodeJoinCondition
A join condition that tests whether two nodes are the same nodes (that is, have the same identifier or have the same relative path from the nearest ancestor with an identifiers).
| Constructor Summary | |
|---|---|
SameNodeJoinCondition(SelectorName selector1Name,
SelectorName selector2Name)
Create a join condition that determines whether the node identified by the first selector is the same as the node identified by the second selector. |
|
SameNodeJoinCondition(SelectorName selector1Name,
SelectorName selector2Name,
String selector2Path)
Create a join condition that determines whether the node identified by the first selector is the same as the node at the given path relative to the node identified by the second selector. |
|
| 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 |
getSelector1Name()
|
String |
getSelector2Name()
|
String |
getSelector2Path()
|
int |
hashCode()
|
SelectorName |
selector1Name()
Get the selector name for the first side of the join condition. |
SelectorName |
selector2Name()
Get the selector name for the second side of the join condition. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SameNodeJoinCondition(SelectorName selector1Name,
SelectorName selector2Name,
String selector2Path)
selector1Name - the name of the first selectorselector2Name - the name of the second selectorselector2Path - the relative path from the second selector locating the node being compared with the first selector
IllegalArgumentException - if the path or either selector name is null
public SameNodeJoinCondition(SelectorName selector1Name,
SelectorName selector2Name)
selector1Name - the name of the first selectorselector2Name - the name of the second selector
IllegalArgumentException - if either selector name is null| Method Detail |
|---|
public final SelectorName selector1Name()
public final SelectorName selector2Name()
public String getSelector1Name()
getSelector1Name in interface SameNodeJoinConditionpublic String getSelector2Name()
getSelector2Name in interface SameNodeJoinConditionpublic final String getSelector2Path()
getSelector2Path in interface SameNodeJoinConditionpublic 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.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||