DigesterProxyTest:
Collection result = main.getProxyCollection();
assertEquals("Invalide size", result.size(), 100);
assertNull("nullcollectionproxy is not null",
main.getNullProxyCollection());
-----Original Message-----
From: Christophe Lombart [mailto:[EMAIL PROTECTED]
Sent: 17 October 2008 13:33
To: [email protected]
Subject: Re: The Size of a Lazily Loaded Collection
On Fri, Oct 17, 2008 at 09:59, Boni Gopalan (BioImagene) <
[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> Sent: 17 October 2008 13:13
> To: [email protected]
> 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)
>
>
>
>