Package javax.jcr.query.qom
Interface SameNodeJoinCondition
- All Superinterfaces:
JoinCondition
- All Known Implementing Classes:
SameNodeJoinConditionImpl
Tests whether two nodes are "the same" according to the
isSame
method of javax.jcr.Item
.
Tests whether the selector1
node is the same as a node identified by
relative path from the selector2
node.
A node-tuple satisfies the constraint only if:
selector1Node.isSame(selector2Node.getNode(selector2Path))would return true, where
selector1Node
is the node for selector1
and selector2Node
is the node for
selector2
.- Since:
- JCR 2.0
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of the first selector.Gets the name of the second selector.Gets the path relative to the second selector.
-
Method Details
-
getSelector1Name
String getSelector1Name()Gets the name of the first selector.- Returns:
- the selector name; non-null
-
getSelector2Name
String getSelector2Name()Gets the name of the second selector.- Returns:
- the selector name; non-null
-
getSelector2Path
String getSelector2Path()Gets the path relative to the second selector.- Returns:
- the relative path, or null for none
-