File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes .commit() and .rollback() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
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: 60046
    
  65

Moved to the JDBC forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .commit() and .rollback()
 
Similar Threads
Transaction context propogation
JDBC-Auto commit
Auto Commit option fails to work
transaction rollback during multiple session
AutoCommit(False) and rollback bst practise