﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » TransactionKey property</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 02:04:42 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost26242.aspx</link><description>StrataFrame business objects have the ability to create a snapshot and then restore a snap shot of any contents of a BO.  This can be done on a key as well and can be extremely useful.&lt;br&gt;
&lt;br&gt;
[codesnippet]MyBO.SaveCurrentDataTableToSnapshot("MySnapshotKey");&lt;br&gt;
MyBO.RestoreCurrentDataTableSnapshot("MySnapshotKey", true);[/codesnippet]&lt;br&gt;
&lt;br&gt;
The above code will save and respectively restore a snapshot saved off on a BO.  You can do anything you like between the two and when you call the restore, the BO will be returned to its original state.  Now this doesn't persist back to the database this way.  If you are doing this during saves, then you need to use a transaction, which goes back to your original inquiry regarding a BO and transactions.  If I am missing something, then please further explain what you are trying to accomplish.</description><pubDate>Mon, 01 Mar 2010 08:40:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>TransactionKey property</title><link>http://forum.strataframe.net/FindPost15532.aspx</link><description>I think this&amp;nbsp;key is used to&amp;nbsp;get DbTransaction object from &amp;nbsp;Transaction Collection.&lt;/P&gt;&lt;FONT color=#2b91af size=2&gt;&lt;P&gt;(DataBasics&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;.DataSources[""].Transactions).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;Normally, When BusinessLayer.TransactionBegin is called a DbTransaction Object is added to the collection with a default key value. This default transaction will be used.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;When do I need simultaneous transactions ? I mean, When will be more than one transactions in that collection. So I will follow a key.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 01 Mar 2010 08:40:19 GMT</pubDate><dc:creator>Ertan Deniz</dc:creator></item><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost26238.aspx</link><description>Hi Taylor,&lt;/P&gt;&lt;P&gt;Could you please comment on this?&lt;/P&gt;&lt;P&gt;Kind regards....</description><pubDate>Sat, 27 Feb 2010 03:11:36 GMT</pubDate><dc:creator>hector</dc:creator></item><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost26227.aspx</link><description>Hi Taylor,&lt;/P&gt;&lt;P&gt;Can u suggest a way to implement savepoint issue in Strata Framework?&lt;/P&gt;&lt;P&gt;Or it is impossible?&lt;/P&gt;&lt;P&gt;Kind regards...</description><pubDate>Thu, 25 Feb 2010 15:32:43 GMT</pubDate><dc:creator>hector</dc:creator></item><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost26216.aspx</link><description>Hi Hector,&lt;/P&gt;&lt;P&gt;No, the transaction key relates to the transaction name, not a savepoint name.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The difference being that passing a new transaction key from within strataframe would not create a new SavePoint within the existing transaction but, instead, would create a brand new transaction with the "transaction_name" being the StrataFrame transaction key.&lt;/P&gt;&lt;P&gt;So, in the MSDN online docs &lt;A href="http://msdn.microsoft.com/en-us/library/ms188929.aspx"&gt;here&lt;/A&gt;, the StrataFrame transaction key relates to transaction_name | @tran_name_variable.</description><pubDate>Thu, 25 Feb 2010 09:46:03 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost26204.aspx</link><description>&lt;FONT face=Arial&gt;[quote][b]Trent L. Taylor (02/24/2010)[/b][hr]The transactions work the same across all databases in respect to how the framework interacts with the business objects and data access layer. So yes, this would be the same in SQL Server or Oracle.[/quote]&lt;BR&gt;&lt;BR&gt;Hi Taylor,&lt;/FONT&gt; &lt;P&gt;&lt;FONT face=Arial&gt;Let me put my question more clear since i know about transactional processing :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;I wonder whether "transaction key" issue&amp;nbsp; &lt;SPAN class=short_text id=result_box&gt;&lt;SPAN title="karşılık gelir" style="BACKGROUND-COLOR: #fff" closure_hashCode_jqqdbz="24"&gt;corresponds to savepoint_varible in&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=short_text&gt;&lt;SPAN title="karşılık gelir" style="BACKGROUND-COLOR: #fff" closure_hashCode_jqqdbz="24"&gt;&lt;FONT face=Arial&gt;the following (Transact-SQL) MS SQl Server command&lt;!----&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;SAVE { TRAN | TRANSACTION } { savepoint_name | @savepoint_variable } [ ; ]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( MS SQL SERVER)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;As you know same command in oracle is &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;&lt;FONT face=Courier&gt;SAVEPOINT &amp;lt;savepoint id&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;I hope my question is more clear now.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Kind regards....&lt;/FONT&gt;</description><pubDate>Wed, 24 Feb 2010 11:44:57 GMT</pubDate><dc:creator>hector</dc:creator></item><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost26196.aspx</link><description>[quote][b]Trent L. Taylor (02/24/2010)[/b][hr]&lt;br&gt;
One thing to keep in mind with StrataFrame and transactions is that you can create as many simultaneous transactions as necessary and you can choose which BOs will be saved on what transaction using the transaction key specified by you, the developer.  You can even save a BO off of the transaction while others are being save on a transaction.  So transactional processing in StrataFrame is very flexible.[/quote]&lt;br&gt;
&lt;br&gt;
I must say that I use SF Transactions all over and they are in fact very flexible and extremely easier to setup and control.</description><pubDate>Wed, 24 Feb 2010 09:57:50 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost26177.aspx</link><description>The transactions work the same across all databases in respect to how the framework interacts with the business objects and data access layer.  So yes, this would be the same in SQL Server or Oracle.&lt;br&gt;
&lt;br&gt;
If you are new to transactions within StrataFrame, then I would recommend taking a look at the docs as well.  You can see more about using transactional processing in the help topic:&lt;br&gt;
&lt;br&gt;
[codesnippet]Application Framework -&gt; Business Layer -&gt; Common Business object Tasks -&gt; Using Transactional Processing[/codesnippet]&lt;br&gt;
&lt;br&gt;
One thing to keep in mind with StrataFrame and transactions is that you can create as many simultaneous transactions as necessary and you can choose which BOs will be saved on what transaction using the transaction key specified by you, the developer.  You can even save a BO off of the transaction while others are being save on a transaction.  So transactional processing in StrataFrame is very flexible.</description><pubDate>Wed, 24 Feb 2010 08:28:16 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost26176.aspx</link><description>Hi Taylor,&lt;/P&gt;&lt;P&gt;Is this "transaction key" mechanizm same as "savepoint mechanizm in oracle or sql server"?&lt;/P&gt;&lt;P&gt;Can u explain little bit?&lt;/P&gt;&lt;P&gt;Kind regards...</description><pubDate>Tue, 23 Feb 2010 17:54:18 GMT</pubDate><dc:creator>hector</dc:creator></item><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost15537.aspx</link><description>No problem :)</description><pubDate>Fri, 11 Apr 2008 09:07:34 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost15536.aspx</link><description>Thanks for quick response.</description><pubDate>Fri, 11 Apr 2008 08:54:09 GMT</pubDate><dc:creator>Ertan Deniz</dc:creator></item><item><title>RE: TransactionKey property</title><link>http://forum.strataframe.net/FindPost15534.aspx</link><description>[quote]&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;When do I need simultaneous transactions ? I mean, When will be more than one transactions in that collection. So I will follow a key.&lt;/FONT&gt;&lt;/FONT&gt;[/quote]&lt;/P&gt;&lt;P&gt;The beauty of StrataFrame is that you can have different business objects saving on different transactions.&amp;nbsp; When you call the Save you can supply the transaction key.&amp;nbsp; So if you start more than one transaction you will have more than one in this collection.&amp;nbsp; This allows some BOs to be saved on Transaction A, others on Transaction B, and some not on a transaction if you have this need.</description><pubDate>Fri, 11 Apr 2008 08:48:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>