javax.jcr.query.qom
Interface SameNodeJoinCondition

All Superinterfaces:
JoinCondition

public interface SameNodeJoinCondition
extends JoinCondition

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
 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


Copyright © 2009 Day Software. All Rights Reserved.