|
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.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 nullpublic SameNodeJoinCondition(SelectorName selector1Name, SelectorName selector2Name)
selector1Name
- the name of the first selectorselector2Name
- the name of the second selector
IllegalArgumentException
- if either selector name is nullMethod Detail |
---|
public final SelectorName selector1Name()
public final SelectorName selector2Name()
public String getSelector1Name()
getSelector1Name
in interface SameNodeJoinCondition
public String getSelector2Name()
getSelector2Name
in interface SameNodeJoinCondition
public final String getSelector2Path()
getSelector2Path
in interface SameNodeJoinCondition
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 |