Package javax.jdo.datastore
Class DataStoreCache.EmptyDataStoreCache
- java.lang.Object
-
- javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache
-
- All Implemented Interfaces:
DataStoreCache
- Enclosing interface:
- DataStoreCache
public static class DataStoreCache.EmptyDataStoreCache extends Object implements DataStoreCache
This class is an empty implementation of the DataStoreCache interface. It can be used by an implementation that does not support a second-level cache.- Since:
- 2.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.jdo.datastore.DataStoreCache
DataStoreCache.EmptyDataStoreCache
-
-
Constructor Summary
Constructors Constructor Description EmptyDataStoreCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevict(Object oid)Evict the parameter instance from the second-level cache.voidevictAll()Evict the parameter instances from the second-level cache.voidevictAll(boolean subclasses, Class pcClass)Evict the parameter instances from the second-level cache.voidevictAll(Object... oids)Evict the parameter instances from the second-level cache.voidevictAll(Collection oids)Evict the parameter instances from the second-level cache.voidpin(Object oid)Pin the parameter instance in the second-level cache.voidpinAll(boolean subclasses, Class pcClass)Pin instances in the second-level cache.voidpinAll(Object... oids)Pin the parameter instances in the second-level cache.voidpinAll(Collection oids)Pin the parameter instances in the second-level cache.voidunpin(Object oid)Unpin the parameter instance from the second-level cache.voidunpinAll(boolean subclasses, Class pcClass)Unpin instances from the second-level cache.voidunpinAll(Object... oids)Unpin the parameter instance from the second-level cache.voidunpinAll(Collection oids)Unpin the parameter instances from the second-level cache.
-
-
-
Method Detail
-
evict
public void evict(Object oid)
Description copied from interface:DataStoreCacheEvict the parameter instance from the second-level cache.- Specified by:
evictin interfaceDataStoreCache- Parameters:
oid- the object id of the instance to evict.
-
evictAll
public void evictAll()
Description copied from interface:DataStoreCacheEvict the parameter instances from the second-level cache. All instances in the PersistenceManager's cache are evicted from the second-level cache.- Specified by:
evictAllin interfaceDataStoreCache
-
evictAll
public void evictAll(Object... oids)
Description copied from interface:DataStoreCacheEvict the parameter instances from the second-level cache.- Specified by:
evictAllin interfaceDataStoreCache- Parameters:
oids- the object ids of the instance to evict.
-
evictAll
public void evictAll(Collection oids)
Description copied from interface:DataStoreCacheEvict the parameter instances from the second-level cache.- Specified by:
evictAllin interfaceDataStoreCache- Parameters:
oids- the object ids of the instance to evict.
-
evictAll
public void evictAll(boolean subclasses, Class pcClass)Description copied from interface:DataStoreCacheEvict the parameter instances from the second-level cache.- Specified by:
evictAllin interfaceDataStoreCache- Parameters:
subclasses- if true, evict instances of subclasses alsopcClass- the class of instances to evict
-
pin
public void pin(Object oid)
Description copied from interface:DataStoreCachePin the parameter instance in the second-level cache. This is a hint only, and will be ignored if the underlying cache doesn't support it.- Specified by:
pinin interfaceDataStoreCache- Parameters:
oid- the object id of the instance to pin.
-
pinAll
public void pinAll(Object... oids)
Description copied from interface:DataStoreCachePin the parameter instances in the second-level cache. This is a hint only, and will be ignored if the underlying cache doesn't support it.- Specified by:
pinAllin interfaceDataStoreCache- Parameters:
oids- the object ids of the instances to pin.
-
pinAll
public void pinAll(Collection oids)
Description copied from interface:DataStoreCachePin the parameter instances in the second-level cache. This is a hint only, and will be ignored if the underlying cache doesn't support it.- Specified by:
pinAllin interfaceDataStoreCache- Parameters:
oids- the object ids of the instances to pin.
-
pinAll
public void pinAll(boolean subclasses, Class pcClass)Description copied from interface:DataStoreCachePin instances in the second-level cache. This is a hint only, and will be ignored if the underlying cache doesn't support it.- Specified by:
pinAllin interfaceDataStoreCache- Parameters:
subclasses- if true, pin instances of subclasses alsopcClass- the class of instances to pin
-
unpin
public void unpin(Object oid)
Description copied from interface:DataStoreCacheUnpin the parameter instance from the second-level cache. This is a hint only, and will be ignored if the underlying cache doesn't support it.- Specified by:
unpinin interfaceDataStoreCache- Parameters:
oid- the object id of the instance to unpin.
-
unpinAll
public void unpinAll(Object... oids)
Description copied from interface:DataStoreCacheUnpin the parameter instance from the second-level cache. This is a hint only, and will be ignored if the underlying cache doesn't support it.- Specified by:
unpinAllin interfaceDataStoreCache- Parameters:
oids- the object id of the instance to evict.
-
unpinAll
public void unpinAll(Collection oids)
Description copied from interface:DataStoreCacheUnpin the parameter instances from the second-level cache. This is a hint only, and will be ignored if the underlying cache doesn't support it.- Specified by:
unpinAllin interfaceDataStoreCache- Parameters:
oids- the object ids of the instance to evict.
-
unpinAll
public void unpinAll(boolean subclasses, Class pcClass)Description copied from interface:DataStoreCacheUnpin instances from the second-level cache. This is a hint only, and will be ignored if the underlying cache doesn't support it.- Specified by:
unpinAllin interfaceDataStoreCache- Parameters:
subclasses- if true, unpin instances of subclasses alsopcClass- the class of instances to unpin
-
-