From: Kal A. <ka...@te...> - 2006-02-13 09:02:56
|
Hi Conal, The main difference between rollback() and abort() is that rollback() must return the persistent store to the state it was in when the transaction started. abort()also terminates the transaction but does not require that the persistent store returns to its original state (I would say not "required", but certainly still "desirable"). I think that if you can implement rollback() then abort() should probably always be a straight call through to rollback. Cheers Kal > -----Original Message----- > From: tm4...@li... [mailto:tm4j-developers- > ad...@li...] On Behalf Of Conal Tuohy > Sent: 13 February 2006 04:44 > To: tm4...@li... > Subject: [Tm4j-developers] ProviderTransaction.abort() and > ProviderTransaction.rollback() > > I'm implementing the methods ProviderTransaction.abort() and > ProviderTransaction.rollback() for a new Topic Map Provider, but I'm not > sure of the different semantics. I think I know what rollback() means, > but I'm not at all sure about abort(). THere's not much information in > the javadoc or the source code. What's the difference between these 2 > methods? > > Con > -- > Conal Tuohy > Senior Programmer > +64-4-463-6844 > +64-21-237-2498 > co...@nz... > New Zealand Electronic Text Centre > www.nzetc.org > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as- > us.falkag.net/sel?cmd_______________________________________________ > Tm4j-developers mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-developers > |