This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
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
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 1076

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
Savepoint/Rollback Through EJB
Savepoints and transactions
SavePoint in JDBC
releasing connection in CMT
Query about rollback() method