Home » Search

About evict

1-10 of 29Refresh
Manual
102

Shared (L2) Entity Cache

can be removed from the cache by one of the evict methods: // Remove a specific entity object from the shared cache: cache.evict(MyEntity.class, Long.valueOf(id)); // Remove all the instances of a specific class from the cache: cache.evict(MyEntity.class); // Clear the shared cache
JDO Doc
88

evict(oid)

Method 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
JDO Doc
88

evict(pc)

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

evict(cls)

Method 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
JPA Doc
83

evict(cls, primaryKey)

Method 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
JDO Doc
83

evict(oid)

Method javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache void evict(   Object oid ) Parameters: oid - Since: JDO 2.0
JDO Doc
33

javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache

. Since: JDO 2.0 void evict(Object oid) Evict the parameter instance from the second-level cache. Evict ... to evict. Since: JDO 2.0 void evict(Object oid) Parameters: oid - Since: JDO 2. Parameters: oid - Since: JDO 2.0 void evictAll() Evict the parameter instances from the second-level cache. Evict
JDO Doc
32

javax.jdo.datastore.DataStoreCache

void evict(Object oid) Evict the parameter instance from the second-level cache. 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. Evict
JDO Doc
23

javax.jdo.PersistenceManager

[]) void evict(Object pc) Mark an instance as no longer needed in the cache. 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
JDO Doc
11

evictAll(pcClass, subclasses)

Method 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