org.apache.jackrabbit.core.query.qom
Class QueryObjectModelTree

java.lang.Object
  extended by org.apache.jackrabbit.core.query.qom.AbstractQOMNode
      extended by org.apache.jackrabbit.core.query.qom.QueryObjectModelTree

public class QueryObjectModelTree
extends AbstractQOMNode

QueryObjectModelTree implements the root node of an object query model tree.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.query.qom.AbstractQOMNode
resolver
 
Constructor Summary
QueryObjectModelTree(NamePathResolver resolver, SourceImpl source, ConstraintImpl constraint, OrderingImpl[] orderings, ColumnImpl[] columns)
           
 
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.
 ColumnImpl[] getColumns()
          Gets the columns for this query.
 ConstraintImpl getConstraint()
          Gets the constraint for this query.
 OrderingImpl[] getOrderings()
          Gets the orderings for this query.
 SourceImpl getSource()
          Gets the node-tuple source for this query.
 
Methods inherited from class org.apache.jackrabbit.core.query.qom.AbstractQOMNode
getJCRName, getJCRPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryObjectModelTree

public QueryObjectModelTree(NamePathResolver resolver,
                            SourceImpl source,
                            ConstraintImpl constraint,
                            OrderingImpl[] orderings,
                            ColumnImpl[] columns)
                     throws InvalidQueryException
Throws:
InvalidQueryException
Method Detail

getSource

public SourceImpl getSource()
Gets the node-tuple source for this query.

Returns:
the node-tuple source; non-null

getConstraint

public ConstraintImpl getConstraint()
Gets the constraint for this query.

Returns:
the constraint, or null if none

getOrderings

public OrderingImpl[] getOrderings()
Gets the orderings for this query.

Returns:
an array of zero or more orderings; non-null

getColumns

public ColumnImpl[] getColumns()
Gets the columns for this query.

Returns:
an array of zero or more columns; non-null

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


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