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.
- Since:
- JDO 2.0
Public Methods
void evict(Object oid)
- Parameters:
oid
- the object id of the instance to evict.
- Since:
- JDO 2.0
void evictAll()
All instances in the PersistenceManager's cache are evicted from the second-level cache.
- Since:
- JDO 2.0
void evictAll(Collection oids)
- Parameters:
oids
- the object ids of the instance to evict.
- Since:
- JDO 2.0
void evictAll(Object... oids)
- Parameters:
oids
- the object ids of the instance to evict.
- Since:
- JDO 2.0
void evictAll(boolean subclasses, Class pcClass)
- Parameters:
pcClass
- the class of instances to evictsubclasses
- if true, evict instances of subclasses also
- Since:
- JDO 2.1
void pin(Object oid)
- Parameters:
oid
- the object id of the instance to pin.
- Since:
- JDO 2.0
void pinAll(Collection oids)
- Parameters:
oids
- the object ids of the instances to pin.
- Since:
- JDO 2.0
void pinAll(Object... oids)
- Parameters:
oids
- the object ids of the instances to pin.
- Since:
- JDO 2.0
void pinAll(boolean subclasses, Class pcClass)
- Parameters:
pcClass
- the class of instances to pinsubclasses
- if true, pin instances of subclasses also
- Since:
- JDO 2.1
void unpin(Object oid)
- Parameters:
oid
- the object id of the instance to unpin.
- Since:
- JDO 2.0
void unpinAll(Collection oids)
- Parameters:
oids
- the object ids of the instance to evict.
- Since:
- JDO 2.0
void unpinAll(Object... oids)
- Parameters:
oids
- the object id of the instance to evict.
- Since:
- JDO 2.0
void unpinAll(boolean subclasses, Class pcClass)
- Parameters:
pcClass
- the class of instances to unpinsubclasses
- if true, unpin instances of subclasses also
- Since:
- JDO 2.1