I use an application in which we can manipulate JCR nodes, usually you have to rename, delete, delete or move them.
Using the JCR API, I can access the nodes in my repository and return the set of nodes in the same order as in the JCR.
I would like to be able to do the same with SQL2 JCR queries. I did not find anything about this and now I am beginning to believe that this is impossible.
For example, if I have a JCR tree, for example:
parentNode |_childNode1 |_childNode2 |_childNode3 |_childNode4
When querying using JCR SQL2, it returns them in an order different from: childNode1, childNode2, childNode3, childNode4
I look in these documents among others: http://docs.jboss.org/jbossdna/0.7/manuals/reference/html/jcr-query-and-search.html#jcr-sql2-query-language http: // www .day.com / specs / jcr / 2.0 / 6_Query.html
Thank you in advance
EDIT : if you use Java for your search, you can look at Recursive search in the JCR repository via java
Probably NOT the most efficient, so be aware of performance.
source share