wood burning stoves
The moose likes JDBC and Relational Databases 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


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 1082

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: I have name of a savepoint, can i rollback to that savepoint?
 
It's not a secret anymore!