org.mmbase.bridge.util.xml.query
Class QueryDefinition

java.lang.Object
  extended byorg.mmbase.bridge.util.xml.query.QueryDefinition

public class QueryDefinition
extends Object

Defines a query and possible options for the fields to index. XXX What's the difference between a Query and a QueryDefinition?

Since:
MMBase-1.8
Version:
$Id: QueryDefinition.java,v 1.7 2006/04/10 15:25:43 michiel Exp $
Author:
Pierre van Rooden

Field Summary
 NodeManager elementManager
          The NodeManager of the 'main' nodetype in this query (if appropriate).
 Step elementStep
          The step in the query describing the 'main' nodetype (if appropriate).
 Collection fields
          A collection of FieldDefinition objects..
 boolean isMultiLevel
          If true, the query in this definition returns cluster nodes XXX: how is this different from query instanceof NodeQuery
 Query query
          The query to run
 
Constructor Summary
QueryDefinition()
           
QueryDefinition(QueryDefinition queryDefinition)
          Constructor, copies all data from the specified QueryDefinition object.
 
Method Summary
 void configure(Element queryElement)
          Configures the query definition, using data from a DOM element
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

query

public Query query
The query to run


isMultiLevel

public boolean isMultiLevel
If true, the query in this definition returns cluster nodes XXX: how is this different from query instanceof NodeQuery


elementManager

public NodeManager elementManager
The NodeManager of the 'main' nodetype in this query (if appropriate). XXX: How is this different from NodeQuery#getNodeManager() ?


elementStep

public Step elementStep
The step in the query describing the 'main' nodetype (if appropriate). XXX: How is this different from NodeQuery#getNodeStep() ?


fields

public Collection fields
A collection of FieldDefinition objects..

Constructor Detail

QueryDefinition

public QueryDefinition()

QueryDefinition

public QueryDefinition(QueryDefinition queryDefinition)
Constructor, copies all data from the specified QueryDefinition object.

Method Detail

configure

public void configure(Element queryElement)
Configures the query definition, using data from a DOM element


toString

public String toString()


MMBase build 1.8.1.20060716