jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phukan, Anit" <Anit_Phu...@intuit.com>
Subject RE: Retrieving an object from a node based on a property attribute
Date Mon, 14 Sep 2009 16:23:45 GMT
Thanks a ton, Alex!

Regards
Anit

-----Original Message-----
From: Alexander Klimetschek [mailto:aklimets@day.com] 
Sent: Monday, September 14, 2009 3:34 AM
To: users@jackrabbit.apache.org
Subject: Re: Retrieving an object from a node based on a property
attribute

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