Package org.datanucleus.api.jakarta
Class JakartaQueryCache
- java.lang.Object
- 
- org.datanucleus.api.jakarta.JakartaQueryCache
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class JakartaQueryCache extends Object implements Serializable Implementation of the Jakarta Persistence QueryCache. Provides a wrapper and hands off calls to the underlying query cache.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description JakartaQueryCache(org.datanucleus.store.query.cache.QueryResultsCache cache)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevict(jakarta.persistence.Query query)Evict all cached results for the provided query.voidevict(jakarta.persistence.Query query, Map params)Evict the cached results for the provided query and params.voidevictAll()Evict the parameter instances from the second-level cache.org.datanucleus.store.query.cache.QueryResultsCachegetQueryCache()Accessor for the underlying query cache.voidpin(jakarta.persistence.Query query)Method to pin the specified query in the cache, preventing garbage collection.voidpin(jakarta.persistence.Query query, Map params)Method to pin the specified query in the cache, preventing garbage collection.voidunpin(jakarta.persistence.Query query)Method to unpin the specified query from the cache, allowing garbage collection.voidunpin(jakarta.persistence.Query query, Map params)Method to unpin the specified query from the cache, allowing garbage collection.
 
- 
- 
- 
Method Detail- 
getQueryCachepublic org.datanucleus.store.query.cache.QueryResultsCache getQueryCache() Accessor for the underlying query cache.- Returns:
- Underlying query cache.
 
 - 
evictpublic void evict(jakarta.persistence.Query query) Evict all cached results for the provided query.- Parameters:
- query- The Jakarta Persistence query
 
 - 
evictpublic void evict(jakarta.persistence.Query query, Map params)Evict the cached results for the provided query and params.- Parameters:
- query- The Jakarta Persistence query
- params- The input params
 
 - 
evictAllpublic void evictAll() Evict the parameter instances from the second-level cache. All instances in the EntityManagers cache are evicted from the second-level cache.
 - 
pinpublic void pin(jakarta.persistence.Query query) Method to pin the specified query in the cache, preventing garbage collection.- Parameters:
- query- The query
 
 - 
pinpublic void pin(jakarta.persistence.Query query, Map params)Method to pin the specified query in the cache, preventing garbage collection.- Parameters:
- query- The query
- params- Its params
 
 - 
unpinpublic void unpin(jakarta.persistence.Query query) Method to unpin the specified query from the cache, allowing garbage collection.- Parameters:
- query- The query
 
 - 
unpinpublic void unpin(jakarta.persistence.Query query, Map params)Method to unpin the specified query from the cache, allowing garbage collection.- Parameters:
- query- The query
- params- Its params
 
 
- 
 
-