Max,

Max Rydahl Andersen wrote:

>>>"it allows to perform circular lookups (as by crossreferenced objects)
>>>
> that
> 
>>>would result in non-terminating loops without such a cache."
>>>
>>>...is not happening if you do use autoretreive (which I cannot see the
>>>
> usage
> 
>>>for in databases with big object-nets/graph)
>>>
>>>
>>WIth help from OJB people, I found that turning autoretrieve on was
>>necessary for proxy collections to work
>>
> 
> Yes, but im working on not having to use proxies, but simply fetch the part
> of the object graph that I want via the new helper methods on PBroker.
> 
> 
>>.  The proxy limited the extent
>>of the retrieval into a large object graph.
>>
> 
> Can you explain this in more detail ? I don't think I understand it
> completly..

Simply that the elements of a proxy collection are not automatically 
materialized when the parent object is materialized.  Only when the 
collection is accessed (e.g. with .size() or .iterator()) does a db 
retrieval need to happen.  The non-obvious aspect is that the 
autoretrieve flag needs to be on for proxy collections to work this way 
(without explicit user code for retrieval).

Phil


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to