 96 | ();
}
finally {
if (em.getTransaction().isActive())
em.getTransaction().rollback();
}
A transaction is started by a call to begin and ended by a call to either commit or rollback ... in memory until the transaction is ended. If the transaction is ended with a rollback |
 94 | Method javax.jdo.Transaction void rollback() Roll back the current transaction. Throws: JDOUserException - if transactions are managed by a container in the managed environment, or if the transaction is not active. Since: JDO 1.0 |
 94 | Method javax.persistence.EntityTransaction void rollback() Roll back the current resource transaction. Throws: IllegalStateException - if isActive() is false PersistenceException - if an unexpected error condition is encountered Since: JPA 1.0 |
 58 | Explains how to store, retrieve, update and delete entity objects using JPA. |
 35 | ().rollback();
} Thread 2:
try{
EntityManager em = emf.createEntityManager ... ().commit();
} catch(...){
em.getTransaction().rollback();
} Parallel running threads ... , but rollback fails with: javax.persistence.TransactionRequiredException Attempt to rollback a transaction |
 33 | to commit a rollback only transaction (error 613)
at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271 ... as rollback only. In that case - you can only close the transaction with rollback not with commit ... away with this check: if (currentTx.getRollbackOnly()) currentTx.rollback |
 32 | Hello, we use the ObjectDB as embedded database. Sometimes we work with big data and we are forced to split a transaction into several transactions. But then we need actually a rollback for several transactions. Is there any possibility in the ObjectDB to rollback several closed transactions |
 29 | Felix, rollback exception, error 613 |
 19 | 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 ... rollback the LockTimeoutException will be thrown if the database locking failure causes |
 19 | : the PessimisticLockException will be thrown if the database locking failure causes transaction-level rollback the LockTimeoutException will be thrown if the database locking failure causes only statement-level rollback ... will be thrown if the database locking failure causes transaction-level rollback |