org.mmbase.bridge
Interface NodeQuery

All Superinterfaces:
java.lang.Cloneable, Query, SearchQuery
All Known Implementing Classes:
BasicNodeQuery

public interface NodeQuery
extends Query

A Node-Query is a query that queries node-lists, in contradiction to a normal Query which can query 'cluster nodes' and even more generally 'result nodes' too.

Since:
MMBase-1.7
Version:
$Id: NodeQuery.java,v 1.7 2003/09/01 13:29:42 pierre Exp $
Author:
Michiel Meeuwissen

Field Summary
 
Fields inherited from interface org.mmbase.storage.search.SearchQuery
DEFAULT_MAX_NUMBER, DEFAULT_OFFSET
 
Method Summary
 NodeManager getNodeManager()
          Returns the node-manager.
 Step getNodeStep()
          Returns the step for which the fields are added (or null)
 StepField getStepField(Field field)
          Since in a NodeQuery one of the steps is 'exceptional', also this function makes sense now.
 Step setNodeStep(Step step)
          Removes all fields and add all fields of the given step.
 
Methods inherited from interface org.mmbase.bridge.Query
addAggregatedField, addField, addField, addNode, addRelationStep, addRelationStep, addSortOrder, addStep, aggregatingClone, clone, cloneWithoutFields, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createStepField, createStepField, createStepField, getCleanConstraint, getCloud, getStep, isAggregating, isUsed, markUsed, removeFields, setAlias, setCaseSensitive, setConstraint, setDistinct, setInverse, setMaxNumber, setOffset
 
Methods inherited from interface org.mmbase.storage.search.SearchQuery
equals, getConstraint, getFields, getMaxNumber, getOffset, getSortOrders, getSteps, hashCode, isDistinct, toString
 

Method Detail

getNodeStep

public Step getNodeStep()
Returns the step for which the fields are added (or null)


setNodeStep

public Step setNodeStep(Step step)
Removes all fields and add all fields of the given step. This also can have an effect on the result of getNodeManager().

Returns:
the previously associated step (if there was one, otherwise null).

getNodeManager

public NodeManager getNodeManager()
Returns the node-manager. Or 'null' if this is not yet determined.


getStepField

public StepField getStepField(Field field)
Since in a NodeQuery one of the steps is 'exceptional', also this function makes sense now.

Returns:
null if field is not of 'the' nodemanager.


MMBase build 1.7.4.20050922