Home » Search

About rollback

11-20 of 87Refresh
Manual
15

JPA Lifecycle Events

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

Locking in JPA

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

Step 4: Add a Servlet Class

()) em.getTransaction().rollback(); em.close
Tutorial
15

Step 4: Add a Servlet Class

connection: if (em.getTransaction().isActive()) em.getTransaction().rollback
Result
15

ObjectDB Object Database Features

. Operations: begin, commit, rollback. Processes and Threads All API classes and interfaces are thread safe
JDO Doc
15

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
9

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
9

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
7

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
JPA Doc
6

find(entityClass, primaryKey, lockMode)

locking failure causes transaction-level rollback the LockTimeoutException will be thrown if the database locking failure causes only statement-level rollback Parameters: entityClass - entity class