-Message d'origine-
De: Jakob Braeuchi
A: OJB Users List
Date: 29/11/2004 18:48
Objet: Re: Deep retrieve : a proposal
hi jean-baptiste,
ojb already offers auto-retrieve = true in the collection-descriptor to
load
related objects automatically. an additional feature are the prefetched
I do not know if I missed something and if there is a more effective
method to retrieve an object graph (without setting auto-retrieve to
true in the repository) but in any cases, for those who'd like to know
more about it, here is the code of the Java classes for DeepRetrieve.
Please don't hesita
I do not know if I missed something and if there is a more effective
method to retrieve an object graph (without setting auto-retrieve to
true in the repository) but in any cases, for those who'd like to know
more about it, here is the code of the Java classes for DeepRetrieve.
Please don't hesita
(iter.hasNext()) {
C c = (C)iter.next();
broker.retrieveReference(c, "d");
}
I have the feeling that the use of the DeepRetrieve utility make the
graph object retrieving easier ...
Thanx for your feedback :-)
JB
-Message d'origine-
De: Jakob Braeuchi
A: OJB Us
(iter.hasNext()) {
C c = (C)iter.next();
broker.retrieveReference(c, "d");
}
I have the feeling that the use of the DeepRetrieve utility make the graph
object retrieving easier ...
Thanx for your feedback :-)
JB
-Message d'origine-
De: Jakob Braeuchi
A: OJB Users List
D
hi jean-baptiste,
ojb already offers auto-retrieve = true in the collection-descriptor to load
related objects automatically. an additional feature are the prefetched
relationships that allow you to load related object in a single query instead of
executing one query for each parent object.
wha
I've noticed that OJB doesn't offer a deep retrieve reference service, so I
have developped an utility for retrieving from one reference all the deep
references (and back references).
Example :
we have the following model :
[A]<(*)listeA-(1)b>[B]<(1)b-(*)listeC>[C]-(1)d>[D]