[infinispan-dev] Infinispan Query entity discovery (Was: Re: new Infinispan Query API - ISPN-194)

Sanne Grinovero sanne.grinovero at gmail.com
Fri May 13 14:27:19 EDT 2011


2011/5/13 Manik Surtani <manik at jboss.org>:
>
> On 29 Apr 2011, at 19:36, Sanne Grinovero wrote:
>
>> 2011/4/29 Israel Lacerra <israeldl at gmail.com>:
>>> What about use D) and also give a way to user specify the default classes to
>>> all queries?
>>
>> Yes that's the idea; but we need to figure out how the user specifies
>> the default classes; so far nobody liked any proposal.
>
> Are you suggesting something declarative?  E.g., a list of FQCNs in your config file?  Might work, but I still prefer mandating the type to query on, on a per-query basis.

I'm also not a big fan of listing FQCNs, but for example when doing a
"FROM" in JPA-QL you can target a supertype and be returned subtypes;
in our case you'd have to list all subtypes as well.
(i.e. "FROM java.lang.Object" is a valid query).

Or does Reflections provide some cool way to find all subtypes of a
class? Even if it's a bit expensive, we already cache all new class
processing as for each new type we have to restart the Search engine
which is quite expensive anyway.

Sanne

>
> Cheers
> Manik
> --
> Manik Surtani
> manik at jboss.org
> twitter.com/maniksurtani
>
> Lead, Infinispan
> http://www.infinispan.org
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>



More information about the infinispan-dev mailing list