ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh
13

evictAll() behavior

.currentTransaction().begin(); System.out.println("Cache size after commit= " + pm.getManagedObjects().size ... --testDbProvisioning Cache size before COMMIT/BEGIN= 1 transient transient Cache size after COMMIT/BEGIN= 2630 ... before COMMIT/BEGIN = 280 persistent-new hollow/persistent-nontransactional Cache size after COMMIT
13

Selective merge/cascade of detatched entity

to: EntityManager em = emf.getEntityManager(); em.getTransaction().begin(); Company company = new Company("new ... : EntityManager em = emf.getEntityManager(); em.getTransaction().begin(); Company company = new Company("new"); em.persist(company); em.getTransaction().commit(); em.getTransaction.begin(); for (Salesman s
12

Performance in large transactions

(); transaction.begin (); // the "problem" Query Entity2 x = //query (getSingleResult): "select e from ... ); EntityTransaction transaction = entityManager.getTransaction(); transaction.begin (); for (i = 0; i <100 ... .getTransaction().begin();   // SLOW   long startTime = System.currentTimeMillis();   MyEntity
2

javax.persistence.EntityManager

. The EntityTransaction instance may be used serially to begin and commit multiple transactions. Returns
2

getTransaction()

Method javax.persistence.EntityManager EntityTransaction getTransaction() Return the resource-level EntityTransaction object. The EntityTransaction instance may be used serially to begin and commit multiple transactions. Returns: EntityTransaction instance Throws: IllegalStateException - if invoked on a JTA entity manager Since: JPA 1.0
0

getObjectId(pc)

of the beginning of the transaction. Since: JDO 2.0 See Also: PersistenceManager.getObjectId(Object pc
0

javax.jdo.spi.StateInterrogation

of the beginning of the transaction. Since: JDO 2.0 See Also: PersistenceManager.getObjectId(Object pc
0

javax.jdo.PersistenceManager

, then this method returns the identity as of the beginning of the transaction. The value returned by
0

javax.jdo.spi.StateManager

, this method returns the identity as of the beginning of the transaction. Parameters: pc - the calling
0

javax.jdo.JDOHelper

of the ObjectId of the parameter instance as of the beginning of the transaction. Since: JDO 1.0

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