public class BasicNodeQuery extends BasicQuery implements NodeQuery
NodeSearchQuery| Modifier and Type | Field and Description |
|---|---|
protected Step |
step |
aggregating, cloud, explicitFields, implicitFields, insecureConstraint, query, queryCheck, usedDEFAULT_MAX_NUMBER, DEFAULT_OFFSET| Constructor and Description |
|---|
BasicNodeQuery(BasicNodeManager nodeManager,
NodeSearchQuery q) |
BasicNodeQuery(Cloud c) |
BasicNodeQuery(Cloud cloud,
SearchQuery q)
Makes a multi-step node-query, based on a normal query.
|
BasicNodeQuery(NodeManager nodeManager)
node query.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addAggregatedField, addField, addField, addFieldImplicit, addNode, addNode, addRelationStep, addRelationStep, addRelationStep, addRelationStep, addSortOrder, addSortOrder, addSortOrder, addStep, aggregatingClone, clone, createAlias, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createNewQuery, createStepField, createStepField, equals, getCachePolicy, getCleanConstraint, getCloud, getConstraint, getFields, getMaxNumber, getOffset, getQuery, getSortOrders, getSql, getStep, getSteps, glueAlias, hashCode, isAggregating, isDistinct, isSecure, isUsed, markUsed, removeImplicitFields, removeSecurityConstraint, removeSecurityConstraintFromClone, setAlias, setCachePolicy, setCaseSensitive, setConstraint, setInverse, setMaxNumber, setOffset, setSecurityConstraint, toSql, toString, unwrapfinalize, getClass, notify, notifyAll, wait, wait, waitaddAggregatedField, 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, toSqlequals, getConstraint, getFields, getMaxNumber, getOffset, getSortOrders, getSteps, hashCode, isAggregating, isDistinct, toStringgetCachePolicy, setCachePolicyunwrapprotected Step step
public BasicNodeQuery(Cloud c)
public BasicNodeQuery(NodeManager nodeManager)
BasicNodeQuery(BasicNodeManager nodeManager, NodeSearchQuery q)
BasicNodeQuery(Cloud cloud, SearchQuery q)
public NodeManager getNodeManager()
NodeQuerygetNodeManager in interface NodeQuerypublic Step getNodeStep()
NodeQuerygetNodeStep in interface NodeQuerypublic StepField createStepField(String fieldName)
QuerycreateStepField in interface QuerycreateStepField in class BasicQueryfieldName - field identifier to create StepField frompublic StepField getStepField(Field field)
NodeQuerygetStepField in interface NodeQueryfield - field to get the StepField for.public void removeFields()
QueryremoveFields in interface QueryremoveFields in class BasicQuerypublic List<StepField> getExtraFields()
getExtraFields in interface NodeQueryprotected void addFields(Collection<BasicStepField> c)
public Query setDistinct(boolean distinct)
QuerysetDistinct in interface QuerysetDistinct in class BasicQuerydistinct - 'distinct' resultsBasicSearchQuery.setDistinct(boolean),
SearchQuery.isDistinct()public Step setNodeStep(Step step)
NodeQuerysetNodeStep in interface NodeQuerystep - add all fields of the this steppublic NodeQuery cloneWithoutFields()
QuerycloneWithoutFields in interface QuerycloneWithoutFields in class BasicQueryMMBase 1.9-SNAPSHOT - ${javadoctimestamp}