jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Lombart" <christophe.lomb...@gmail.com>
Subject Re: OCM:The Size of a Lazily Loaded Collection
Date Fri, 17 Oct 2008 08:01:24 GMT
For the lazy loading, we are using cglib. I'm not sure that it is possible
because I don't know how to get the size of something that is not there :-).
An alternative is to add a "getCount" method. This operation should help in
many cases and the cost should not be expensive.


br
Christophe

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

> I have a requirement to know the size of a collection (List, Map) while
> fetching an object.  The <collection-descriptor> of these fields have
> 'proxy=true'.
>
>  How is it possible to find out the size it without iterating through
> the objects?
>
>
>
>
>
> 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