ObjectDB Database Search
1-11 of 11 resultsShared (L2) Entity Cache by one of the evict methods: // Remove a specific entity object from the shared cache: cache. evict ... : cache. evict (MyEntity.class); // Clear the shared cache by removing all the cached entity objects | |
Cache.evict(cls,primaryKey) - JPA Method 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: JPA 2.0 | |
Cache.evict(cls) - JPA Method 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: JPA 2.0 | |
Cache.evict(cls,primaryKey) - JPA Method JPA Method in javax.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: JPA 2.0 | |
Cache.evict(cls) - JPA Method JPA Method in javax.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: JPA 2.0 | |
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 | |
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 | |
InterfaceRef jakarta.persistence.Cache whether the entity is in the cache Since: JPA 2.0 void evict (Class cls) Remove the data ... Since: JPA 2.0 void evict (Class cls, Object primaryKey) Remove the data for the given | |
InterfaceRef jakarta.persistence.EntityManager) Since: JPA 1.0 void detach (Object entity) Evict the given managed or removed entity from | |
EntityManager.detach(entity) - JPA Method 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 deletion of the entity | |
OptimisticLockException it?? dmoshal David Moshal You can disable the L2 cache (or empty it with evict ) and empty |