|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jpa.JPADataStoreCache
public class JPADataStoreCache
Implementation of the JPA DataStoreCache. Provides a wrapper and hands off calls to the underlying Level2 cache.
| Constructor Summary | |
|---|---|
JPADataStoreCache(org.datanucleus.cache.Level2Cache cache)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
contains(java.lang.Class cls,
java.lang.Object pk)
Accessor for whether the object with specified PK is contained in the cache. |
void |
evict(java.lang.Class cls)
Evict the parameter instance from the second-level cache. |
void |
evict(java.lang.Class cls,
java.lang.Object pk)
Evict the parameter instance from the second-level cache. |
void |
evictAll()
Evict all instances from the second-level cache. |
org.datanucleus.cache.Level2Cache |
getLevel2Cache()
Accessor for the underlying Level 2 cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPADataStoreCache(org.datanucleus.cache.Level2Cache cache)
cache - Level 2 Cache| Method Detail |
|---|
public org.datanucleus.cache.Level2Cache getLevel2Cache()
public boolean contains(java.lang.Class cls,
java.lang.Object pk)
contains in interface Cachecls - The classpk - PK of the instance to evict.
public void evictAll()
evictAll in interface Cachepublic void evict(java.lang.Class cls)
evict in interface Cachecls - Class of which to evict all objects
public void evict(java.lang.Class cls,
java.lang.Object pk)
evict in interface Cachecls - Class of which to evict the objectpk - PK of the instance to evict.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||