Home » Search

About flush

1-10 of 128Refresh
Manual
85

Storing JPA Entity Objects

of entity objects requires special consideration. The combination of the clear and flush methods ... % 10000) == 0) { em.flush(); em.clear(); } } em.getTransaction ... are flushed to the database before clearing, otherwise they would be lost. Updates that are sent
JDO Doc
84

flush()

Method javax.jdo.PersistenceManager void flush() Flushes all dirty, new, and deleted instances to the data store. It has no effect if a transaction is not active. If a datastore transaction is active ... is held until the end of the transaction. If exceptions occur during flush, the implementation
JPA Doc
83

flush()

Method javax.persistence.EntityManager void flush() Synchronize the persistence context to the underlying database. Throws: TransactionRequiredException - if there is no transaction PersistenceException - if the flush fails Since: JPA 1.0
Manual
47

Database Management Settings

Explains settings and performance tuning of the ObjectDB Java object database for JPA/JDO.
Manual
45

Setting and Tuning of JPA Queries

on which they were invoked). Flush Mode (setFlushMode) Changes made to a database using an EntityManager ... . Therefore, before a query is executed, uncommitted database changes (if any) have to be flushed to the database in order to be visible to the query. Flush policy in JPA is represented by the FlushModeType enum
Forum
29

em.flush(); em.clear(); loosing data and not persisting managed objects

I'm having trouble with flush() and clear() in a loop inside a transaction not persisting modified ... .persist(v); v.setRemark(sbs); if(i % 10 == 0) { System.out.println("flushing"); em.flush(); em.clear(); } System.out.println("i="+i); TestEntity t1 = em.find
Issue
29

ArrayIndexOutOfBoundsException on flush

The following exception was thrown when my app attempted to flush an objectdb database: Caused by: rbccm.felix.framework.ApplicationException: Error flushing graph container at rbccm.felix.objectdb.workflow.ObjectDbGraphContainer.flush(Unknown Source) at rbccm.felix.objectdb.workflow
Issue
28

An entityManager.flush() with many entities is not possible

  The following exception occures if we call entityManager.flush() where the corresponding JPA ... .getTransaction().commit() instead of a entityManager.flush() works correctly. Unfortunately I have not found a simple example to reproduce this exception. The entity model of the flushed JPA
Forum
28

Internal objectdb error when execute a flush

We get an internal objectdb error, when we execute a flush. Why? What's wrong? It performs ... ) ~[na:na] at com.objectdb.o.OBM.flush(OBM.java:768) ~[na:na] at com.btc.ep.coverage.ccode.bl.internal ... ) ~[na:na] at com.objectdb.o.OBM.flush(OBM.java:765) ~[na:na] ... 19 common frames omitted
Issue
27

Internal exception on flush

); em.flush(); loadedgraph = instance; } [ObjectDB 2.3.3_06] Unexpected exception (Error 990 ... ) at com.objectdb.o.OBM.flush(OBM.java:739) at rbccm.felix.objectdb.workflow.ObjectDbGraphContainer