Package org.datanucleus.api.jdo
Class JDODataStoreCache
- java.lang.Object
-
- org.datanucleus.api.jdo.JDODataStoreCache
-
- All Implemented Interfaces:
java.io.Serializable,javax.jdo.datastore.DataStoreCache
public class JDODataStoreCache extends java.lang.Object implements javax.jdo.datastore.DataStoreCache, java.io.SerializableImplementation of the JDO DataStoreCache. Provides a wrapper and hands off calls to the underlying Level2 cache- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.datanucleus.cache.Level2CachecacheUnderlying Level 2 cache.private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description JDODataStoreCache(org.datanucleus.cache.Level2Cache cache)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevict(java.lang.Object oid)Evict the parameter instance from the second-level cache.voidevictAll()Evict the parameter instances from the second-level cache.voidevictAll(boolean subclasses, java.lang.Class pcClass)Evict the parameter instances from the second-level cache.voidevictAll(java.lang.Object... oids)Evict the parameter instances from the second-level cache.voidevictAll(java.util.Collection oids)Evict the parameter instances from the second-level cache.org.datanucleus.cache.Level2CachegetLevel2Cache()Accessor for the underlying Level 2 cache.voidpin(java.lang.Object oid)Pin the parameter instance in the second-level cache.voidpinAll(boolean subclasses, java.lang.Class pcClass)Pin instances in the second-level cache.voidpinAll(java.lang.Object... oids)Pin the parameter instances in the second-level cache.voidpinAll(java.util.Collection oids)Pin the parameter instances in the second-level cache.voidunpin(java.lang.Object oid)Unpin the parameter instance from the second-level cache.voidunpinAll(boolean subclasses, java.lang.Class pcClass)Unpin instances from the second-level cache.voidunpinAll(java.lang.Object... oids)Unpin the parameter instance from the second-level cache.voidunpinAll(java.util.Collection oids)Unpin the parameter instances from the second-level cache.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
cache
org.datanucleus.cache.Level2Cache cache
Underlying Level 2 cache.
-
-
Method Detail
-
getLevel2Cache
public org.datanucleus.cache.Level2Cache getLevel2Cache()
Accessor for the underlying Level 2 cache.- Returns:
- Underlying L2 cache.
-
evict
public void evict(java.lang.Object oid)
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
public void evictAll(java.lang.Object... oids)
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
public void evictAll(java.util.Collection oids)
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
public void evictAll(boolean subclasses, java.lang.Class pcClass)Evict the parameter instances from the second-level cache.- Specified by:
evictAllin interfacejavax.jdo.datastore.DataStoreCache- Parameters:
pcClass- the class of instances to evictsubclasses- if true, evict instances of subclasses also
-
pin
public void pin(java.lang.Object oid)
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
public void pinAll(java.util.Collection oids)
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
public void pinAll(java.lang.Object... oids)
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
public void pinAll(boolean subclasses, java.lang.Class pcClass)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
public void unpin(java.lang.Object oid)
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
public void unpinAll(java.util.Collection oids)
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
public void unpinAll(java.lang.Object... oids)
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
public void unpinAll(boolean subclasses, java.lang.Class pcClass)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
-
-