This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Transactions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Transactions" Watch "Transactions" New topic
Author

Transactions

MInu
Ranch Hand

Joined: Oct 09, 2003
Posts: 517
Hi...

How to handle JDBC transactions in java?

i m using mySql.

Thanks.


God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
Warren Dew
blacksmith
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
    
    2
Take a look at java.sql.Connection.setTransactionIsolation().

However, note that not all databases support transactions, and those that do, support different levels. The level of transaction support in MySQL varies depending on the table type you are using, with the default being no transactions. You might want to find out more about your particular database installation before deciding how much to depend on transactions.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
A nice book is there in the market.
"Java Transaction Processing - Mark Little, Jon Maron"
 
jQuery in Action, 2nd edition
 
subject: Transactions