public class JDODataStoreCache extends Object implements javax.jdo.datastore.DataStoreCache, Serializable
Constructor and Description |
---|
JDODataStoreCache(org.datanucleus.cache.Level2Cache cache)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
evict(Object oid)
Evict the parameter instance from the second-level cache.
|
void |
evictAll()
Evict the parameter instances from the second-level cache.
|
void |
evictAll(boolean subclasses,
Class pcClass)
Evict the parameter instances from the second-level cache.
|
void |
evictAll(Collection oids)
Evict the parameter instances from the second-level cache.
|
void |
evictAll(Object... oids)
Evict the parameter instances from the second-level cache.
|
org.datanucleus.cache.Level2Cache |
getLevel2Cache()
Accessor for the underlying Level 2 cache.
|
void |
pin(Object oid)
Pin the parameter instance in the second-level cache.
|
void |
pinAll(boolean subclasses,
Class pcClass)
Pin instances in the second-level cache.
|
void |
pinAll(Collection oids)
Pin the parameter instances in the second-level cache.
|
void |
pinAll(Object... oids)
Pin the parameter instances in the second-level cache.
|
void |
unpin(Object oid)
Unpin the parameter instance from the second-level cache.
|
void |
unpinAll(boolean subclasses,
Class pcClass)
Unpin instances from the second-level cache.
|
void |
unpinAll(Collection oids)
Unpin the parameter instances from the second-level cache.
|
void |
unpinAll(Object... oids)
Unpin the parameter instance from the second-level cache.
|
public JDODataStoreCache(org.datanucleus.cache.Level2Cache cache)
cache
- Level 2 Cachepublic org.datanucleus.cache.Level2Cache getLevel2Cache()
public void evict(Object oid)
evict
in interface javax.jdo.datastore.DataStoreCache
oid
- the object id of the instance to evict.public void evictAll()
evictAll
in interface javax.jdo.datastore.DataStoreCache
public void evictAll(Object... oids)
evictAll
in interface javax.jdo.datastore.DataStoreCache
oids
- the object ids of the instance to evict.public void evictAll(Collection oids)
evictAll
in interface javax.jdo.datastore.DataStoreCache
oids
- the object ids of the instance to evict.public void evictAll(boolean subclasses, Class pcClass)
evictAll
in interface javax.jdo.datastore.DataStoreCache
pcClass
- the class of instances to evictsubclasses
- if true, evict instances of subclasses alsopublic void pin(Object oid)
pin
in interface javax.jdo.datastore.DataStoreCache
oid
- the object id of the instance to pin.public void pinAll(Collection oids)
pinAll
in interface javax.jdo.datastore.DataStoreCache
oids
- the object ids of the instances to pin.public void pinAll(Object... oids)
pinAll
in interface javax.jdo.datastore.DataStoreCache
oids
- the object ids of the instances to pin.public void pinAll(boolean subclasses, Class pcClass)
pinAll
in interface javax.jdo.datastore.DataStoreCache
subclasses
- if true, pin instances of subclasses alsopcClass
- the class of instances to pinpublic void unpin(Object oid)
unpin
in interface javax.jdo.datastore.DataStoreCache
oid
- the object id of the instance to unpin.public void unpinAll(Collection oids)
unpinAll
in interface javax.jdo.datastore.DataStoreCache
oids
- the object ids of the instance to evict.public void unpinAll(Object... oids)
unpinAll
in interface javax.jdo.datastore.DataStoreCache
oids
- the object id of the instance to evict.public void unpinAll(boolean subclasses, Class pcClass)
unpinAll
in interface javax.jdo.datastore.DataStoreCache
subclasses
- if true, unpin instances of subclasses alsopcClass
- the class of instances to unpinCopyright © 2020. All rights reserved.