|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.jdo.datastore.DataStoreCache.EmptyDataStoreCache
org.jpox.cache.NullLevel2Cache
Null implementation of a Level 2 Cache. Exists to meet the JDO 2 spec which states that the PMF will return a DataStoreCache that silently does nothing when its methods are called. Extends the JDO2 spec provided EmptyDataStoreCache to provide the add-on JPOX methods.
Nested Class Summary |
Nested classes inherited from class org.jpox.cache.Level2Cache |
Level2Cache.PinnedClass |
Nested classes inherited from class javax.jdo.datastore.DataStoreCache |
javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache |
Constructor Summary | |
NullLevel2Cache()
|
Method Summary | |
void |
clear()
Method to clear the cache. |
boolean |
containsOid(java.lang.Object oid)
Accessor for whether an object with the specified id is in the 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. |
CachedPC |
put(java.lang.Object oid,
CachedPC pc)
Method to put an object in the L2 cache |
Methods inherited from class javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache |
evict, evictAll, evictAll, evictAll, evictAll, pin, pinAll, pinAll, pinAll, unpin, unpinAll, unpinAll, unpinAll |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jdo.datastore.DataStoreCache |
evict, evictAll, evictAll, evictAll, evictAll, pin, pinAll, pinAll, pinAll, unpin, unpinAll, unpinAll, unpinAll |
Constructor Detail |
public NullLevel2Cache()
Method Detail |
public void clear()
Level2Cache
clear
in interface Level2Cache
Level2Cache.clear()
public boolean containsOid(java.lang.Object oid)
Level2Cache
containsOid
in interface Level2Cache
oid
- The object id
Level2Cache.containsOid(java.lang.Object)
public CachedPC get(java.lang.Object oid)
get
in interface Level2Cache
oid
- The identity
public int getNumberOfPinnedObjects()
Level2Cache
getNumberOfPinnedObjects
in interface Level2Cache
Level2Cache.getNumberOfPinnedObjects()
public int getNumberOfUnpinnedObjects()
Level2Cache
getNumberOfUnpinnedObjects
in interface Level2Cache
Level2Cache.getNumberOfUnpinnedObjects()
public int getSize()
Level2Cache
getSize
in interface Level2Cache
Level2Cache.getSize()
public boolean isEmpty()
Level2Cache
isEmpty
in interface Level2Cache
Level2Cache.isEmpty()
public CachedPC put(java.lang.Object oid, CachedPC pc)
put
in interface Level2Cache
oid
- The identitypc
- Cacheable form of the PC
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |