This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes JDBC update table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC update table" Watch "JDBC update table" New topic
Author

JDBC update table

david wangwang
Greenhorn

Joined: Jan 02, 2007
Posts: 9
How can I make sure a set of related updates are committed successfully? Thanks,
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3899
    
    9

Trancactions make sure the data is either completely commited or not.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
david wangwang
Greenhorn

Joined: Jan 02, 2007
Posts: 9
Vijitha Kumara wrote:Trancactions make sure the data is either completely commited or not.


How do you check it from code? would you describe a little specify? Thanks.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3899
    
    9

Check how the Transactions in JDBC work.
 
wood burning stoves
 
subject: JDBC update table
 
jQuery in Action, 3rd edition