ObjectDB Database Search

1-10 of 10 results

jakarta.persistence.Cache.evict(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.Cache void evict (    Class cls ,    Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Cache.evict(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.Cache void evict (    Class cls ) Remove the data for entities of the specified class (and its subclasses) from the cache. Parameters: cls - entity class Since: Jakarta Persistence (JPA) 1.0

JPA Shared (L2) Entity Cache

one of the evict methods: // Remove a specific entity from the shared cache: cache. evict (MyEntity.class, Long.valueOf(id)); // Remove all the instances of a specific class from the cache: cache. evict

JPA Core Types

-level cache. Use it to check if specific entities are cached or to evict data to ensure

jakarta.persistence.Cache

. Since: Jakarta Persistence (JPA) 1.0 void evict ( Class cls , Object primaryKey ) Remove the data ... Since: Jakarta Persistence (JPA) 1.0 void evict ( Class cls ) Remove the data for entities of the specified class

evictAll() behavior

-- is this correct 2. the evicts only work when they are done inside a transaction -- is this specified ... .getManagedObjects().size()); pm.evictAll(); System.out.println("Cache size after pm. evict = " + pm.getManagedObjects().size()); and it seems that objects are not evicted , the number of managed objects after evict

jakarta.persistence.EntityManager

). Since: Jakarta Persistence (JPA) 1.0 void detach ( Object entity ) Evict the given managed or removed

Soft Reference Object Cache Recommendation

[] until the JdoBlob2 object that owns it is evicted from the ObjectDB cache, such as ... myself and, upon detecting a full JVM GC, manually evict JdoBlob2s from their relevant PersistenceManager (via persistenceManager. evict (jdoBlob2)).  I would have to maintain the list with a LRU ordering

jakarta.persistence.EntityManager.detach(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void detach (    Object entity ) Evict the given managed or removed entity from the persistence context, causing the entity to become immediately detached. Unflushed changes made to the entity, if any, including

OptimisticLockException

it??   dmoshal David Moshal You can disable the L2 cache (or empty it with evict ) and empty