Class DataStoreCache.EmptyDataStoreCache
java.lang.Object
javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache
- All Implemented Interfaces:
DataStoreCache
- Enclosing interface:
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
- Version:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataStoreCache
DataStoreCache.EmptyDataStoreCache -
Constructor Summary
Constructors -
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.voidEvict the parameter instances from the second-level cache.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.voidPin instances in the second-level cache.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.voidUnpin instances from the second-level cache.voidUnpin the parameter instance from the second-level cache.voidunpinAll(Collection oids) Unpin the parameter instances from the second-level cache.
-
Constructor Details
-
EmptyDataStoreCache
public EmptyDataStoreCache()
-
-
Method Details
-
evict
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
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
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
Description copied from interface:DataStoreCacheEvict the parameter instances from the second-level cache.- Specified by:
evictAllin interfaceDataStoreCache- Parameters:
pcClass- the class of instances to evictsubclasses- if true, evict instances of subclasses also
-
evictAll
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
Description copied from interface:DataStoreCachePin the parameter instance in the second-level cache.- Specified by:
pinin interfaceDataStoreCache- Parameters:
oid- the object id of the instance to pin.
-
pinAll
Description copied from interface:DataStoreCachePin the parameter instances in the second-level cache.- Specified by:
pinAllin interfaceDataStoreCache- Parameters:
oids- the object ids of the instances to pin.
-
pinAll
Description copied from interface:DataStoreCachePin the parameter instances in the second-level cache.- Specified by:
pinAllin interfaceDataStoreCache- Parameters:
oids- the object ids of the instances to pin.
-
pinAll
Description copied from interface:DataStoreCachePin instances in the second-level cache.- Specified by:
pinAllin interfaceDataStoreCache- Parameters:
pcClass- the class of instances to pinsubclasses- if true, pin instances of subclasses also
-
pinAll
Description copied from interface:DataStoreCachePin instances in the second-level cache.- Specified by:
pinAllin interfaceDataStoreCache- Parameters:
subclasses- if true, pin instances of subclasses alsopcClass- the class of instances to pin
-
unpin
Description copied from interface:DataStoreCacheUnpin the parameter instance from the second-level cache.- Specified by:
unpinin interfaceDataStoreCache- Parameters:
oid- the object id of the instance to unpin.
-
unpinAll
Description copied from interface:DataStoreCacheUnpin the parameter instance from the second-level cache.- Specified by:
unpinAllin interfaceDataStoreCache- Parameters:
oids- the object id of the instance to evict.
-
unpinAll
Description copied from interface:DataStoreCacheUnpin the parameter instances from the second-level cache.- Specified by:
unpinAllin interfaceDataStoreCache- Parameters:
oids- the object ids of the instance to evict.
-
unpinAll
Description copied from interface:DataStoreCacheUnpin instances from the second-level cache.- Specified by:
unpinAllin interfaceDataStoreCache- Parameters:
pcClass- the class of instances to unpinsubclasses- if true, unpin instances of subclasses also
-
unpinAll
Description copied from interface:DataStoreCacheUnpin instances from the second-level cache.- Specified by:
unpinAllin interfaceDataStoreCache- Parameters:
subclasses- if true, unpin instances of subclasses alsopcClass- the class of instances to unpin
-