Exact difference between Jcr-xql2, xpath query and query builder api | Community
Skip to main content
pavanb46130733
Level 2
September 21, 2017
Solved

Exact difference between Jcr-xql2, xpath query and query builder api

  • September 21, 2017
  • 1 reply
  • 3088 views

Hi All,

Can you let me know the differences between Jcr-xql2, xpath query and query builder api .

Which is the best in among three to query the crx3.

Can you share me the official documentation links to these please?

Thanks in advance.

---

Regards,

Pavan Bukka

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

QUeryBuilder is built upon JCR SQL API. See: Query Builder API

You can use the QueryBuilder API within a custom AEM service and invoke it from an backend Java  HTL component (then display the result set in the HTL front end) -- see: Scott's Digital Community: Creating an AEM HTL component that queries the JCR

JCR SQL/2 docs can be found here: JCR 2.0: 6 Query (Content Repository for Java Technology API v2.0)

Community docs: 9 JCR-SQL2 Queries Every AEM Developer Should Know | 6D Labs

Another good community doc: http://www.aemcq5tutorials.com/tutorials/adobe-aem-cq5-tutorials/aem-query-builder/

As far as XPATH  - in later versions of AEM - this is not used much. Use ether QueryBuilder API or JCR SQL2.

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
September 21, 2017

QUeryBuilder is built upon JCR SQL API. See: Query Builder API

You can use the QueryBuilder API within a custom AEM service and invoke it from an backend Java  HTL component (then display the result set in the HTL front end) -- see: Scott's Digital Community: Creating an AEM HTL component that queries the JCR

JCR SQL/2 docs can be found here: JCR 2.0: 6 Query (Content Repository for Java Technology API v2.0)

Community docs: 9 JCR-SQL2 Queries Every AEM Developer Should Know | 6D Labs

Another good community doc: http://www.aemcq5tutorials.com/tutorials/adobe-aem-cq5-tutorials/aem-query-builder/

As far as XPATH  - in later versions of AEM - this is not used much. Use ether QueryBuilder API or JCR SQL2.