About rollback

11-20 of 93Refresh
JPA Doc
18

JPA Exceptions

failures that require transaction rollback are represented by: The RollbackException exception usually
Manual
18

JPA Lifecycle Events

throws an exception within an active transaction, the transaction is marked for rollback
Manual
18

Locking in JPA

rollback). ObjectDB supports also releasing a lock explicitly while the transaction is active, as
Result
18

ObjectDB Object Database Features

, rollback. Processes and Threads All API classes and interfaces are thread safe. Support of efficient
Tutorial
18

Step 4: Add a Servlet Class

.getTransaction().isActive()) em.getTransaction().rollback(); em.close
Tutorial
18

Step 4: Add a Servlet Class

()) em.getTransaction().rollback(); em.close(); } } @Override
JDO Doc
18

javax.jdo.Transaction

of the retainValues property Since: JDO 1.0 boolean getRollbackOnly() Returns the rollback-only status of the transaction. Returns the rollback-only status of the transaction. When begun, the rollback ... setRollbackOnly. Returns: true if the transaction has been marked for rollback. Since: JDO 2.0
JPA Doc
11

javax.persistence.EntityTransaction

resource transaction has been marked for rollback. Determine whether the current resource transaction has been marked for rollback. Returns: boolean indicating whether the transaction has been marked for rollback Throws: IllegalStateException - if isActive() is false Since: JPA 1.0 boolean isActive
JPA Doc
11

javax.persistence.LockModeType

cannot be obtained, and the database locking failure results in transaction-level rollback, the provider must throw ... has been marked for rollback. When the lock cannot be obtained, and the database locking failure results in only statement-level rollback, the provider must throw the LockTimeoutException (and must not mark
JDO Doc
9

getRollbackOnly()

Method javax.jdo.Transaction boolean getRollbackOnly() Returns the rollback-only status of the transaction. When begun, the rollback-only status is false. Either the application or the JDO implementation may set this flag using setRollbackOnly. Returns: true if the transaction has been marked for rollback. Since: JDO 2.0