javax.jdo.datastore
Interface DataStoreCache
- DataStoreCache.EmptyDataStoreCache
public interface DataStoreCache
Many JDO implementations allow instances to be cached in a
second-level cache, and allow direct management of the cache by
knowledgeable applications. This interface standardizes this
behavior.
void | evict(Object oid) - Evict the parameter instance from the second-level cache.
|
void | evictAll() - Evict the parameter instances from the second-level cache.
|
void | evictAll(Class pcClass, boolean subclasses) - Evict the parameter instances from the second-level cache.
|
void | evictAll(Collection oids) - Evict the parameter instances from the second-level cache.
|
void | evictAll(Object[] oids) - Evict the parameter instances from the second-level cache.
|
void | pin(Object oid) - Pin the parameter instance in the second-level cache.
|
void | pinAll(Class pcClass, boolean subclasses) - Pin instances in the second-level cache.
|
void | pinAll(Collection oids) - Pin the parameter instances in the second-level cache.
|
void | pinAll(Object[] oids) - Pin the parameter instances in the second-level cache.
|
void | unpin(Object oid) - Unpin the parameter instance from the second-level cache.
|
void | unpinAll(Class pcClass, boolean subclasses) - Unpin instances from the second-level cache.
|
void | unpinAll(Collection oids) - Unpin the parameter instances from the second-level cache.
|
void | unpinAll(Object[] oids) - Unpin the parameter instance from the second-level cache.
|
evict
public void evict(Object oid)
Evict the parameter instance from the second-level cache.
oid
- the object id of the instance to evict.
evictAll
public 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.
evictAll
public void evictAll(Class pcClass,
boolean subclasses)
Evict the parameter instances from the second-level cache.
pcClass
- the class of instances to evictsubclasses
- if true, evict instances of subclasses also
evictAll
public void evictAll(Collection oids)
Evict the parameter instances from the second-level cache.
oids
- the object ids of the instance to evict.
evictAll
public void evictAll(Object[] oids)
Evict the parameter instances from the second-level cache.
oids
- the object ids of the instance to evict.
pin
public void pin(Object oid)
Pin the parameter instance in the second-level cache.
oid
- the object id of the instance to pin.
pinAll
public void pinAll(Class pcClass,
boolean subclasses)
Pin instances in the second-level cache.
pcClass
- the class of instances to pinsubclasses
- if true, pin instances of subclasses also
pinAll
public void pinAll(Collection oids)
Pin the parameter instances in the second-level cache.
oids
- the object ids of the instances to pin.
pinAll
public void pinAll(Object[] oids)
Pin the parameter instances in the second-level cache.
oids
- the object ids of the instances to pin.
unpin
public void unpin(Object oid)
Unpin the parameter instance from the second-level cache.
oid
- the object id of the instance to unpin.
unpinAll
public void unpinAll(Class pcClass,
boolean subclasses)
Unpin instances from the second-level cache.
pcClass
- the class of instances to unpinsubclasses
- if true, unpin instances of subclasses also
unpinAll
public void unpinAll(Collection oids)
Unpin the parameter instances from the second-level cache.
oids
- the object ids of the instance to evict.
unpinAll
public void unpinAll(Object[] oids)
Unpin the parameter instance from the second-level cache.
oids
- the object id of the instance to evict.