|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.cache.NullLevel2Cache
public class NullLevel2Cache
Null implementation of a Level 2 Cache. Does nothing when its methods are invoked.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.datanucleus.cache.Level2Cache |
|---|
Level2Cache.PinnedClass |
| Constructor Summary | |
|---|---|
NullLevel2Cache()
|
|
| Method Summary | |
|---|---|
void |
clear()
Method to clear the cache. |
void |
close()
Method to close the cache when no longer needed. |
boolean |
containsOid(java.lang.Object oid)
Accessor for whether an object with the specified id is in the cache |
void |
evict(java.lang.Object oid)
Evict the parameter instance from the second-level cache. |
void |
evictAll()
Evict the parameter instances from the second-level cache. |
void |
evictAll(java.lang.Class pcClass,
boolean subclasses)
Evict the parameter instances from the second-level cache. |
void |
evictAll(java.util.Collection oids)
Evict the parameter instances from the second-level cache. |
void |
evictAll(java.lang.Object[] oids)
Evict the parameter instances from the second-level cache. |
CachedPC |
get(java.lang.Object oid)
Accessor for an object from the cache |
int |
getNumberOfPinnedObjects()
Accessor for the number of pinned objects in the cache. |
int |
getNumberOfUnpinnedObjects()
Accessor for the number of unpinned objects in the cache. |
int |
getSize()
Accessor for the total number of objects in the L2 cache. |
boolean |
isEmpty()
Accessor for whether the cache is empty. |
void |
pin(java.lang.Object oid)
Pin the parameter instance in the second-level cache. |
void |
pinAll(java.lang.Class pcClass,
boolean subclasses)
Evict the parameter instances from the second-level cache. |
void |
pinAll(java.util.Collection oids)
Pin the parameter instances in the second-level cache. |
void |
pinAll(java.lang.Object[] oids)
Pin the parameter instances in the second-level cache. |
CachedPC |
put(java.lang.Object oid,
CachedPC pc)
Method to put an object in the L2 cache |
void |
unpin(java.lang.Object oid)
Unpin the parameter instance from the second-level cache. |
void |
unpinAll(java.lang.Class pcClass,
boolean subclasses)
Unpin instances from the second-level cache. |
void |
unpinAll(java.util.Collection oids)
Unpin the parameter instances from the second-level cache. |
void |
unpinAll(java.lang.Object[] oids)
Unpin the parameter instances from the second-level cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullLevel2Cache()
| Method Detail |
|---|
public void close()
close in interface Level2Cachepublic void evict(java.lang.Object oid)
evict in interface Level2Cacheoid - the object id of the instance to evict.public void evictAll()
evictAll in interface Level2Cache
public void evictAll(java.lang.Class pcClass,
boolean subclasses)
evictAll in interface Level2CachepcClass - the class to evictsubclasses - Whether to evict all subclasses of this class alsopublic void evictAll(java.util.Collection oids)
evictAll in interface Level2Cacheoids - the object ids of the instance to evict.public void evictAll(java.lang.Object[] oids)
evictAll in interface Level2Cacheoids - the object ids of the instances to evictpublic void pin(java.lang.Object oid)
pin in interface Level2Cacheoid - the object id of the instance to pin.
public void pinAll(java.lang.Class pcClass,
boolean subclasses)
pinAll in interface Level2CachepcClass - the class of instances to evictsubclasses - if true, evict instances of subclasses alsopublic void pinAll(java.util.Collection oids)
pinAll in interface Level2Cacheoids - the object ids of the instances to pin.public void pinAll(java.lang.Object[] oids)
pinAll in interface Level2Cacheoids - the object ids of the instances to pin.public void unpin(java.lang.Object oid)
unpin in interface Level2Cacheoid - the object id of the instance to unpin.
public void unpinAll(java.lang.Class pcClass,
boolean subclasses)
unpinAll in interface Level2CachepcClass - the class of instances to unpinsubclasses - if true, unpin instances of subclasses alsopublic void unpinAll(java.util.Collection oids)
unpinAll in interface Level2Cacheoids - the object ids of the instance to evict.public void unpinAll(java.lang.Object[] oids)
unpinAll in interface Level2Cacheoids - the object ids of the instance to evict.public void clear()
clear in interface Level2Cachepublic boolean containsOid(java.lang.Object oid)
containsOid in interface Level2Cacheoid - The object id
public CachedPC get(java.lang.Object oid)
get in interface Level2Cacheoid - The identity
public int getNumberOfPinnedObjects()
Level2Cache
getNumberOfPinnedObjects in interface Level2CacheLevel2Cache.getNumberOfPinnedObjects()public int getNumberOfUnpinnedObjects()
Level2Cache
getNumberOfUnpinnedObjects in interface Level2CacheLevel2Cache.getNumberOfUnpinnedObjects()public int getSize()
Level2Cache
getSize in interface Level2CacheLevel2Cache.getSize()public boolean isEmpty()
Level2Cache
isEmpty in interface Level2CacheLevel2Cache.isEmpty()
public CachedPC put(java.lang.Object oid,
CachedPC pc)
put in interface Level2Cacheoid - The identitypc - Cacheable form of the PC
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||