ObjectDB ObjectDB

Internal Website Search

1-10 of 193 resultsRefresh
156

A lot of ENT and SIV instances which are not cleared by GC

entityManager.clear(); Vladiator Vlad Myachikov Every managed entity object is associated with an helper ENT object. entityManager.clear() should release strong references to ENT objects. Are you using enhanced ... With "objectdb.temp.no-detach" enabled, clear() is silently ignored. But you should be able to explicitly
154

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 objects to database. Sometimes it does other times it doesn't. Here is my Entity. import javax ... .flush(); em.clear(); } System.out.println("i="+i); TestEntity t1 = em.find
154

Working with a cleared cache

I'm working on trying to improve the performance of our database processing class and I'm attempting to keep the L1 cache within the PersistenceManager cleared in an effort to reduce its memory ... . Is there something else I can do to the toDelete collection to get it to delete properly if I have cleared
146

Record is not clearing properly on remove

Record is not clearing properly on remove
92

clear()

Method javax.persistence.EntityManager void clear() Clear the persistence context, causing all managed entities to become detached. Changes made to entities that have not been flushed to the database will not be persisted. Since: JPA 1.0
30

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 ... too much memory. The sample code above clears the persistence context after every 10,000 persists. Updates
22

Working with JPA Entity Objects

context can be cleared by using the clear method: em.clear(); When the persistence context is cleared all of its managed entities become detached and any changes to entity objects that have not
19

Detached Entity Objects

The following operations clear the entire EntityManager's persistence context and detach all managed entity objects: Invocation of the close method, which closes an EntityManager. Invocation of the clear method, which clears an EntityManager's persistence context. Rolling back a transaction - either by
11

Privacy Policy

may contain small electronic files known as web beacons (also referred to as clear gifs, pixel tags
9

InstanceLifecycleEvent.CLEAR

Static Field javax.jdo.listener.InstanceLifecycleEvent int CLEAR Since: JDO 2.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