ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh


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


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

Storing JPA Entity Objects

.getTransaction().commit(); The Employee instance is constructed as an ordinary Java object and its initial ... is committed. An IllegalArgumentException is thrown by persist if the argument is not an instance ... managed by the EntityManager) or by commit. Referenced Embedded Objects The following code stores

Updating JPA Entity Objects

.getTransaction().begin(); employee.setNickname("Joe the Plumber"); em.getTransaction().commit(); The entity object is physically updated in the database when the transaction is committed. If the transaction is rolled back and not committed the update is discarded. On commit the persist operation

Database Connection using JPA

(); // Operations that modify the database should come here. em.getTransaction().commit ... (); } A transaction is started by a call to begin and ended by a call to either commit or rollback ... a transaction with a commit propagates all the modifications physically to the database. If for any


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()


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


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


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()


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

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