|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.bridge.implementation.BasicQuery
org.mmbase.bridge.implementation.BasicNodeQuery
'Basic' implementation of bridge NodeQuery. Wraps a Query with all and only fields of one Step. If there is only one step, this can wrap NodeSearchQuery of core. Often, queries with more steps are sensible nodequeries, because sorting (e.g. posrel.pos) or filtering can be done on those steps (e.g. publishtimes). Nodes of this type can be used as an argument to function which do return 'real' nodes (so not clusternodes).
NodeSearchQuery| Field Summary | |
protected Step |
step
|
| Fields inherited from class org.mmbase.bridge.implementation.BasicQuery |
aggregating, cloud, explicitFields, implicitFields, insecureConstraint, query, queryCheck, used |
| Fields inherited from interface org.mmbase.storage.search.SearchQuery |
DEFAULT_MAX_NUMBER, DEFAULT_OFFSET |
| Method Summary | |
protected void |
addFields(java.util.Collection c)
Adds all fields of the gives collection, unless it is a field of the 'step' itself |
Query |
cloneWithoutFields()
Clones this object, only without the fields |
StepField |
createStepField(java.lang.String fieldName)
Creates the step field for the given name. |
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. |
void |
removeFields()
Removes all fields from the Query object. |
Query |
setDistinct(boolean distinct)
Specifies wether the query result must contain only 'distinct' results. |
Step |
setNodeStep(Step step)
Removes all fields and add all fields of the given step. |
| Methods inherited from class org.mmbase.bridge.implementation.BasicQuery |
addAggregatedField, addField, addField, addFieldImplicit, addNode, addNode, addRelationStep, addRelationStep, addRelationStep, addRelationStep, addSortOrder, addStep, aggregatingClone, clone, createAlias, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createNewQuery, createStepField, createStepField, equals, getCleanConstraint, getCloud, getConstraint, getFields, getMaxNumber, getOffset, getSortOrders, getStep, getSteps, glueAlias, hashCode, isAggregating, isDistinct, isUsed, markUsed, removeSecurityConstraintFromClone, setAlias, setCaseSensitive, setConstraint, setInverse, setMaxNumber, setOffset, toString |
| 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, addRelationStep, addRelationStep, addSortOrder, addStep, aggregatingClone, clone, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createStepField, createStepField, getCleanConstraint, getCloud, getStep, isAggregating, isUsed, markUsed, setAlias, setCaseSensitive, setConstraint, setInverse, setMaxNumber, setOffset |
| Methods inherited from interface org.mmbase.storage.search.SearchQuery |
equals, getConstraint, getFields, getMaxNumber, getOffset, getSortOrders, getSteps, hashCode, isDistinct, toString |
| Field Detail |
protected Step step
| Method Detail |
public NodeManager getNodeManager()
NodeQuery
getNodeManager in interface NodeQuerypublic Step getNodeStep()
NodeQuery
getNodeStep in interface NodeQuerypublic StepField createStepField(java.lang.String fieldName)
Query
createStepField in interface QuerycreateStepField in class BasicQuerypublic StepField getStepField(Field field)
NodeQuery
getStepField in interface NodeQuerypublic void removeFields()
Query
removeFields in interface QueryremoveFields in class BasicQueryprotected void addFields(java.util.Collection c)
public Query setDistinct(boolean distinct)
Query
setDistinct in interface QuerysetDistinct in class BasicQuerypublic Step setNodeStep(Step step)
NodeQuery
setNodeStep in interface NodeQuerypublic Query cloneWithoutFields()
Query
cloneWithoutFields in interface QuerycloneWithoutFields in class BasicQuery
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||