You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by "V.B. Skrypnyk" <va...@skrypnyk.net> on 2003/03/06 10:10:03 UTC

retreiveReference usage

When I call PersistenceBroker to retrieve an object by query and the object
is defined
to have collection proxies, should I expect to find CollectionProxy or
ListProxy when
I call object.getMyCollection() or am I supposed to call
PersistenceBroker.retrieveReference()
first? It seems that my list fields are not primed with CollectionProxies
until I call retrieveReference
explicitely. I've tried it with and without refresh="true" setting. Is this
the desired behaviour?

--Bill.


Re: retreiveReference usage

Posted by "V.B. Skrypnyk" <va...@skrypnyk.net>.
Hi Jakob,

That's what I expected... The kicker is auto-retrieve, it should be set to
"true".

Cheers,
--Bill.

----- Original Message -----
From: "Jakob Braeuchi" <jb...@gmx.ch>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Thursday, March 06, 2003 1:19 AM
Subject: Re: retreiveReference usage


> hi bill,
>
> there's no need to use getReference(), simply call obj.getMyCollection().
> refresh is used to reload relationships of already cached objects.
>
> hth
> jakob
>
> V.B. Skrypnyk wrote:
>
> >When I call PersistenceBroker to retrieve an object by query and the
object
> >is defined
> >to have collection proxies, should I expect to find CollectionProxy or
> >ListProxy when
> >I call object.getMyCollection() or am I supposed to call
> >PersistenceBroker.retrieveReference()
> >first? It seems that my list fields are not primed with CollectionProxies
> >until I call retrieveReference
> >explicitely. I've tried it with and without refresh="true" setting. Is
this
> >the desired behaviour?
> >
> >--Bill.
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> >For additional commands, e-mail: ojb-user-help@db.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>


Re: retreiveReference usage

Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi bill,

there's no need to use getReference(), simply call obj.getMyCollection().
refresh is used to reload relationships of already cached objects.

hth
jakob

V.B. Skrypnyk wrote:

>When I call PersistenceBroker to retrieve an object by query and the object
>is defined
>to have collection proxies, should I expect to find CollectionProxy or
>ListProxy when
>I call object.getMyCollection() or am I supposed to call
>PersistenceBroker.retrieveReference()
>first? It seems that my list fields are not primed with CollectionProxies
>until I call retrieveReference
>explicitely. I've tried it with and without refresh="true" setting. Is this
>the desired behaviour?
>
>--Bill.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>  
>