wood burning stoves 2.0*
The moose likes JDBC and the fly likes I have name of a savepoint, can i rollback to that savepoint?    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "I have name of a savepoint, can i rollback to that savepoint?    " Watch "I have name of a savepoint, can i rollback to that savepoint?    " New topic
Author

I have name of a savepoint, can i rollback to that savepoint?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post
I have name of a savepoint in my method and connection which that savepoint belongs to.

Now what i need it to rollback to that savepoint but problem is that Connection object rollback method does not accept savepoint name and it just accept savepoint Object to rollback to it.
So, is there any way to rollback to a save point when we just have name of that savepoint?
Thanks
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

Whenever you set a SavePoint on connection, connection returns you an object of SavePoint.

Use same object of SavePoint to rollback.

Thanks,
Shailesh Chandra


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I have name of a savepoint, can i rollback to that savepoint?
 
Similar Threads
releasing connection in CMT
Savepoints and transactions
SavePoint in JDBC
Savepoint/Rollback Through EJB
Query about rollback() method