|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Nested Class Summary | |
---|---|
static class |
DataStoreCache.EmptyDataStoreCache
This class is an empty implementation of the DataStoreCache interface. |
Method Summary | |
---|---|
void |
evict(java.lang.Object oid)
Evict the parameter instance from the second-level cache. |
void |
evictAll()
Evict the parameter instances from the second-level cache. |
void |
evictAll(boolean subclasses,
java.lang.Class pcClass)
Evict the parameter instances from the second-level cache. |
void |
evictAll(java.lang.Class pcClass,
boolean subclasses)
Deprecated. use evictAll (boolean subclasses, Class pcClass) |
void |
evictAll(java.util.Collection oids)
Evict the parameter instances from the second-level cache. |
void |
evictAll(java.lang.Object... oids)
Evict the parameter instances from the second-level cache. |
void |
pin(java.lang.Object oid)
Pin the parameter instance in the second-level cache. |
void |
pinAll(boolean subclasses,
java.lang.Class pcClass)
Pin instances in the second-level cache. |
void |
pinAll(java.lang.Class pcClass,
boolean subclasses)
Deprecated. use pinAll (boolean subclasses, Class pcClass) |
void |
pinAll(java.util.Collection oids)
Pin the parameter instances in the second-level cache. |
void |
pinAll(java.lang.Object... oids)
Pin the parameter instances in the second-level cache. |
void |
unpin(java.lang.Object oid)
Unpin the parameter instance from the second-level cache. |
void |
unpinAll(boolean subclasses,
java.lang.Class pcClass)
Unpin instances from the second-level cache. |
void |
unpinAll(java.lang.Class pcClass,
boolean subclasses)
Deprecated. use unpinAll(boolean subclasses, Class pcClass) |
void |
unpinAll(java.util.Collection oids)
Unpin the parameter instances from the second-level cache. |
void |
unpinAll(java.lang.Object... oids)
Unpin the parameter instance from the second-level cache. |
Method Detail |
---|
void evict(java.lang.Object oid)
oid
- the object id of the instance to evict.void evictAll()
void evictAll(java.lang.Object... oids)
oids
- the object ids of the instance to evict.void evictAll(java.util.Collection oids)
oids
- the object ids of the instance to evict.void evictAll(java.lang.Class pcClass, boolean subclasses)
pcClass
- the class of instances to evictsubclasses
- if true, evict instances of subclasses alsovoid evictAll(boolean subclasses, java.lang.Class pcClass)
pcClass
- the class of instances to evictsubclasses
- if true, evict instances of subclasses alsovoid pin(java.lang.Object oid)
oid
- the object id of the instance to pin.void pinAll(java.util.Collection oids)
oids
- the object ids of the instances to pin.void pinAll(java.lang.Object... oids)
oids
- the object ids of the instances to pin.void pinAll(java.lang.Class pcClass, boolean subclasses)
pcClass
- the class of instances to pinsubclasses
- if true, pin instances of subclasses alsovoid pinAll(boolean subclasses, java.lang.Class pcClass)
pcClass
- the class of instances to pinsubclasses
- if true, pin instances of subclasses alsovoid unpin(java.lang.Object oid)
oid
- the object id of the instance to unpin.void unpinAll(java.util.Collection oids)
oids
- the object ids of the instance to evict.void unpinAll(java.lang.Object... oids)
oids
- the object id of the instance to evict.void unpinAll(java.lang.Class pcClass, boolean subclasses)
pcClass
- the class of instances to unpinsubclasses
- if true, unpin instances of subclasses alsovoid unpinAll(boolean subclasses, java.lang.Class pcClass)
pcClass
- the class of instances to unpinsubclasses
- if true, unpin instances of subclasses also
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |