Package org.apache.openjpa.persistence
Interface StoreCache
- All Superinterfaces:
jakarta.persistence.Cache
- All Known Implementing Classes:
StoreCacheImpl
public interface StoreCache
extends jakarta.persistence.Cache
Represents the L2 cache over the data store.
- Since:
- 0.4.1
- Author:
- Abe White
-
Field Summary
Fields -
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.voidRemove 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.Deprecated.Gets the number of read/write/hit on this receiver in total and per class basis.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.Methods inherited from interface jakarta.persistence.Cache
evict, unwrap
-
Field Details
-
NAME_DEFAULT
- See Also:
-
-
Method Details
-
contains
Whether the cache contains data for the given oid.- Specified by:
containsin interfacejakarta.persistence.Cache
-
containsAll
Whether the cache contains data for the given oids. -
containsAll
Whether the cache contains data for the given oids. -
pin
Pin the data for the given oid to the cache. -
pinAll
Pin the data for the given oids to the cache. -
pinAll
Pin the data for the given oids to the cache. -
unpin
Unpin the data for the given oid from the cache. -
unpinAll
Unpin the data for the given oids from the cache. -
unpinAll
Unpin the data for the given oids from the cache. -
evict
Remove data for the given oid from the cache.- Specified by:
evictin interfacejakarta.persistence.Cache
-
evictAll
Remove data for the given oids from the cache. -
evictAll
Remove data for the given oids from the cache. -
evictAll
void evictAll()Clear the cache.- Specified by:
evictAllin interfacejakarta.persistence.Cache
-
getStatistics
CacheStatistics getStatistics()Gets the number of read/write/hit on this receiver in total and per class basis.- Since:
- 1.3.0
-
getDelegate
Deprecated.cast toStoreCacheImplinstead. This method pierces the published-API boundary, as does the SPI cast.
-
StoreCacheImplinstead.