|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for any Level 2 Cache used by JPOX. Builds on the JDO definition, to provide the typical controls required by JPOX itself. Clearly users will be able to access these, but then they provide added value over JDO 2.
Nested Class Summary | |
static class |
Level2Cache.PinnedClass
Representation of a class whose objects will be pinned when put into the L2 cache. |
Nested classes inherited from class javax.jdo.datastore.DataStoreCache |
javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache |
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 cache. |
Methods inherited from interface javax.jdo.datastore.DataStoreCache |
evict, evictAll, evictAll, evictAll, evictAll, pin, pinAll, pinAll, pinAll, unpin, unpinAll, unpinAll, unpinAll |
Method Detail |
public int getNumberOfPinnedObjects()
public int getNumberOfUnpinnedObjects()
public int getSize()
public CachedPC get(java.lang.Object oid)
oid
- The Object ID
public CachedPC put(java.lang.Object oid, CachedPC pc)
oid
- The Object id for this objectpc
- The L2 cacheable PersistenceCapable object
public boolean isEmpty()
public void clear()
public boolean containsOid(java.lang.Object oid)
oid
- The object id
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |