jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Lombart <christophe.lomb...@gmail.com>
Subject Re: OCM annotation for a collection of references
Date Thu, 10 Sep 2009 15:25:00 GMT
> "Also, is it possible to efficiently lookup a list of nodes which
> reference a particular node?"
>
> I would like to search for nodes which reference a node (i.e. nodes
> which reference a tag in my case). Is there an automated way of doing
> this?

With the OCM API, this is not possible but you can make a native JCR
query with the following ObjectManager method:

    /**
     * Return a list of object matching to a JCR query
     *
     * @param query the JCR query
     * @param language the JCR Language ("XPATH" or "SQL").
     * @return
     */
    public Collection getObjects(String query, String language);

Mime
View raw message