Class QueryObjectModelTree
- java.lang.Object
 - 
- org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
 - 
- org.apache.jackrabbit.spi.commons.query.qom.QueryObjectModelTree
 
 
 
- 
public class QueryObjectModelTree extends AbstractQOMNode
QueryObjectModelTreeimplements the root node of an object query model tree. 
- 
- 
Constructor Summary
Constructors Constructor Description QueryObjectModelTree(NamePathResolver resolver, SourceImpl source, ConstraintImpl constraint, OrderingImpl[] orderings, ColumnImpl[] columns) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(QOMTreeVisitor visitor, java.lang.Object data)Accepts avisitorand calls the appropriate visit method depending on the type of this QOM node.ColumnImpl[]getColumns()Gets the columns for this query.ConstraintImplgetConstraint()Gets the constraint for this query.OrderingImpl[]getOrderings()Gets the orderings for this query.SelectorImplgetSelector(Name name)Returns the selector with the givennameornullif there is no selector with this name.SourceImplgetSource()Gets the node-tuple source for this query.java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
QueryObjectModelTree
public QueryObjectModelTree(NamePathResolver resolver, SourceImpl source, ConstraintImpl constraint, OrderingImpl[] orderings, ColumnImpl[] columns) throws javax.jcr.query.InvalidQueryException
- Throws:
 javax.jcr.query.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
 
 
- 
getSelector
public SelectorImpl getSelector(Name name)
Returns the selector with the givennameornullif there is no selector with this name.- Parameters:
 name- the name of a selector.- Returns:
 - the selector or 
nullif there is no such selector. 
 
- 
accept
public java.lang.Object accept(QOMTreeVisitor visitor, java.lang.Object data) throws java.lang.Exception
Accepts avisitorand calls the appropriate visit method depending on the type of this QOM node.- Specified by:
 acceptin classAbstractQOMNode- Parameters:
 visitor- the visitor.data- user defined data, which is passed to the visit method.- Throws:
 java.lang.Exception
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -