About rollback

manual

Database Connection using JPA

Describes the main JPA interfaces: EntityManagerFactory, EntityManager and EntityTransaction.... See JavaDoc Reference Page... ( ) . rollback rollback() EntityTransaction's method Roll back the current ...

 
manual

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA. This chapter explains how to manage ObjectDB databases using the Java Persistence API (JPA). The first two pages introduce basic JPA interfaces and concepts: Database Connection using JPA Working with JPA Entity Objects ...

 
api-jpa

rollback()

Roll back the current resource transaction.(Method of javax.persistence.EntityTransaction)

 
forum_thread

Rollback after commit fail

Hi, I have question regarding transaction management in ObjectDB. Consider following scenario: Thread 1: try{ EntityManager em = emf.createEntityManager(); em.getTransaction.begin() persist object1 em.getTransaction().commit(); } catch(...){ em.getTransaction().rollback(); }   Thread 2: ...   em. getTransaction ( ) . rollback ( ) ;   }   ...   em. getTransaction ( ) . rollback ( ) ;   }   ...

 
forum_thread

"Attempt to lock a non entity object" error

Probably a simple answer for someone who's been using ObjectDB for awhile: I'm reading objects from the database outside a transaction (inside doesn't seem to matter). First cycle of doEdit and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity object" session.rollback() is somehow causing the problem (found through debugging) Is this enough information for someone to suggest what might be happening and how to fix it? ... "Attempt to lock a non entity object" session.rollback() is somehow causing the problem (found through debugging) Is ... ) { try { session. rollback ( ) ; . . . } //doCancelEdit ...

 
forum_thread

Failed to commit transaction: Attempt to commit a rollback only transaction

Anyone know what this means?? Suddenly cropped up.   Failed to commit transaction: Attempt to commit a rollback only transaction (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271) at javax.jdo.Transaction$commit.call(Unknown Source) ... Failed to commit transaction: Attempt to commit a rollback only transaction (error 613) at ... Some fatal exceptions mark an active transaction as rollback only. In that case - you can only close the transaction with rollback not with commit . Maybe your application caught the ...

 
api-jdo

rollback()

Roll back the current transaction.(Method of javax.jdo.Transaction)

 
api-jpa

javax.persistence.EntityManager

Interface used to interact with the persistence context.(Interface of JPA)

 
api-jdo

javax.jdo.Transaction

The JDO Transaction interface provides for initiation and completion of transactions under user control.(Interface of JDO)

 
api-jpa

javax.persistence.EntityTransaction

Interface used to control transactions on resource-local entity managers.(Interface of JPA)