jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boni Gopalan \(BioImagene\)" <Bon...@bioimagene.com>
Subject RE: The Size of a Lazily Loaded Collection
Date Fri, 17 Oct 2008 08:15:56 GMT
DigesterProxyTest:

Collection result = main.getProxyCollection();
assertEquals("Invalide size", result.size(), 100);
assertNull("nullcollectionproxy  is not null",
main.getNullProxyCollection());

-----Original Message-----
From: Christophe Lombart [mailto:christophe.lombart@gmail.com] 
Sent: 17 October 2008 13:33
To: users@jackrabbit.apache.org
Subject: Re: The Size of a Lazily Loaded Collection

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

> I see jackrabbit-ocm testcase thatis seamlessly using this feature.
> Looks like there is something wrong in my testcase.


you mean something like : getCollection.getsize() ?

In this case, the collection is loaded.


>
>
> -----Original Message-----
> From: Boni Gopalan (BioImagene) [mailto:Boni.G@bioimagene.com]
> Sent: 17 October 2008 13:13
> To: users@jackrabbit.apache.org
> Subject: OCM:The Size of a Lazily Loaded Collection
>
> 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
View raw message