Uses of Enum Class
jakarta.persistence.CacheRetrieveMode
Packages that use CacheRetrieveMode
Package
Description
Defines the core APIs for the management for persistence and
object/relational mapping.
-
Uses of CacheRetrieveMode in jakarta.persistence
Subclasses with type arguments of type CacheRetrieveMode in jakarta.persistenceModifier and TypeClassDescriptionenumSpecifies how theEntityManagerinteracts with the second-level cache when data is read from the database via theEntityManager.find(Class, Object, Map)methods and execution of queries.Methods in jakarta.persistence that return CacheRetrieveModeModifier and TypeMethodDescriptionEntityHandler.getCacheRetrieveMode()The cache retrieval mode for thisEntityHandler.Query.getCacheRetrieveMode()Deprecated, for removal: This API element is subject to removal in a future version.TypedQuery.getCacheRetrieveMode()The cache retrieval mode in effect during query execution.static CacheRetrieveModeReturns the enum constant of this class with the specified name.static CacheRetrieveMode[]CacheRetrieveMode.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in jakarta.persistence with parameters of type CacheRetrieveModeModifier and TypeMethodDescriptionvoidEntityHandler.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) Set the default cache retrieval mode for thisEntityHandler.Query.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) Deprecated, for removal: This API element is subject to removal in a future version.StoredProcedureQuery.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) Set the cache retrieval mode in effect during query execution.TypedQuery.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) Set the cache retrieval mode in effect during query execution.
TypedQuery.getCacheRetrieveMode()