aspose file tools
The moose likes JDBC and the fly likes .commit() and .rollback() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark ".commit() and .rollback()" Watch ".commit() and .rollback()" New topic
Author

.commit() and .rollback()

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
I understood that you use these to methods in a finally block,

but i thought that a finally block came after the try-catch statement.

and what is it that these two methods, commit() and rollback() do?

thanks

-justin-


You down with OOP? Yeah you know me!
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Justin Fox:
...and what is it that these two methods, commit() and rollback() do? ...

See java.sql.Connection.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56200
    
  13

Moved to the JDBC forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: .commit() and .rollback()
 
Similar Threads
Transaction context propogation
AutoCommit(False) and rollback bst practise
JDBC-Auto commit
transaction rollback during multiple session
Auto Commit option fails to work