javax.jcr.query.qom
Interface DescendantNodeJoinCondition

All Superinterfaces:
JoinCondition

public interface DescendantNodeJoinCondition
extends JoinCondition

Tests whether the descendantSelector node is a descendant of the ancestorSelector node. A node-tuple satisfies the constraint only if:

  descendantSelectorNode.getAncestor(n).isSame(ancestorSelectorNode) &&
     descendantSelectorNode.getDepth() > n
would return true some some non-negative integer n, where descendantSelectorNode is the node for descendantSelector and ancestorSelectorNode is the node for ancestorSelector.

Since:
JCR 2.0

Method Summary
 java.lang.String getAncestorSelectorName()
          Gets the name of the ancestor selector.
 java.lang.String getDescendantSelectorName()
          Gets the name of the descendant selector.
 

Method Detail

getDescendantSelectorName

java.lang.String getDescendantSelectorName()
Gets the name of the descendant selector.

Returns:
the selector name; non-null

getAncestorSelectorName

java.lang.String getAncestorSelectorName()
Gets the name of the ancestor selector.

Returns:
the selector name; non-null


Copyright © 2009 Day Software. All Rights Reserved.