ObjectDB ObjectDB

Internal Website Search

1-10 of 100 resultsRefresh
166

Rollback after commit fail

().rollback(); } Thread 2: try{ EntityManager em = emf.createEntityManager(); em ... ().commit(); } catch(...){ em.getTransaction().rollback(); } Parallel running threads caused ... , but rollback fails with: javax.persistence.TransactionRequiredException Attempt to rollback a transaction
161

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

to commit a rollback only transaction (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271 ... an active transaction as rollback only. In that case - you can only close the transaction with rollback ... .getRollbackOnly()) currentTx.rollback() else currentTx.commit() but it disturbs me that I'm not setting
155

Rollback of several closed transactions

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? btc
144

Felix, rollback exception, error 613

Felix, rollback exception, error 613
91

rollback()

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
30

Database Connection using JPA

(); } 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 ... and are kept in memory until the transaction is ended. If the transaction is ended with a rollback
9

rollback()

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
4

[ODB1] Chapter 5 - JDO Connections

.currentTransaction().isActive()) pm.currentTransaction().rollback(); if (!pm.isClosed()) pm ... .currentTransaction().rollback(); if (!pm.isClosed()) pm.close ... transactions. A transaction is started by a call to begin() and ended by a call to commit() or rollback
2

[ODB1] Chapter 2 - A Quick Tour

()) 52 pm.currentTransaction().rollback(); 53 if (!pm.isClosed ... the database. Ending the transaction with rollback() discards all the changes done during its activity
1

javax.jdo.JDOEntityManager

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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support