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 theisSamemethod ofjavax.jcr.Item.Tests whether the
selector1node is the same as a node identified by relative path from theselector2node. A node-tuple satisfies the constraint only if:selector1Node.isSame(selector2Node.getNode(selector2Path))
would return true, whereselector1Nodeis the node forselector1andselector2Nodeis the node forselector2.- Since:
- JCR 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetSelector1Name()Gets the name of the first selector.java.lang.StringgetSelector2Name()Gets the name of the second selector.java.lang.StringgetSelector2Path()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
-
-