org.mmbase.bridge.util
Class NodeQueryWrapper

java.lang.Object
  extended by org.mmbase.bridge.util.AbstractQueryWrapper<NodeQuery>
      extended by org.mmbase.bridge.util.NodeQueryWrapper
All Implemented Interfaces:
Cloneable, NodeQuery, Query, Cacheable, SearchQuery, SearchQueryWrapper, PublicCloneable<Query>

public class NodeQueryWrapper
extends AbstractQueryWrapper<NodeQuery>
implements NodeQuery

Implementation of Query completely based on other instance of that.

Since:
MMBase-1.9.2
Version:
$Id: NodeQueryWrapper.java 41862 2010-04-13 09:32:29Z michiel $
Author:
Michiel Meeuwissen

Field Summary
 
Fields inherited from class org.mmbase.bridge.util.AbstractQueryWrapper
query
 
Fields inherited from interface org.mmbase.storage.search.SearchQuery
DEFAULT_MAX_NUMBER, DEFAULT_OFFSET
 
Constructor Summary
NodeQueryWrapper(NodeQuery q)
           
 
Method Summary
 List<StepField> getExtraFields()
           
 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 class org.mmbase.bridge.util.AbstractQueryWrapper
addAggregatedField, addField, addField, addNode, addNode, addRelationStep, addRelationStep, addSortOrder, addSortOrder, addSortOrder, addStep, aggregatingClone, clone, cloneQuery, cloneWithoutFields, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createStepField, createStepField, createStepField, equals, getCachePolicy, getCleanConstraint, getCloud, getConstraint, getFields, getList, getMaxNumber, getOffset, getQuery, getSortOrders, getSql, getStep, getSteps, hashCode, isAggregating, isDistinct, isUsed, markUsed, removeFields, removeImplicitFields, setAlias, setCachePolicy, setCaseSensitive, setConstraint, setDistinct, setInverse, setMaxNumber, setOffset, toSql, toString, unwrap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.Query
addAggregatedField, addField, addField, addNode, addNode, addRelationStep, addRelationStep, addSortOrder, addSortOrder, addSortOrder, addStep, aggregatingClone, clone, cloneWithoutFields, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createStepField, createStepField, createStepField, getCleanConstraint, getCloud, getList, getStep, isUsed, markUsed, removeFields, removeImplicitFields, setAlias, setCaseSensitive, setConstraint, setDistinct, setInverse, setMaxNumber, setOffset, toSql
 
Methods inherited from interface org.mmbase.storage.search.SearchQuery
equals, getConstraint, getFields, getMaxNumber, getOffset, getSortOrders, getSteps, hashCode, isAggregating, isDistinct, toString
 
Methods inherited from interface org.mmbase.cache.Cacheable
getCachePolicy, setCachePolicy
 
Methods inherited from interface org.mmbase.storage.search.SearchQueryWrapper
unwrap
 

Constructor Detail

NodeQueryWrapper

public NodeQueryWrapper(NodeQuery q)
Method Detail

getNodeStep

public Step getNodeStep()
Description copied from interface: NodeQuery
Returns the step for which the fields are added (or null)

Specified by:
getNodeStep in interface NodeQuery
Returns:
step for which the fields are added

setNodeStep

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

Specified by:
setNodeStep in interface NodeQuery
Parameters:
step - add all fields of the this step
Returns:
the previously associated step (if there was one, otherwise null).

getNodeManager

public NodeManager getNodeManager()
Description copied from interface: NodeQuery
Returns the node-manager. Or 'null' if this is not yet determined.

Specified by:
getNodeManager in interface NodeQuery
Returns:
node-manager or 'null'

getStepField

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

Specified by:
getStepField in interface NodeQuery
Parameters:
field - field to get the StepField for.
Returns:
null if field is not of 'the' nodemanager.

getExtraFields

public List<StepField> getExtraFields()
Specified by:
getExtraFields in interface NodeQuery


MMBase 2.0-SNAPSHOT - null