Package javax.jdo.datastore
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.jdo.datastore.DataStoreCache
DataStoreCache.EmptyDataStoreCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Evict the parameter instance from the second-level cache.void
evictAll()
Evict the parameter instances from the second-level cache.void
Evict the parameter instances from the second-level cache.void
Evict the parameter instances from the second-level cache.void
Evict the parameter instances from the second-level cache.void
evictAll
(Collection oids) Evict the parameter instances from the second-level cache.void
Pin the parameter instance in the second-level cache.void
Pin instances in the second-level cache.void
Pin instances in the second-level cache.void
Pin the parameter instances in the second-level cache.void
pinAll
(Collection oids) Pin the parameter instances in the second-level cache.void
Unpin the parameter instance from the second-level cache.void
Unpin instances from the second-level cache.void
Unpin instances from the second-level cache.void
Unpin the parameter instance from the second-level cache.void
unpinAll
(Collection oids) Unpin the parameter instances from the second-level cache.
-
Constructor Details
-
EmptyDataStoreCache
public EmptyDataStoreCache()
-
-
Method Details
-
evict
Description copied from interface:DataStoreCache
Evict the parameter instance from the second-level cache.- Specified by:
evict
in interfaceDataStoreCache
- Parameters:
oid
- the object id of the instance to evict.
-
evictAll
public void evictAll()Description copied from interface:DataStoreCache
Evict the parameter instances from the second-level cache. All instances in the PersistenceManager's cache are evicted from the second-level cache.- Specified by:
evictAll
in interfaceDataStoreCache
-
evictAll
Description copied from interface:DataStoreCache
Evict the parameter instances from the second-level cache.- Specified by:
evictAll
in interfaceDataStoreCache
- Parameters:
oids
- the object ids of the instance to evict.
-
evictAll
Description copied from interface:DataStoreCache
Evict the parameter instances from the second-level cache.- Specified by:
evictAll
in interfaceDataStoreCache
- Parameters:
oids
- the object ids of the instance to evict.
-
evictAll
Description copied from interface:DataStoreCache
Evict the parameter instances from the second-level cache.- Specified by:
evictAll
in interfaceDataStoreCache
- Parameters:
pcClass
- the class of instances to evictsubclasses
- if true, evict instances of subclasses also
-
evictAll
Description copied from interface:DataStoreCache
Evict the parameter instances from the second-level cache.- Specified by:
evictAll
in interfaceDataStoreCache
- Parameters:
subclasses
- if true, evict instances of subclasses alsopcClass
- the class of instances to evict
-
pin
Description copied from interface:DataStoreCache
Pin the parameter instance in the second-level cache.- Specified by:
pin
in interfaceDataStoreCache
- Parameters:
oid
- the object id of the instance to pin.
-
pinAll
Description copied from interface:DataStoreCache
Pin the parameter instances in the second-level cache.- Specified by:
pinAll
in interfaceDataStoreCache
- Parameters:
oids
- the object ids of the instances to pin.
-
pinAll
Description copied from interface:DataStoreCache
Pin the parameter instances in the second-level cache.- Specified by:
pinAll
in interfaceDataStoreCache
- Parameters:
oids
- the object ids of the instances to pin.
-
pinAll
Description copied from interface:DataStoreCache
Pin instances in the second-level cache.- Specified by:
pinAll
in interfaceDataStoreCache
- Parameters:
pcClass
- the class of instances to pinsubclasses
- if true, pin instances of subclasses also
-
pinAll
Description copied from interface:DataStoreCache
Pin instances in the second-level cache.- Specified by:
pinAll
in interfaceDataStoreCache
- Parameters:
subclasses
- if true, pin instances of subclasses alsopcClass
- the class of instances to pin
-
unpin
Description copied from interface:DataStoreCache
Unpin the parameter instance from the second-level cache.- Specified by:
unpin
in interfaceDataStoreCache
- Parameters:
oid
- the object id of the instance to unpin.
-
unpinAll
Description copied from interface:DataStoreCache
Unpin the parameter instance from the second-level cache.- Specified by:
unpinAll
in interfaceDataStoreCache
- Parameters:
oids
- the object id of the instance to evict.
-
unpinAll
Description copied from interface:DataStoreCache
Unpin the parameter instances from the second-level cache.- Specified by:
unpinAll
in interfaceDataStoreCache
- Parameters:
oids
- the object ids of the instance to evict.
-
unpinAll
Description copied from interface:DataStoreCache
Unpin instances from the second-level cache.- Specified by:
unpinAll
in interfaceDataStoreCache
- Parameters:
pcClass
- the class of instances to unpinsubclasses
- if true, unpin instances of subclasses also
-
unpinAll
Description copied from interface:DataStoreCache
Unpin instances from the second-level cache.- Specified by:
unpinAll
in interfaceDataStoreCache
- Parameters:
subclasses
- if true, unpin instances of subclasses alsopcClass
- the class of instances to unpin
-