org.apache.jackrabbit.spi.commons.query.qom
Class JoinImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
      extended by org.apache.jackrabbit.spi.commons.query.qom.SourceImpl
          extended by org.apache.jackrabbit.spi.commons.query.qom.JoinImpl
All Implemented Interfaces:
Join, Source

public class JoinImpl
extends SourceImpl
implements Join

JoinImpl...


Field Summary
 
Fields inherited from class org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
resolver
 
Method Summary
 Object accept(QOMTreeVisitor visitor, Object data)
          Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
 JoinCondition getJoinCondition()
          Gets the join condition.
 String getJoinType()
          Gets the join type.
 JoinType getJoinTypeInstance()
           
 Source getLeft()
          Gets the left node-tuple source.
 Source getRight()
          Gets the right node-tuple source.
 SelectorImpl[] getSelectors()
          
 String toString()
           
 
Methods inherited from class org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
getJCRName, getJCRPath, protect, quote, quote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getJoinTypeInstance

public JoinType getJoinTypeInstance()

getLeft

public Source getLeft()
Gets the left node-tuple source.

Specified by:
getLeft in interface Join
Returns:
the left source; non-null

getRight

public Source getRight()
Gets the right node-tuple source.

Specified by:
getRight in interface Join
Returns:
the right source; non-null

getJoinType

public String getJoinType()
Gets the join type.

Specified by:
getJoinType in interface Join
Returns:
either
  • org.apache.jackrabbit.spi.commons.query.jsr283.qom.QueryObjectModelConstants#JOIN_TYPE_INNER,
  • org.apache.jackrabbit.spi.commons.query.jsr283.qom.QueryObjectModelConstants#JOIN_TYPE_LEFT_OUTER,
  • org.apache.jackrabbit.spi.commons.query.jsr283.qom.QueryObjectModelConstants#JOIN_TYPE_RIGHT_OUTER

getJoinCondition

public JoinCondition getJoinCondition()
Gets the join condition.

Specified by:
getJoinCondition in interface Join
Returns:
the join condition; non-null

getSelectors

public SelectorImpl[] getSelectors()

Specified by:
getSelectors in class SourceImpl
Returns:
the selectors that are contained in this source.

accept

public Object accept(QOMTreeVisitor visitor,
                     Object data)
              throws Exception
Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.

Specified by:
accept in class AbstractQOMNode
Parameters:
visitor - the visitor.
data - user defined data, which is passed to the visit method.
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object


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