StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


12»»

TransactionKey propertyExpand / Collapse
Author
Message
Posted 04/11/2008 8:39:28 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 01/01/2009 6:49:58 AM
Posts: 163, Visits: 493
I think this key is used to get DbTransaction object from  Transaction Collection.

(DataBasics.DataSources[""].Transactions).

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.

When do I need simultaneous transactions ? I mean, When will be more than one transactions in that collection. So I will follow a key.

 

 

 

Post #15532
Posted 04/11/2008 8:48:02 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 07/06/2010 6:04:33 PM
Posts: 6,275, Visits: 6,165
When do I need simultaneous transactions ? I mean, When will be more than one transactions in that collection. So I will follow a key.

The beauty of StrataFrame is that you can have different business objects saving on different transactions.  When you call the Save you can supply the transaction key.  So if you start more than one transaction you will have more than one in this collection.  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.

Post #15534
Posted 04/11/2008 8:54:09 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 01/01/2009 6:49:58 AM
Posts: 163, Visits: 493
Thanks for quick response.
Post #15536
Posted 04/11/2008 9:07:34 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 07/06/2010 6:04:33 PM
Posts: 6,275, Visits: 6,165
No problem
Post #15537
Posted 02/23/2010 5:54:18 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 05/30/2010 9:38:54 AM
Posts: 11, Visits: 64
Hi Taylor,

Is this "transaction key" mechanizm same as "savepoint mechanizm in oracle or sql server"?

Can u explain little bit?

Kind regards...

Post #26176
Posted 02/24/2010 8:28:16 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 07/06/2010 6:04:33 PM
Posts: 6,275, Visits: 6,165
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.

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:

Application Framework -> Business Layer -> Common Business object Tasks -> Using Transactional Processing


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.
Post #26177
Posted 02/24/2010 9:57:50 AM


StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 10:39:38 AM
Posts: 1,590, Visits: 9,189
Trent L. Taylor (02/24/2010)

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.


I must say that I use SF Transactions all over and they are in fact very flexible and extremely easier to setup and control.

Edhy Rijo
(Using VB.Net 2010/SQL Server 2008)
Post #26196
Posted 02/24/2010 11:44:57 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 05/30/2010 9:38:54 AM
Posts: 11, Visits: 64
Trent L. Taylor (02/24/2010)
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.


Hi Taylor,

Let me put my question more clear since i know about transactional processing :

I wonder whether "transaction key" issue  corresponds to savepoint_varible in

the following (Transact-SQL) MS SQl Server command

SAVE { TRAN | TRANSACTION } { savepoint_name | @savepoint_variable } [ ; ]     ( MS SQL SERVER)

As you know same command in oracle is

SAVEPOINT <savepoint id>

I hope my question is more clear now.

Kind regards....

Post #26204
Posted 02/25/2010 9:46:03 AM
StrataFrame Team Member

StrataFrame Team Member

Group: StrataFrame Developers
Last Login: 07/23/2010 11:23:08 AM
Posts: 352, Visits: 715
Hi Hector,

No, the transaction key relates to the transaction name, not a savepoint name. 

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.

So, in the MSDN online docs here, the StrataFrame transaction key relates to transaction_name | @tran_name_variable.

Post #26216
Posted 02/25/2010 3:32:43 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 05/30/2010 9:38:54 AM
Posts: 11, Visits: 64
Hi Taylor,

Can u suggest a way to implement savepoint issue in Strata Framework?

Or it is impossible?

Kind regards...

Post #26227
« Prev Topic | Next Topic »

12»»

Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Trent L. Taylor, Steve L. Taylor, Dustin Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 11:20am

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.063. 7 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.