jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Lombart" <christophe.lomb...@gmail.com>
Subject Re: OCM:Supporting nested properties for the FilterImpl
Date Fri, 17 Oct 2008 06:56:07 GMT
At present,  this not possible but I think it should be nice to implement
it.

See the issue http://issues.apache.org/jira/browse/JCR-878 (see the latest
point in this issue).  We can split this issue into smaller ones .

On Fri, Oct 17, 2008 at 08:01, Boni Gopalan (BioImagene) <
Boni.G@bioimagene.com> wrote:

> The Filter is a nifty interface that allows hassle free construction of
> JCR query strings through a Criterion() like methods.  The default
> implementation does a remarkably accurate job of building queries that
> are one level deep.  It would be great if the queries can be any level
> deep so that one can fetch back any specific 'Object' representation of
> a node or a property.
>
>
>
> Eg.
>
>
>
> Foo{
>
> String id;
>
> List<Bar> myBar;
>
> }
>
>
>
> Bar{
>
>            String id;
>
>            String name;
>
> }
>
>
>
> Filter(Foo.class); [Not exactly but you get the idea!]
>
> Filter.addEqualsTo("myBar[].name"," C&A's Pub Pub");
>
>
>
> Ocm.getObjects(Filter) , fetches all the Foos with a nested property
> name="C&A's Pub"
>
>
>
> Any thoughts?  Is it possible with the current API?,
>
>
>
> Thanks
>
> Boni
>
>
>
>
>
>
>
> Boni Gopalan
> Manager Engineering
> BioImagene, Pune
>
> +91-206-609-6579(O)
> +91-992-369-9356(C)
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message