jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boni Gopalan \(BioImagene\)" <Bon...@bioimagene.com>
Subject OCM:Supporting nested properties for the FilterImpl
Date Fri, 17 Oct 2008 06:01:29 GMT
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.





String id;           

List<Bar> myBar;




            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?, 







Boni Gopalan
Manager Engineering
BioImagene, Pune



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