|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicSearchQuery
org.mmbase.storage.search.implementation.NodeSearchQuery
A NodeSearchQuery implements a SearchQuery
that retrieves nodes of one specified nodetype.
The constructor creates the query with all persistent fields belonging to
the specified nodetype excluding byte[] type fields.
Use getField() to retrieve each of these fields.
Once an instance is constructed, it is not possible to add more fields/steps.
Consequently calling one of these methods always results in an
UnsupportedOperationException:
addStep()
addRelationStep()
addField()
addAggregatedField()
| Field Summary |
| Fields inherited from class org.mmbase.storage.search.implementation.BasicSearchQuery |
COPY_AGGREGATING, COPY_NORMAL, COPY_WITHOUTFIELDS, fields |
| Fields inherited from interface org.mmbase.storage.search.SearchQuery |
DEFAULT_MAX_NUMBER, DEFAULT_OFFSET |
| Constructor Summary | |
NodeSearchQuery(MMObjectBuilder builder)
Creator. |
|
| Method Summary | |
BasicAggregatedField |
addAggregatedField(Step step,
FieldDefs fielDefs,
int aggregationType)
Adds new aggregated field to this SearchQuery. |
BasicStepField |
addField(Step step,
FieldDefs fieldDefs)
Adds new field to this SearchQuery. |
BasicRelationStep |
addRelationStep(InsRel builder,
MMObjectBuilder nextBuilder)
Adds new relationstep to this SearchQuery. |
BasicStep |
addStep(MMObjectBuilder builder)
Adds new step to this SearchQuery. |
protected void |
copyFields(SearchQuery q)
|
protected void |
copySteps(SearchQuery q)
|
MMObjectBuilder |
getBuilder()
Returns the builder for the specified nodetype. |
BasicStepField |
getField(FieldDefs field)
Returns the stepfield corresponding to the specified field. |
protected void |
mapField(FieldDefs field,
StepField stepField)
|
| Methods inherited from class org.mmbase.storage.search.implementation.BasicSearchQuery |
addFields, addSortOrder, clone, copyConstraint, copySortOrders, createNewStepField, equals, getConstraint, getFields, getMaxNumber, getOffset, getSortOrders, getSteps, hashCode, isAggregating, isDistinct, removeFields, setConstraint, setDistinct, setMaxNumber, setOffset, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.storage.search.SearchQuery |
equals, getConstraint, getFields, getMaxNumber, getOffset, getSortOrders, getSteps, hashCode, isAggregating, isDistinct, toString |
| Constructor Detail |
public NodeSearchQuery(MMObjectBuilder builder)
builder - The builder for the nodetype, must not be a
virtual builder.
java.lang.IllegalArgumentException - When an invalid argument is supplied.| Method Detail |
protected void copySteps(SearchQuery q)
copySteps in class BasicSearchQueryprotected void copyFields(SearchQuery q)
copyFields in class BasicSearchQuerypublic BasicStepField getField(FieldDefs field)
field - The field.
java.lang.IllegalArgumentException - When the field is not a
persistent field of the associated nodetype.public MMObjectBuilder getBuilder()
public BasicStep addStep(MMObjectBuilder builder)
BasicSearchQuery
addStep in class BasicSearchQuerybuilder - The builder associated with the step.
public BasicRelationStep addRelationStep(InsRel builder, MMObjectBuilder nextBuilder)
BasicSearchQuery
getNext()
on the relationstep, and cast to BasicStep.
addRelationStep in class BasicSearchQuerybuilder - The builder associated with the relation step.nextBuilder - The builder associated with the next step.
public BasicStepField addField(Step step, FieldDefs fieldDefs)
BasicSearchQuery
addField in class BasicSearchQuerystep - The associated step.fieldDefs - The associated fieldDefs.
protected void mapField(FieldDefs field, StepField stepField)
mapField in class BasicSearchQuerypublic BasicAggregatedField addAggregatedField(Step step, FieldDefs fielDefs, int aggregationType)
BasicSearchQuery
addAggregatedField in class BasicSearchQuerystep - The associated step.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||