Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 32730 invoked from network); 31 Aug 2005 19:33:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2005 19:33:13 -0000 Received: (qmail 27283 invoked by uid 500); 31 Aug 2005 19:33:12 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 27269 invoked by uid 99); 31 Aug 2005 19:33:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2005 12:33:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2005 12:33:26 -0700 Received: from fe1.sun.com ([192.18.108.78]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id j7VJXADB029121 for ; Wed, 31 Aug 2005 13:33:10 -0600 (MDT) Received: from conversion-daemon.fe1.sun.com by fe1.sun.com (Sun Java System Messaging Server 6.1 HotFix 0.02 (built Aug 25 2004)) id <0IM300201P7IOY00@fe1.sun.com> (original mail from Craig.Russell@Sun.COM) for jdo-dev@db.apache.org; Wed, 31 Aug 2005 13:33:10 -0600 (MDT) Received: from [129.145.133.145] by fe1.sun.com (Sun Java System Messaging Server 6.1 HotFix 0.02 (built Aug 25 2004)) with ESMTPSA id <0IM300LVBQB9TIZ2@fe1.sun.com> for jdo-dev@db.apache.org; Wed, 31 Aug 2005 13:33:10 -0600 (MDT) Date: Wed, 31 Aug 2005 12:33:07 -0700 From: Craig Russell Subject: Re: Interpretation of fetch depth In-reply-to: <43160227.6050203@artnology.com> To: jdo-dev@db.apache.org Message-id: MIME-version: 1.0 X-Mailer: Apple Mail (2.734) Content-type: multipart/signed; protocol="application/pkcs7-signature"; boundary=Apple-Mail-188--966782176; micalg=sha1 References: <4315ED3F.9030102@artnology.com> <66222AEF-9CA6-496E-82E9-4C414CC11812@Sun.COM> <4315FC56.7000806@artnology.com> <18D46A4E-2620-4C5C-B589-C3A26DC07A1D@Sun.COM> <43160227.6050203@artnology.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Apple-Mail-188--966782176 Content-Type: multipart/alternative; boundary=Apple-Mail-187--966782658 --Apple-Mail-187--966782658 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Hi J=F6rg, On Aug 31, 2005, at 12:16 PM, J=F6rg von Frantzius wrote: > Craig Russell schrieb: > > >> FetchPlan.VALUES is no longer in the specification as of the =20 >> Proposed FInal Draft. >> > > Ayayay, I didn't know that it exists already, sorry. =20 > FetchPlan.VALUES still exists in the latest revision in the =20 > subversion repository, by the way. You are right. I need to update the repository for the changes in =20 PFD. Thanks for calling this to my attention! > > >> >> >>> I'm not sure about that, as FetchPlan.VALUES is not documented =20 >>> overly verbose in the Javadocs and the spec ;) >>> >> >> >> What happens is that the instance to be fetched using the fetch-=20 >> depth of 1 is fetched as if it were being fetched by e.g. =20 >> getObjectById. The current fetch plan is applied to the class to =20 >> determine which fields are fetched. >> > > OK, I see. I gotta find out dynamically which of the fields are =20 > primitive and which aren't. Yes. You can do it eagerly (when the fetch plan is modified) or =20 dynamically, your choice. Regards, Craig > > --=20 > __________________________________________________________ > Dipl.-Inf. J=F6rg von Frantzius | artnology GmbH > | Milastr. 4 > Tel +49 (0)30 4435 099 26 | 10437 Berlin > Fax +49 (0)30 4435 099 99 | http://www.artnology.com > _______________________________|__________________________ > > Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:Craig.Russell@sun.com P.S. A good JDO? O, Gasp! --Apple-Mail-187--966782658 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Hi J=F6rg,

On = Aug 31, 2005, at 12:16 PM, J=F6rg von Frantzius wrote:

Craig Russell schrieb:


FetchPlan.VALUES is no longer in the specification = as of the Proposed FInal Draft.


Ayayay, = I didn't know that it exists already, sorry. FetchPlan.VALUES still = exists in the latest revision in the subversion repository, by the = way.

You are right. I need to update = the repository for the changes in PFD. Thanks for calling this to my = attention!




=
I'm not sure = about that, as FetchPlan.VALUES is not documented overly verbose in the = Javadocs and the spec ;)



What happens is that the = instance to be fetched using the fetch-depth of 1 is fetched as if it = were being fetched by e.g. getObjectById. The current fetch plan is = applied to the class to determine which fields are fetched.
=

OK, I see. I gotta find out dynamically which of the = fields are primitive and which aren't.

Yes. You can do it eagerly (when = the fetch plan is modified) or dynamically, your choice.

Regards,

Craig

--=A0
Dipl.-Inf. J=F6rg von Frantzius=A0 |=A0 =A0 =A0 =A0 =A0 =A0 artnology = GmbH
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 |=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 Milastr. 4
Tel +49 = (0)30 4435 099 26=A0 =A0 =A0 = |=A0 =A0 =A0 =A0 =A0 =A0 =A0 = 10437 Berlin
Fax +49 (0)30 4435 099 = 99=A0 =A0 =A0 |=A0 http://www.artnology.com



Craig Russell

Architect, Sun Java = Enterprise System http://java.sun.com/products/jdo=

408 = 276-5638 mailto:Craig.Russell@sun.com

P.S. A = good JDO? O, Gasp!


= --Apple-Mail-187--966782658-- --Apple-Mail-188--966782176 Content-Transfer-Encoding: base64 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGH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