Return-Path: Delivered-To: apmail-db-ojb-user-archive@www.apache.org Received: (qmail 3329 invoked from network); 27 Jun 2005 14:33:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jun 2005 14:33:40 -0000 Received: (qmail 63259 invoked by uid 500); 27 Jun 2005 14:33:19 -0000 Delivered-To: apmail-db-ojb-user-archive@db.apache.org Received: (qmail 63167 invoked by uid 500); 27 Jun 2005 14:33:18 -0000 Mailing-List: contact ojb-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Users List" Reply-To: "OJB Users List" Delivered-To: mailing list ojb-user@db.apache.org Received: (qmail 62836 invoked by uid 99); 27 Jun 2005 14:33:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 27 Jun 2005 07:33:14 -0700 Received: (qmail 2987 invoked from network); 27 Jun 2005 14:33:10 -0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by 127.0.0.1 with SMTP; 27 Jun 2005 14:33:10 -0000 Message-ID: <42C00E25.8060002@apache.org> Date: Mon, 27 Jun 2005 16:33:09 +0200 From: Armin Waibel User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: OJB Users List Subject: Re: Method isDeleted(Identity) in TransactionImpl class References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: 127.0.0.1 1.6.2 0/1000/N X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Laurent SIMON wrote: > Ok, thank you for your help. I'll change the code for using TransactionExt > instead of TransactionImpl as soon as possible. I think i'll wait for OJB > 1.0.4. Do you have an idea of when it'll be released ? > Hope in near future. Sorry I can't give you an exact release date. There are still some known issues in 1.0.x branch. Maybe we release version 1.0.4 (soon) and fix the open issues in 1.0.5. regards, Armin > -----Message d'origine----- > De : Armin Waibel [mailto:arminw@apache.org] > Envoy� : mercredi 22 juin 2005 23:02 > � : OJB Users List > Objet : Re: Method isDeleted(Identity) in TransactionImpl class > > > Laurent SIMON wrote: > >>I don't speak English very well and I did not understand exactly what you >>wanna say in the last paragraph... In fact, the part of the code which > > uses > >>this method isn't my work, but the person who has written it left the >>society so i can't ask him for information. > > > I only want to explain that in specific rare situations (with specific > configuration setting) the re-introduced method #isDeleted(Identity) > return 'false' for a specified object Identity but nevertheless on > commit the object will be deleted. I don't want to confuse you, so > please ignore this hint ;-) > > > >>The study of his code would take very much time to me, and i don't speak >>about the risks of regressions... It will be easy for me that you >>re-introduce this method as you proposed it. >> > > > I re-introduce the method and checked in the changes in CVS 1.0.x branch > (branch is tagged as OJB_1_0_RELEASE). Please check out the > OJB_1_0_RELEASE branch (otherwise you have to wait for 1.0.4). > > I strongly recommend using TransactionExt instead of TransactionImpl to > get access to #isDeleted > > TransactionExt tx = (TransactionExt) odmg.newTransaction() > > more info about OJB's odmg extensions: > http://db.apache.org/ojb/docu/guides/odmg-guide.html#OJB+Extensions+of+ODMG > > regards, > Armin > > >>-----Message d'origine----- >>De : Armin Waibel [mailto:arminw@apache.org] >>Envoy� : mercredi 22 juin 2005 13:15 >>� : OJB Users List >>Objet : Re: Method isDeleted(Identity) in TransactionImpl class >> >> >>Hi Lorrain, >> >>Laurent SIMON wrote: >> >> >>>Hello, >>> >>>I'm using Ojb since version RC5 encapsulated in a persistent framework in >> >>a >> >> >>>large J2EE application. >>>I try to migrate to the higher versions earliest after each release, but I >>>have a problem since version 1.0.3. Indeed, method isDeleted(Identity) of >>>the class TransactionImpl has been removed whereas I use it in my >> >>framework. >> >> >>>Why was it deleted without passing by the state deprecated? >> >> >>We did a huge odmg-implementation refactoring between 1.0.1 and 1.0.3 >>(and some more bug fixes will be included in upcoming 1.0.4). I don't >>know that TransactionImpl#isDeleted was used as a "official" method, >>that's the reason why it was not deprecated. >> >>Now all OJB specific extensions of the odmg-api are encapsulated in the >>OJB extension classes (ImplementationExt, TransactionExt, > > EnhancedOQLQuery). > >>I can add a method #isDeleted to TransactionExt (this is the recommended >>way to use odmg-api extensions) this also (re-)introduce the method in >>TransactionImpl. >> >>Could you tell me why you need this method? There is a pitfall when >>using this method because it could happen that OJB detect removed >>objects as recently as the tx commits. E.g. when you remove some objects >>in a 1:n relation. >> >>regards, >>Armin >> >> >> >>>What can I do >>>to obtain the same result? Thank you in advance for your answers. >>> >>>Regards, >>>Lorrain >>> >>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org >>>For additional commands, e-mail: ojb-dev-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 >> >>--------------------------------------------------------------------- >>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 > > --------------------------------------------------------------------- > 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