aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 550
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
Savepoints and transactions
SavePoint in JDBC
Savepoint/Rollback Through EJB
releasing connection in CMT
Query about rollback() method