SCJP Certification

Sun Certified Java Programmer Certification exam essentials

March 3rd, 2010

What is the rollback() method?

SCBCD, Uncategorized, by Daisy Williams.

The rollback() method is used to roll back the transaction associated with the current thread. This method belongs to the UserTransaction interface. The current thread becomes associated with no transaction when this method completes. The general form of this method is as follows:

public abstract void rollback() throws IllegalStateException, SecurityException

This method throws a SecurityException if the current thread is not allowed to roll back the transaction. It throws an IllegalStateException if the current thread is not associated with a transaction.

Share

Back Top

Responses to “What is the rollback() method?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*