About Question enthuware.oce-jpad.v6.2.382 :

Moderator: admin

Post Reply
ETS User

About Question enthuware.oce-jpad.v6.2.382 :

Post by ETS User »

What's the difference between :

Code: Select all

void rollback()

and 

void setRollbackOnly()

admin
Site Admin
Posts: 10053
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-jpad.v6.2.382 :

Post by admin »


void rollback()
Roll back the transaction associated with the current thread.

void setRollbackOnly()
Modify the transaction associated with the current thread such that the only possible outcome of the transaction is to roll back the transaction.
From the method descriptions, it seems that rollback will rollback the transaction while setRollbackOnly will only set some kind of a flag that will cause an exception to be thrown if someone tries to commit that transaction.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests