Interface DataStoreCache
- All Known Implementing Classes:
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.
- Since:
- 2.0
- Version:
- 2.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThis class is an empty implementation of the DataStoreCache interface. -
Method Summary
Modifier and TypeMethodDescriptionvoidEvict the parameter instance from the second-level cache.voidevictAll()Evict the parameter instances from the second-level cache.voidEvict the parameter instances from the second-level cache.voidDeprecated.use evictAll (boolean subclasses, Class pcClass)voidEvict the parameter instances from the second-level cache.voidevictAll(Collection oids) Evict the parameter instances from the second-level cache.voidPin the parameter instance in the second-level cache.voidPin instances in the second-level cache.voidDeprecated.use pinAll (boolean subclasses, Class pcClass)voidPin the parameter instances in the second-level cache.voidpinAll(Collection oids) Pin the parameter instances in the second-level cache.voidUnpin the parameter instance from the second-level cache.voidUnpin instances from the second-level cache.voidDeprecated.use unpinAll(boolean subclasses, Class pcClass)voidUnpin the parameter instance from the second-level cache.voidunpinAll(Collection oids) Unpin the parameter instances from the second-level cache.
-
Method Details
-
evict
Evict the parameter instance from the second-level cache.- Parameters:
oid- the object id of the instance to evict.- Since:
- 2.0
-
evictAll
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:
- 2.0
-
evictAll
Evict the parameter instances from the second-level cache.- Parameters:
oids- the object ids of the instance to evict.- Since:
- 2.0
-
evictAll
Evict the parameter instances from the second-level cache.- Parameters:
oids- the object ids of the instance to evict.- Since:
- 2.0
-
evictAll
Deprecated.use evictAll (boolean subclasses, Class pcClass)Evict the parameter instances from the second-level cache.- Parameters:
pcClass- the class of instances to evictsubclasses- if true, evict instances of subclasses also- Since:
- 2.0
-
evictAll
Evict the parameter instances from the second-level cache.- Parameters:
subclasses- if true, evict instances of subclasses alsopcClass- the class of instances to evict- Since:
- 2.1
-
pin
Pin the parameter instance in the second-level cache.- Parameters:
oid- the object id of the instance to pin.- Since:
- 2.0
-
pinAll
Pin the parameter instances in the second-level cache.- Parameters:
oids- the object ids of the instances to pin.- Since:
- 2.0
-
pinAll
Pin the parameter instances in the second-level cache.- Parameters:
oids- the object ids of the instances to pin.- Since:
- 2.0
-
pinAll
Deprecated.use pinAll (boolean subclasses, Class pcClass)Pin instances in the second-level cache.- Parameters:
pcClass- the class of instances to pinsubclasses- if true, pin instances of subclasses also- Since:
- 2.0
-
pinAll
Pin instances in the second-level cache.- Parameters:
subclasses- if true, pin instances of subclasses alsopcClass- the class of instances to pin- Since:
- 2.1
-
unpin
Unpin the parameter instance from the second-level cache.- Parameters:
oid- the object id of the instance to unpin.- Since:
- 2.0
-
unpinAll
Unpin the parameter instances from the second-level cache.- Parameters:
oids- the object ids of the instance to evict.- Since:
- 2.0
-
unpinAll
Unpin the parameter instance from the second-level cache.- Parameters:
oids- the object id of the instance to evict.- Since:
- 2.0
-
unpinAll
Deprecated.use unpinAll(boolean subclasses, Class pcClass)Unpin instances from the second-level cache.- Parameters:
pcClass- the class of instances to unpinsubclasses- if true, unpin instances of subclasses also- Since:
- 2.0
-
unpinAll
Unpin instances from the second-level cache.- Parameters:
subclasses- if true, unpin instances of subclasses alsopcClass- the class of instances to unpin- Since:
- 2.1
-