ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
146

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) dmoshal David Moshal Some fatal exceptions mark
61

commit()

Method javax.persistence.EntityTransaction void commit() Commit the current resource transaction, writing any unflushed changes to the database. Throws: IllegalStateException - if isActive() is false RollbackException - if the commit fails Since: JPA 1.0
60

FlushModeType.COMMIT

Enum Constant javax.persistence.FlushModeType COMMIT Flushing to occur at transaction commit. The provider may flush at other times, but is not required to. Since: JPA 1.0
6

Constants.TX_READ_COMMITTED

Static Field javax.jdo.Constants String TX_READ_COMMITTED Transaction isolation level representing the requirement to read committed data only. Since: JDO 2.2 See Also: PersistenceManagerFactory.getTransactionIsolationLevel() Transaction.getIsolationLevel()
6

Constants.PROPERTY_TRANSACTION_ISOLATION_LEVEL_READ_COMMITTED

Static Field javax.jdo.Constants String PROPERTY_TRANSACTION_ISOLATION_LEVEL_READ_COMMITTED "javax.jdo.option.TransactionIsolationLevel.read-committed" Since: JDO 2.2 See Also: PersistenceManagerFactory.supportedOptions()
6

commit()

Method javax.jdo.Transaction void commit() Commit 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
6

Constants.PMF_ATTRIBUTE_DETACH_ALL_ON_COMMIT

Static Field javax.jdo.Constants String PMF_ATTRIBUTE_DETACH_ALL_ON_COMMIT The name of the persistence manager factory element's "detach-all-on-commit" attribute. Since: JDO 2.1
6

Constants.PROPERTY_DETACH_ALL_ON_COMMIT

Static Field javax.jdo.Constants String PROPERTY_DETACH_ALL_ON_COMMIT "javax.jdo.option.DetachAllOnCommit" Since: JDO 2.1 See Also: PersistenceManagerFactory.getDetachAllOnCommit()
3

[ODB1] Chapter 6 - Persistent Objects

.makePersistent(person); pm.currentTransaction().commit(); First, the Person instance is constructed as ... is automatically stored in the database when the transaction is committed (unless it is being deleted before commit). An attempt to call makePersistent(...) when there is no active transaction throws
2

[ODB1] Chapter 5 - JDO Connections

.currentTransaction().commit(); } finally { if (pm.currentTransaction().isActive()) pm ... transactions. A transaction is started by a call to begin() and ended by a call to commit() or rollback ... with commit() propagates all the database modifications physically to the database. If for any reason

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