org.apache.jackrabbit.spi.commons.query
Interface QueryNodeFactory

All Known Implementing Classes:
DefaultQueryNodeFactory

public interface QueryNodeFactory

A factory for QueryNodes.


Method Summary
 AndQueryNode createAndQueryNode(QueryNode parent)
          Creates a AndQueryNode instance.
 DerefQueryNode createDerefQueryNode(QueryNode parent, Name nameTest, boolean descendants)
          Creates a DerefQueryNode instance.
 LocationStepQueryNode createLocationStepQueryNode(QueryNode parent)
          Creates a LocationStepQueryNode instance.
 NodeTypeQueryNode createNodeTypeQueryNode(QueryNode parent, Name nodeType)
          Creates a NodeTypeQueryNode instance.
 NotQueryNode createNotQueryNode(QueryNode parent)
          Creates a NotQueryNode instance.
 OrderQueryNode createOrderQueryNode(QueryNode parent)
          Creates a OrderQueryNode instance.
 OrQueryNode createOrQueryNode(QueryNode parent)
          Creates a OrQueryNode instance.
 PathQueryNode createPathQueryNode(QueryNode parent)
          Creates a PathQueryNode instance.
 PropertyFunctionQueryNode createPropertyFunctionQueryNode(QueryNode parent, String functionName)
          Creates a PropertyFunctionQueryNode instance.
 QueryRootNode createQueryRootNode()
          Creates a QueryRootNode instance.
 RelationQueryNode createRelationQueryNode(QueryNode parent, int operation)
          Creates a RelationQueryNode instance.
 TextsearchQueryNode createTextsearchQueryNode(QueryNode parent, String query)
          Creates a TextsearchQueryNode instance.
 

Method Detail

createNodeTypeQueryNode

NodeTypeQueryNode createNodeTypeQueryNode(QueryNode parent,
                                          Name nodeType)
Creates a NodeTypeQueryNode instance.

Parameters:
parent - the parent node.
nodeType - the name of the node type.
Returns:
a NodeTypeQueryNode.

createAndQueryNode

AndQueryNode createAndQueryNode(QueryNode parent)
Creates a AndQueryNode instance.

Parameters:
parent - the parent node.
Returns:
a AndQueryNode.

createLocationStepQueryNode

LocationStepQueryNode createLocationStepQueryNode(QueryNode parent)
Creates a LocationStepQueryNode instance.

Parameters:
parent - the parent node.
Returns:
a LocationStepQueryNode.

createDerefQueryNode

DerefQueryNode createDerefQueryNode(QueryNode parent,
                                    Name nameTest,
                                    boolean descendants)
Creates a DerefQueryNode instance.

Parameters:
parent - the parent node.
nameTest - the name test on the referenced target node.
descendants - if the axis is //
Returns:
a DerefQueryNode.

createNotQueryNode

NotQueryNode createNotQueryNode(QueryNode parent)
Creates a NotQueryNode instance.

Parameters:
parent - the parent node.
Returns:
a NotQueryNode.

createOrQueryNode

OrQueryNode createOrQueryNode(QueryNode parent)
Creates a OrQueryNode instance.

Parameters:
parent - the parent node.
Returns:
a OrQueryNode.

createRelationQueryNode

RelationQueryNode createRelationQueryNode(QueryNode parent,
                                          int operation)
Creates a RelationQueryNode instance.

Parameters:
parent - the parent node.
operation - the operation type.
Returns:
a RelationQueryNode.

createPathQueryNode

PathQueryNode createPathQueryNode(QueryNode parent)
Creates a PathQueryNode instance.

Parameters:
parent - the parent node.
Returns:
a PathQueryNode.

createOrderQueryNode

OrderQueryNode createOrderQueryNode(QueryNode parent)
Creates a OrderQueryNode instance.

Parameters:
parent - the parent node.
Returns:
a OrderQueryNode.

createPropertyFunctionQueryNode

PropertyFunctionQueryNode createPropertyFunctionQueryNode(QueryNode parent,
                                                          String functionName)
Creates a PropertyFunctionQueryNode instance.

Parameters:
parent - the parent node.
functionName - the name of the function.
Returns:
a PropertyFunctionQueryNode.

createQueryRootNode

QueryRootNode createQueryRootNode()
Creates a QueryRootNode instance.

Returns:
a QueryRootNode.

createTextsearchQueryNode

TextsearchQueryNode createTextsearchQueryNode(QueryNode parent,
                                              String query)
Creates a TextsearchQueryNode instance.

Parameters:
parent - the parent node.
query - the textsearch statement.
Returns:
a TextsearchQueryNode.


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