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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the cache contains data for the given oid.boolean
containsAll
(Class cls, Object... oids) Whether the cache contains data for the given oids.boolean
containsAll
(Class cls, Collection oids) Whether the cache contains data for the given oids.void
Remove data for the given oid from the cache.void
evictAll()
Clear the cache.void
Remove data for the given oids from the cache.void
evictAll
(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.void
Pin the data for the given oid to the cache.void
Pin the data for the given oids to the cache.void
pinAll
(Class cls, Collection oids) Pin the data for the given oids to the cache.void
Unpin the data for the given oid from the cache.void
Unpin the data for the given oids from the cache.void
unpinAll
(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:
contains
in 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:
evict
in 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:
evictAll
in 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 toStoreCacheImpl
instead. This method pierces the published-API boundary, as does the SPI cast.
-
StoreCacheImpl
instead.