Home » Search

About clear

1-10 of 163Refresh
JPA Doc
89

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
JDO Doc
87

InstanceLifecycleEvent.CLEAR

Static Field javax.jdo.listener.InstanceLifecycleEvent int CLEAR Since: JDO 2.0
Manual
86

Working with JPA Entity Objects

); The persistence context can be cleared by using the clear method, as so: em.clear(); When the persistence context is cleared all of its managed entities become detached and any changes to entity objects
Manual
33

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
Forum
30

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

 entityManager.clear(); Every managed entity object is associated with an helper ENT object. entityManager.clear ... ? But it has negative effects too. With "objectdb.temp.no-detach" enabled, clear() is silently ignored
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 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
Forum
29

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
Manual
21

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
Result
17

Privacy Policy

operates but only if this was made clear to you and your express permission was granted ... . If an automated un-subscription system is unavailable clear instructions on how to un-subscribe
Result
12

Posting to ObjectDB Website - Important Instructions

Please read the following instructions carefully - before posting to the ObjectDB website. 1. Where to Post Almost everything should be posted to the ObjectDB Forum - and not as an help desk support ticket or as an issue. The exceptions are: Clear ObjectDB bugs, such as unexpected exception thrown