|
||||||||||
| 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
public class 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,
Serialized Form| 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 |
| Constructor Summary | |
|---|---|
BasicNodeQuery(Cloud c)
|
|
BasicNodeQuery(Cloud cloud,
NodeSearchQuery q)
|
|
BasicNodeQuery(Cloud cloud,
SearchQuery q)
Makes a multi-step node-query, based on a normal query. |
|
BasicNodeQuery(NodeManager nodeManager)
node query. |
|
| Method Summary | |
|---|---|
protected void |
addFields(Collection<BasicStepField> c)
Adds all fields of the gives collection, unless it is a field of the 'step' itself |
NodeQuery |
cloneWithoutFields()
Clones this object, only without the fields |
StepField |
createStepField(String fieldName)
Creates the step field for the given name. |
List<StepField> |
getExtraFields()
|
NodeList |
getList()
Executes the query and returns the resulting node list. |
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 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, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createStepField, createStepField, getCleanConstraint, getCloud, getStep, isUsed, markUsed, removeImplicitFields, setAlias, setCaseSensitive, setConstraint, 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 |
| Field Detail |
|---|
protected Step step
| Constructor Detail |
|---|
public BasicNodeQuery(Cloud c)
public BasicNodeQuery(NodeManager nodeManager)
BasicNodeQuery(Cloud cloud,
NodeSearchQuery q)
BasicNodeQuery(Cloud cloud,
SearchQuery q)
| Method Detail |
|---|
public NodeManager getNodeManager()
NodeQuery
getNodeManager in interface NodeQuerypublic Step getNodeStep()
NodeQuery
getNodeStep in interface NodeQuerypublic StepField createStepField(String fieldName)
Query
createStepField in interface QuerycreateStepField in class BasicQueryfieldName - field identifier to create StepField from
public StepField getStepField(Field field)
NodeQuery
getStepField in interface NodeQueryfield - field to get the StepField for.
public void removeFields()
Query
removeFields in interface QueryremoveFields in class BasicQuerypublic List<StepField> getExtraFields()
getExtraFields in interface NodeQueryprotected void addFields(Collection<BasicStepField> c)
public Query setDistinct(boolean distinct)
Query
setDistinct in interface QuerysetDistinct in class BasicQuerydistinct - 'distinct' results
BasicSearchQuery.setDistinct(boolean),
SearchQuery.isDistinct()public Step setNodeStep(Step step)
NodeQuery
setNodeStep in interface NodeQuerystep - add all fields of the this step
public NodeQuery cloneWithoutFields()
Query
cloneWithoutFields in interface QuerycloneWithoutFields in class BasicQuerypublic NodeList getList()
Query
getList in interface QuerygetList in class BasicQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||