Internal Website Search

1-28 of 28 results

Shared (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 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

DataStoreCache.evict(oid) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void evict (   Object oid ) Evict the parameter instance from the second-level cache. Parameters: oid - the object id of the instance to evict . Since: JDO 2.0

PersistenceManager.evict(pc) - JDO Method

JDO Method in javax.jdo.PersistenceManager void evict (   Object pc ) Mark an instance as no longer needed in the cache. Eviction is normally done automatically by ... to the PersistenceManager that the instance is no longer needed in the cache. Parameters: pc - the instance to evict from the cache. Since: JDO 1.0

javax.persistence.Cache

whether the entity is in the cache Since: JPA 2.0 void evict (Class cls) Remove the data for entities ... void evict (Class cls, Object primaryKey) Remove the data for the given entity from

EmptyDataStoreCache.evict(oid) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache$EmptyDataStoreCache void evict (   Object oid ) Since: JDO 2.0

OptimisticLockException

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

[ODB1] Chapter 6 - Persistent Objects

discussed in this guide, because in most applications they are rarely used. Among them: evict

javax.jdo.datastore.DataStoreCache

standardizes this behavior. Since: JDO 2.0 Public Methods void evict (Object oid) Evict the parameter instance from the second-level cache. Parameters: oid - the object id of the instance to evict . Since: JDO 2.0 void evictAll () Evict the parameter instances from the second-level cache

javax.jdo.PersistenceManager

. See Also: makePersistentAll (Object[]) getFetchPlan Since: JDO 2.0 void evict (Object pc) Mark an instance as no longer needed in the cache. Eviction is normally done automatically by the PersistenceManager ... to the PersistenceManager that the instance is no longer needed in the cache. Parameters: pc - the instance to evict

DataStoreCache.evictAll(subclasses,pcClass) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void evictAll (   boolean subclasses,    Class pcClass ) Evict the parameter instances from the second-level cache. Parameters: pcClass - the class of instances to evict subclasses - if true, evict instances of subclasses also Since: JDO 2.1

DataStoreCache.evictAll(pcClass,subclasses) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void evictAll (   Class pcClass,    boolean subclasses ) Evict the parameter instances from the second-level cache. Parameters: pcClass - the class of instances to evict subclasses - if true, evict instances of subclasses also Since: JDO 2.0

DataStoreCache.evictAll(oids) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void evictAll (   Object... oids ) Evict the parameter instances from the second-level cache. Parameters: oids - the object ids of the instance to evict . Since: JDO 2.0

DataStoreCache.evictAll() - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void evictAll () Evict the parameter instances from the second-level cache. All instances in the PersistenceManager's cache are evicted from the second-level cache. Since: JDO 2.0

DataStoreCache.evictAll(oids) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void evictAll (   Collection oids ) Evict the parameter instances from the second-level cache. Parameters: oids - the object ids of the instance to evict . Since: JDO 2.0

PersistenceManager.makeNontransactional(pc) - JDO Method

are evicted from the cache. This method allows an application to identify an instance as not being evicted from the cache at transaction completion. Instead, the instance remains in the cache

PersistenceManager.evictAll() - JDO Method

JDO Method in javax.jdo.PersistenceManager void evictAll () Mark all persistent-nontransactional instances as no longer needed in the cache. It transitions all persistent-nontransactional instances to hollow. Transactional instances are subject to eviction based on the RetainValues setting. See Also: evict (Object pc) Since: JDO 1.0

PersistenceManager.evictAll(pcs) - JDO Method

JDO Method in javax.jdo.PersistenceManager void evictAll (   Collection pcs ) Mark a Collection of instances as no longer needed in the cache. Parameters: pcs - the Collection of instances to evict from the cache. See Also: evict (Object pc) Since: JDO 1.0

PersistenceManager.evictAll(pcs) - JDO Method

JDO Method in javax.jdo.PersistenceManager void evictAll (   Object... pcs ) Mark an array of instances as no longer needed in the cache. Parameters: pcs - the array of instances to evict from the cache. See Also: evict (Object pc) Since: JDO 1.0

DataStoreCache.unpinAll(oids) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void unpinAll (   Object... oids ) Unpin the parameter instance from the second-level cache. Parameters: oids - the object id of the instance to evict . Since: JDO 2.0

javax.jdo.datastore.DataStoreCache$EmptyDataStoreCache

. Since: JDO 2.0 Public Constructors EmptyDataStoreCache () Since: JDO 2.0 Public Methods void evict

DataStoreCache.unpinAll(oids) - JDO Method

JDO Method in javax.jdo.datastore.DataStoreCache void unpinAll (   Collection oids ) Unpin the parameter instances from the second-level cache. Parameters: oids - the object ids of the instance to evict . Since: JDO 2.0

javax.jdo.listener.ClearLifecycleListener

during an application call to evict , and in afterCompletion for commit with RetainValues false and rollback

ClearLifecycleListener.preClear(event) - JDO Method

. This happens during an application call to evict , and in afterCompletion for commit

PersistenceManager.evictAll(subclasses,pcClass) - JDO Method

JDO Method in javax.jdo.PersistenceManager void evictAll (   boolean subclasses,    Class pcClass ) Mark the parameter instances as no longer needed in the cache. Parameters: pcClass - the class of instances to evict subclasses - if true, mark instances of subclasses also Since: JDO 2.1