org.mmbase.bridge.util
Class NodeQueryWrapper
java.lang.Object
org.mmbase.bridge.util.AbstractQueryWrapper<NodeQuery>
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
| 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 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 |
NodeQueryWrapper
public NodeQueryWrapper(NodeQuery q)
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
MMBase2 Bridge 2.0-SNAPSHOT - 2013-03-30T06:34