[infinispan-dev] changing the CacheQuery.list() method to retrieve a typed list.
Manik Surtani
msurtani at redhat.com
Wed Feb 27 09:13:37 EST 2013
On 18 Feb 2013, at 16:01, Xavier Coulon <xcoulon at redhat.com> wrote:
> Hello,
>
> [This mail summaries a conversation that I started with Sanne and Emmanuel, off-list]
>
> The current CacheQuery.list() method returns a List<Object>, which less handy to manipulate than a typed list (List<Book> for example).
>
> My initial question is: could the CacheQuery.list() method be changed into something like CacheQuery.list(Book.class) which would return a List<Book> ?
>
> After discussing this subject with Sanne and Emmanuel, it seems to be interesting but not so trivial, partially because of the way Infinispan supports Projections.
> Which brings me to the suggestion where, in case of projections, the result list could be a List<Book> for which only of subset of the attributes would be set.
>
> While another user opened a similar issue last week -nice coincidence- : https://issues.jboss.org/browse/ISPN-2826, Sanne pointed me to https://issues.jboss.org/browse/ISPN-949 which is about using something similar to ResultTransformers in Infinispan.
Certainly something worth considering. Feel like contributing a patch?
>
>
> Thanks,
> Best regards,
> /Xavier
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani
Platform Architect, JBoss Data Grid
http://red.ht/data-grid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20130227/3d7f138f/attachment.html
More information about the infinispan-dev
mailing list