org.apache.jackrabbit.spi.commons.query.jsr283.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 the isSame method of javax.jcr.Item.

If selector2Path is omitted:

Otherwise, if selector2Path is specified:

The query is invalid if:

Since:
JCR 2.0

Method Summary
 String getSelector1Name()
          Gets the name of the first selector.
 String getSelector2Name()
          Gets the name of the second selector.
 String getSelector2Path()
          Gets the path relative to the second selector.
 

Method Detail

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


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