Uses of Enum Class
org.hibernate.CacheMode
Packages that use CacheMode
Package
Description
This package defines the central Hibernate APIs, beginning with
SessionFactory
, which represents an instance of
Hibernate at runtime and is the source of new instances of
Session
and StatelessSession
,
the most important APIs exposing persistence-related operations for
entities.Support for handling named queries during the bootstrap process.
A range of SPIs allowing integration with—and customization of—the process of building metadata.
This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
Everything related to HQL/JPQL, native SQL, and criteria queries.
SPIs for HQL support.
Support for named queries
Contains a range of internal abstractions for dealing with query execution,
query plans, query options, and query parameters.
SPIs for native SQL query support.
This package defines a semantic model of HQL queries.
SPI-level SQM contracts
-
Uses of CacheMode in org.hibernate
Methods in org.hibernate that return CacheModeModifier and TypeMethodDescriptionstatic CacheMode
CacheMode.fromJpaModes
(CacheRetrieveMode retrieveMode, CacheStoreMode storeMode) Interpret the given JPA modes as an instance of this enumeration.Session.getCacheMode()
Get the current cache mode for this session.SharedSessionContract.getCacheMode()
Get the current cache mode for this session.static CacheMode
CacheMode.interpretExternalSetting
(String setting) Interpret externalized form as an instance of this enumeration.static CacheMode
Returns the enum constant of this class with the specified name.static CacheMode[]
CacheMode.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.hibernate with parameters of type CacheModeModifier and TypeMethodDescriptionvoid
Session.setCacheMode
(CacheMode cacheMode) Set the current cache mode for this session.void
SharedSessionContract.setCacheMode
(CacheMode cacheMode) Set the current cache mode for this session.Specify theCacheMode
to use when obtaining an entity.Specify theCacheMode
to use when obtaining an entity.Specify theCacheMode
to use when obtaining an entity. -
Uses of CacheMode in org.hibernate.boot.query
Methods in org.hibernate.boot.query that return CacheModeMethods in org.hibernate.boot.query with parameters of type CacheMode -
Uses of CacheMode in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi that return CacheModeModifier and TypeMethodDescriptionAbstractNamedQueryDefinition.getCacheMode()
AbstractDelegatingSessionFactoryOptions.getInitialSessionCacheMode()
SessionFactoryOptions.getInitialSessionCacheMode()
The default initialCacheMode
for new sessions.Constructors in org.hibernate.boot.spi with parameters of type CacheModeModifierConstructorDescriptionAbstractNamedQueryDefinition
(String name, @Nullable Class<R> resultType, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, LockOptions lockOptions, Integer timeout, Integer fetchSize, String comment, Map<String, Object> hints, String location) -
Uses of CacheMode in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return CacheModeModifier and TypeMethodDescriptionSessionDelegatorBaseImpl.getCacheMode()
SessionLazyDelegator.getCacheMode()
SharedSessionDelegatorBaseImpl.getCacheMode()
Methods in org.hibernate.engine.spi with parameters of type CacheModeModifier and TypeMethodDescriptionvoid
SessionDelegatorBaseImpl.setCacheMode
(CacheMode cacheMode) void
SessionLazyDelegator.setCacheMode
(CacheMode cacheMode) void
SharedSessionDelegatorBaseImpl.setCacheMode
(CacheMode cacheMode) -
Uses of CacheMode in org.hibernate.query
Methods in org.hibernate.query that return CacheModeModifier and TypeMethodDescriptionSelectionQuery.getCacheMode()
Obtain theCacheMode
in effect for this query.Methods in org.hibernate.query with parameters of type CacheModeModifier and TypeMethodDescriptionNativeQuery.setCacheMode
(CacheMode cacheMode) Query.setCacheMode
(CacheMode cacheMode) SelectionQuery.setCacheMode
(CacheMode cacheMode) Set the currentCacheMode
in effect for this query. -
Uses of CacheMode in org.hibernate.query.hql.spi
Methods in org.hibernate.query.hql.spi with parameters of type CacheMode -
Uses of CacheMode in org.hibernate.query.named
Methods in org.hibernate.query.named that return CacheModeModifier and TypeMethodDescriptionAbstractNamedQueryMemento.getCacheMode()
NamedQueryMemento.getCacheMode()
Constructors in org.hibernate.query.named with parameters of type CacheMode -
Uses of CacheMode in org.hibernate.query.spi
Methods in org.hibernate.query.spi that return CacheModeModifier and TypeMethodDescriptionAbstractSelectionQuery.getCacheMode()
DelegatingQueryOptions.getCacheMode()
default CacheMode
QueryOptions.getCacheMode()
QueryOptionsAdapter.getCacheMode()
QueryProducerImplementor.getCacheMode()
Deprecated, for removal: This API element is subject to removal in a future version.Methods in org.hibernate.query.spi with parameters of type CacheModeModifier and TypeMethodDescriptionAbstractQuery.setCacheMode
(CacheMode cacheMode) AbstractSelectionQuery.setCacheMode
(CacheMode cacheMode) default void
MutableQueryOptions.setCacheMode
(CacheMode cacheMode) Corollary toQueryOptions.getCacheMode()
-
Uses of CacheMode in org.hibernate.query.sql.spi
Methods in org.hibernate.query.sql.spi with parameters of type CacheMode -
Uses of CacheMode in org.hibernate.query.sqm
Methods in org.hibernate.query.sqm with parameters of type CacheMode -
Uses of CacheMode in org.hibernate.query.sqm.spi
Methods in org.hibernate.query.sqm.spi that return CacheModeMethods in org.hibernate.query.sqm.spi with parameters of type CacheModeModifier and TypeMethodDescriptionDelegatingSqmSelectionQueryImplementor.setCacheMode
(CacheMode cacheMode)