Ronald Wildenberg wrote:
> 
> I assume you mean NodeQuery.setNodeStep?

yes.

> 
> This is the first time I use the Query interface, so I do not completely
> understand what you mean. What exactly does setNodeStep do? The JavaDoc
> does not really tell me what will happen.


A NodeQuery is a query which queries 'real' nodes, so all fields of a
certain step. 

So a NodeQuery has one special step, the 'node' step.

Perhaps I should look another time in the javadoc, but I'm not sure what to
add to make it clearer. Suggestions are welcome.

Shortly: perhaps you know the differnce between <mm:list and <mm:listnodes
The first is a result of a normal 'Query' (so 'cluster' nodes) and the
second is the result of a 'NodeQuery' (so 'real' nodes).

> 
> If I read this code and the JavaDoc correctly this code assumes a
> starting node to be present. I do not have a starting node in my case. I
> just wish to retrieve all relation nodes between two node types.

Yes, you can't use excactly this node. I just was thinking that what you do
is very similar. The only difference being that you don't want a constraint
on the first step.

 Michiel


-- 
Michiel Meeuwissen                  mihxil'
Mediacentrum 140 H'sum                [] ()
+31 (0)35 6772979         nl_NL eo_XX en_US




Reply via email to