<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Subactions rollback during saving</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Subactions rollback during saving</description>
  <pubDate>Tue, 28 Apr 2026 01:18:58 -700</pubDate>
  <lastBuildDate>Wed, 25 Jun 2008 00:44:53 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=847</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Subactions rollback during saving : &amp;gt; There is an existing enhancement...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=847&amp;PID=3121#3121</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=338" rel="nofollow">GeoffAtDatagaard</a><br /><strong>Subject:</strong> 847<br /><strong>Posted:</strong> 25-Jun-2008 at 12:44am<br /><br /><DIV></DIV>&gt; There is an existing enhancement request to enlarge the transaction scope<DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>I hope that would be optional/configurable.</DIV><DIV>&nbsp;</DIV><DIV>Many of our applications use an 'odometer' class which my initial inquiries show will map well to your Id generators (with a few&nbsp;mods in the classes implementing IIdGenerator). </DIV><DIV>&nbsp;</DIV><DIV>But our applications rely on the behaviour currently exhibited&nbsp;as discussed above.</DIV><DIV>When a transaction fails in&nbsp;our applications, most of the time(read always), we do not want to rollback the odometer as another user or process may already have taken the next id.</DIV><DIV>&nbsp;</DIV><DIV>The alternative would be to hold up process B until&nbsp;process A's transaction was completed (either way).</DIV><DIV>&nbsp;</DIV><DIV>Perhaps I'll change my mind after playing more with client side caching ???</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV></DIV>]]>
   </description>
   <pubDate>Wed, 25 Jun 2008 00:44:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=847&amp;PID=3121#3121</guid>
  </item> 
  <item>
   <title>Subactions rollback during saving : What I said earlier was incorrect....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=847&amp;PID=3106#3106</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 847<br /><strong>Posted:</strong> 20-Jun-2008 at 11:36am<br /><br /><P>What I said earlier was incorrect.&nbsp; I should have checked our source before I replied. and I did not.&nbsp; The conversion from temp ids to real ids takes place in PrepareToSave and then the transaction scope is set and the save is attempted.&nbsp; There is an existing enhancement request to enlarge the transaction scope, but I know of no plans currently to address this in the near term.</P>]]>
   </description>
   <pubDate>Fri, 20 Jun 2008 11:36:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=847&amp;PID=3106#3106</guid>
  </item> 
  <item>
   <title>Subactions rollback during saving :  Originally posted by davidklitzkeTherefore,if...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=847&amp;PID=3102#3102</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=335" rel="nofollow">dak56</a><br /><strong>Subject:</strong> 847<br /><strong>Posted:</strong> 20-Jun-2008 at 1:06am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by davidklitzke</strong></em><br /><br />Therefore,&nbsp;if the save transaction is rolled back, your ids should get restored.</td></tr></table> <DIV>When I ask NumericIdGenerator to generate next id, it allocates ids using AdoHelper's new connection: it selects next id and then UPDATES nextid counter to the NEW value. If save transaction is rolled back after updating - id counter value won't be rolled back to the OLD value because NEW value of id counter is already comitted to the datasource.</DIV><DIV>What I want is to rollback id counter value (or something else in "Saving: handler for example)&nbsp;- the nested transaction - in case of parent transaction rollback</DIV>]]>
   </description>
   <pubDate>Fri, 20 Jun 2008 01:06:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=847&amp;PID=3102#3102</guid>
  </item> 
  <item>
   <title>Subactions rollback during saving : Your statementis correct, but...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=847&amp;PID=3097#3097</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 847<br /><strong>Posted:</strong> 19-Jun-2008 at 9:55am<br /><br />Your statement&nbsp;is correct, but somewhat misleading.&nbsp; The conversion from temporary ids to permanent ids occurs&nbsp;before the save to the database, but after the transaction has started.&nbsp; Therefore,&nbsp;if the save transaction is rolled back, your ids should get restored.]]>
   </description>
   <pubDate>Thu, 19 Jun 2008 09:55:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=847&amp;PID=3097#3097</guid>
  </item> 
  <item>
   <title>Subactions rollback during saving : According to documentation just...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=847&amp;PID=3096#3096</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=335" rel="nofollow">dak56</a><br /><strong>Subject:</strong> 847<br /><strong>Posted:</strong> 19-Jun-2008 at 1:06am<br /><br /><DIV>According to documentation just before saving entity to datasource an instance of NumericIdGenerator is called to retrieve the real Id for this entity. Saving entity is a transaction, so if something goes wrong I would like to rollback not only this transaction, but also to rollback the id, which I retrieved from datasource using NumericIdGenerator. The problem is that I can't rollback id retrieval because NumericIdGenerator gets a new connection to datasource and commits its transaction independently of parent entity saving transaction.</DIV><DIV>The same issues become important also during handling Saving event. If something goes wrong after handling Saving event I will have no possibilities to rollback handling code.</DIV><DIV>Is there any way to get over this difficulty?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 19 Jun 2008 01:06:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=847&amp;PID=3096#3096</guid>
  </item> 
 </channel>
</rss>