org.apache.jackrabbit.spi.commons.query.jsr283.qom
Interface DescendantNodeJoinCondition

All Superinterfaces:
JoinCondition
All Known Implementing Classes:
DescendantNodeJoinConditionImpl

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.

The query is invalid if:

Since:
JCR 2.0

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

Method Detail

getDescendantSelectorName

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

Returns:
the selector name; non-null

getAncestorSelectorName

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

Returns:
the selector name; non-null


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.