Class JDODataStoreCache
java.lang.Object
org.datanucleus.api.jdo.JDODataStoreCache
- All Implemented Interfaces:
Serializable, javax.jdo.datastore.DataStoreCache
public class JDODataStoreCache
extends Object
implements javax.jdo.datastore.DataStoreCache, Serializable
Implementation of the JDO DataStoreCache.
Provides a wrapper and hands off calls to the underlying Level2 cache
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.jdo.datastore.DataStoreCache
javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache -
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.datanucleus.cache.Level2CacheUnderlying Level 2 cache.private static final long -
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.voidevictAll(Collection oids) Evict the parameter instances from the second-level cache.org.datanucleus.cache.Level2CacheAccessor for the underlying Level 2 cache.voidPin the parameter instance 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 the parameter instance from the second-level cache.voidunpinAll(Collection oids) Unpin the parameter instances from the second-level cache.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
cache
org.datanucleus.cache.Level2Cache cacheUnderlying Level 2 cache.
-
-
Constructor Details
-
JDODataStoreCache
public JDODataStoreCache(org.datanucleus.cache.Level2Cache cache) Constructor.- Parameters:
cache- Level 2 Cache
-
-
Method Details
-
getLevel2Cache
public org.datanucleus.cache.Level2Cache getLevel2Cache()Accessor for the underlying Level 2 cache.- Returns:
- Underlying L2 cache.
-
evict
Evict the parameter instance from the second-level cache.- Specified by:
evictin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
oid- the object id of the instance to evict.
-
evictAll
public 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.- Specified by:
evictAllin interfacejavax.jdo.datastore.DataStoreCache
-
evictAll
Evict the parameter instances from the second-level cache.- Specified by:
evictAllin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
oids- the object ids of the instance to evict.
-
evictAll
Evict the parameter instances from the second-level cache.- Specified by:
evictAllin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
oids- the object ids of the instance to evict.
-
evictAll
Evict the parameter instances from the second-level cache.- Specified by:
evictAllin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
subclasses- if true, evict instances of subclasses alsopcClass- the class of instances to evict
-
pin
Pin the parameter instance in the second-level cache.- Specified by:
pinin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
oid- the object id of the instance to pin.
-
pinAll
Pin the parameter instances in the second-level cache.- Specified by:
pinAllin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
oids- the object ids of the instances to pin.
-
pinAll
Pin the parameter instances in the second-level cache.- Specified by:
pinAllin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
oids- the object ids of the instances to pin.
-
pinAll
Pin instances in the second-level cache.- Specified by:
pinAllin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
subclasses- if true, pin instances of subclasses alsopcClass- the class of instances to pin
-
unpin
Unpin the parameter instance from the second-level cache.- Specified by:
unpinin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
oid- the object id of the instance to unpin.
-
unpinAll
Unpin the parameter instances from the second-level cache.- Specified by:
unpinAllin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
oids- the object ids of the instance to evict.
-
unpinAll
Unpin the parameter instance from the second-level cache.- Specified by:
unpinAllin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
oids- the object id of the instance to evict.
-
unpinAll
Unpin instances from the second-level cache.- Specified by:
unpinAllin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
subclasses- if true, unpin instances of subclasses alsopcClass- the class of instances to unpin
-