|
||||||||||
| 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
public class 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/interfaces inherited from interface org.jpox.cache.Level2Cache |
|---|
Level2Cache.PinnedClass |
| Nested classes/interfaces inherited from interface 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 Level2CacheLevel2Cache.clear()public boolean containsOid(java.lang.Object oid)
Level2Cache
containsOid in interface Level2Cacheoid - The object id
Level2Cache.containsOid(java.lang.Object)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 | |||||||||