jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Using the Abstract Query Tree?
Date Fri, 20 Apr 2007 07:48:20 GMT
Hi Jean-Baptiste,

Jean-Baptiste Quenot wrote:
> I noticed on the [1]documentation that one of the options to query
> the repository is to use the Abstract Query Tree, by means of
> building a custom QueryNode.  That seems interesting because it
> allows to express the query criteria using a Java API.
> However, I couldn't find an example of how this can be
> implemented?  I tried to extend
> org.apache.jackrabbit.core.query.lucene.QueryImpl with no luck, as
> the constructor expects statement and language.
> Is there a way to query the repository with pure Java, like eg
> Hibernate's Criteria API?

no, this is not possible. the abstract query tree is only a jackrabbit internal 

however there are discussions to create a Java query API for JCR 2.0 (JSR 283).


View raw message