Package javax.jcr.query.qom
Interface SameNodeJoinCondition
-
- All Superinterfaces:
JoinCondition
- All Known Implementing Classes:
SameNodeJoinConditionImpl
public interface SameNodeJoinCondition extends JoinCondition
Tests whether two nodes are "the same" according to theisSame
method ofjavax.jcr.Item
.Tests whether the
selector1
node is the same as a node identified by relative path from theselector2
node. A node-tuple satisfies the constraint only if:selector1Node.isSame(selector2Node.getNode(selector2Path))
would return true, whereselector1Node
is the node forselector1
andselector2Node
is the node forselector2
.- Since:
- JCR 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getSelector1Name()
Gets the name of the first selector.java.lang.String
getSelector2Name()
Gets the name of the second selector.java.lang.String
getSelector2Path()
Gets the path relative to the second selector.
-
-
-
Method Detail
-
getSelector1Name
java.lang.String getSelector1Name()
Gets the name of the first selector.- Returns:
- the selector name; non-null
-
getSelector2Name
java.lang.String getSelector2Name()
Gets the name of the second selector.- Returns:
- the selector name; non-null
-
getSelector2Path
java.lang.String getSelector2Path()
Gets the path relative to the second selector.- Returns:
- the relative path, or null for none
-
-