Package org.apache.openjpa.persistence
Class StoreCacheImpl
java.lang.Object
org.apache.openjpa.persistence.StoreCacheImpl
- All Implemented Interfaces:
jakarta.persistence.Cache,StoreCache
Implements the L2 cache over the data store via delegation to DataCache.
- Since:
- 0.4.1
- Author:
- Abe White
-
Field Summary
Fields inherited from interface org.apache.openjpa.persistence.StoreCache
NAME_DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionStoreCacheImpl(EntityManagerFactoryImpl emf, DataCache cache) Constructor; supply delegate. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the cache contains data for the given oid.booleancontainsAll(Class cls, Object... oids) Whether the cache contains data for the given oids.booleancontainsAll(Class cls, Collection oids) Whether the cache contains data for the given oids.booleanvoidvoidRemove data for the given oid from the cache.voidevictAll()Clear the cache.voidRemove data for the given oids from the cache.voidevictAll(Class cls, Collection oids) Remove data for the given oids from the cache.Delegate.Gets the number of read/write/hit on this receiver in total and per class basis.inthashCode()voidPin the data for the given oid to the cache.voidPin the data for the given oids to the cache.voidpinAll(Class cls, Collection oids) Pin the data for the given oids to the cache.voidUnpin the data for the given oid from the cache.voidUnpin the data for the given oids from the cache.voidunpinAll(Class cls, Collection oids) Unpin the data for the given oids from the cache.<T> T
-
Constructor Details
-
StoreCacheImpl
Constructor; supply delegate.
-
-
Method Details
-
getDelegate
Delegate.- Specified by:
getDelegatein interfaceStoreCache
-
contains
Description copied from interface:StoreCacheWhether the cache contains data for the given oid.- Specified by:
containsin interfacejakarta.persistence.Cache- Specified by:
containsin interfaceStoreCache
-
containsAll
Description copied from interface:StoreCacheWhether the cache contains data for the given oids.- Specified by:
containsAllin interfaceStoreCache
-
containsAll
Description copied from interface:StoreCacheWhether the cache contains data for the given oids.- Specified by:
containsAllin interfaceStoreCache
-
pin
Description copied from interface:StoreCachePin the data for the given oid to the cache.- Specified by:
pinin interfaceStoreCache
-
pinAll
Description copied from interface:StoreCachePin the data for the given oids to the cache.- Specified by:
pinAllin interfaceStoreCache
-
pinAll
Description copied from interface:StoreCachePin the data for the given oids to the cache.- Specified by:
pinAllin interfaceStoreCache
-
unpin
Description copied from interface:StoreCacheUnpin the data for the given oid from the cache.- Specified by:
unpinin interfaceStoreCache
-
unpinAll
Description copied from interface:StoreCacheUnpin the data for the given oids from the cache.- Specified by:
unpinAllin interfaceStoreCache
-
unpinAll
Description copied from interface:StoreCacheUnpin the data for the given oids from the cache.- Specified by:
unpinAllin interfaceStoreCache
-
evict
Description copied from interface:StoreCacheRemove data for the given oid from the cache.- Specified by:
evictin interfacejakarta.persistence.Cache- Specified by:
evictin interfaceStoreCache
-
evictAll
Description copied from interface:StoreCacheRemove data for the given oids from the cache.- Specified by:
evictAllin interfaceStoreCache
-
evictAll
Description copied from interface:StoreCacheRemove data for the given oids from the cache.- Specified by:
evictAllin interfaceStoreCache
-
evictAll
public void evictAll()Description copied from interface:StoreCacheClear the cache.- Specified by:
evictAllin interfacejakarta.persistence.Cache- Specified by:
evictAllin interfaceStoreCache
-
unwrap
- Specified by:
unwrapin interfacejakarta.persistence.Cache
-
getStatistics
Description copied from interface:StoreCacheGets the number of read/write/hit on this receiver in total and per class basis.- Specified by:
getStatisticsin interfaceStoreCache
-
hashCode
public int hashCode() -
equals
-
evict
- Specified by:
evictin interfacejakarta.persistence.Cache
-