org.modeshape.jcr.query.qom
Class JcrSameNodeJoinCondition
java.lang.Object
org.modeshape.graph.query.model.SameNodeJoinCondition
org.modeshape.jcr.query.qom.JcrSameNodeJoinCondition
- All Implemented Interfaces:
- Serializable, SameNodeJoinCondition, JoinCondition, LanguageObject, Visitable, JcrJoinCondition
public class JcrSameNodeJoinCondition
- extends SameNodeJoinCondition
- implements SameNodeJoinCondition, JcrJoinCondition
Implementation of the same-node join condition for the JCR Query Object Model and the Graph API.
- See Also:
- Serialized Form
Constructor Summary |
JcrSameNodeJoinCondition(SelectorName selector1Name,
SelectorName selector2Name)
Create a join condition that determines whether the node identified by the first selector is the same as the node
identified by the second selector. |
JcrSameNodeJoinCondition(SelectorName selector1Name,
SelectorName selector2Name,
String selector2Path)
Create a join condition that determines whether the node identified by the first selector is the same as the node at the
given path relative to the node identified by the second selector. |
Methods inherited from interface org.modeshape.graph.query.model.Visitable |
accept |
JcrSameNodeJoinCondition
public JcrSameNodeJoinCondition(SelectorName selector1Name,
SelectorName selector2Name,
String selector2Path)
- Create a join condition that determines whether the node identified by the first selector is the same as the node at the
given path relative to the node identified by the second selector.
- Parameters:
selector1Name
- the name of the first selectorselector2Name
- the name of the second selectorselector2Path
- the relative path from the second selector locating the node being compared with the first selector
JcrSameNodeJoinCondition
public JcrSameNodeJoinCondition(SelectorName selector1Name,
SelectorName selector2Name)
- Create a join condition that determines whether the node identified by the first selector is the same as the node
identified by the second selector.
- Parameters:
selector1Name
- the name of the first selectorselector2Name
- the name of the second selector
- Throws:
IllegalArgumentException
- if either selector name is null
getSelector2Path
public String getSelector2Path()
-
- Specified by:
getSelector2Path
in interface SameNodeJoinCondition
- See Also:
SameNodeJoinCondition.getSelector2Path()
getSelector1Name
public String getSelector1Name()
-
- Specified by:
getSelector1Name
in interface SameNodeJoinCondition
- See Also:
SameNodeJoinCondition.getSelector1Name()
getSelector2Name
public String getSelector2Name()
-
- Specified by:
getSelector2Name
in interface SameNodeJoinCondition
- See Also:
SameNodeJoinCondition.getSelector2Name()
Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.