jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Retrieving an object from a node based on a property attribute
Date Mon, 14 Sep 2009 10:34:26 GMT
On Fri, Sep 11, 2009 at 18:28, Phukan, Anit <Anit_Phukan@intuit.com> wrote:
> I just need to get an object back from a node based on a node attribute
> that I specify.

You can use a query. With Xpath this would look like this:

//element(*, my:nodetype)[@property = 'value']

Have a look at the JCR 1.0 specification [1], sections 6.6 and/or 8.5.

[1] http://jcp.org/en/jsr/detail?id=170

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message