Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.annotations |
Package containing all the Hibernate specific annotations.
|
org.hibernate.cfg.annotations | |
org.hibernate.engine.spi | |
org.hibernate.envers.query | |
org.hibernate.envers.query.internal.impl | |
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
org.hibernate.jpa.internal | |
org.hibernate.jpa.internal.util | |
org.hibernate.jpa.spi |
Modifier and Type | Method and Description |
---|---|
CacheMode |
Session.getCacheMode()
Get the current cache mode.
|
CacheMode |
BasicQueryContract.getCacheMode()
Obtain the CacheMode in effect for this query.
|
static CacheMode |
CacheMode.interpretExternalSetting(String setting)
Used to interpret externalized forms of this enum.
|
static CacheMode |
CacheMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheMode[] |
CacheMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Session.setCacheMode(CacheMode cacheMode)
Set the cache mode.
|
BasicQueryContract |
BasicQueryContract.setCacheMode(CacheMode cacheMode)
(Re)set the current CacheMode in effect for this query.
|
Query |
Query.setCacheMode(CacheMode cacheMode) |
Criteria |
Criteria.setCacheMode(CacheMode cacheMode)
Override the cache mode for this particular query.
|
Modifier and Type | Method and Description |
---|---|
CacheMode |
CacheModeType.getCacheMode() |
Modifier and Type | Method and Description |
---|---|
static CacheModeType |
CacheModeType.fromCacheMode(CacheMode cacheMode)
Conversion from
CacheMode to CacheModeType . |
Modifier and Type | Method and Description |
---|---|
CacheMode |
QueryHintDefinition.getCacheMode(String query) |
Modifier and Type | Field and Description |
---|---|
protected CacheMode |
NamedQueryDefinitionBuilder.cacheMode |
Modifier and Type | Method and Description |
---|---|
CacheMode |
SessionDelegatorBaseImpl.getCacheMode() |
CacheMode |
SessionImplementor.getCacheMode() |
CacheMode |
NamedQueryDefinition.getCacheMode() |
Modifier and Type | Method and Description |
---|---|
NamedQueryDefinitionBuilder |
NamedQueryDefinitionBuilder.setCacheMode(CacheMode cacheMode) |
void |
SessionDelegatorBaseImpl.setCacheMode(CacheMode cm) |
void |
SessionImplementor.setCacheMode(CacheMode cm) |
NamedSQLQueryDefinitionBuilder |
NamedSQLQueryDefinitionBuilder.setCacheMode(CacheMode cacheMode) |
Constructor and Description |
---|
NamedQueryDefinition(String name,
String query,
boolean cacheable,
String cacheRegion,
Integer timeout,
Integer fetchSize,
FlushMode flushMode,
CacheMode cacheMode,
boolean readOnly,
String comment,
Map parameterTypes)
Deprecated.
Use
NamedQueryDefinitionBuilder instead. |
NamedQueryDefinition(String name,
String query,
boolean cacheable,
String cacheRegion,
Integer timeout,
Integer lockTimeout,
Integer fetchSize,
FlushMode flushMode,
CacheMode cacheMode,
boolean readOnly,
String comment,
Map parameterTypes)
Deprecated.
Use
NamedQueryDefinitionBuilder instead. |
NamedSQLQueryDefinition(String name,
String query,
NativeSQLQueryReturn[] queryReturns,
List<String> querySpaces,
boolean cacheable,
String cacheRegion,
Integer timeout,
Integer fetchSize,
FlushMode flushMode,
CacheMode cacheMode,
boolean readOnly,
String comment,
Map parameterTypes,
boolean callable)
Deprecated.
Use
NamedSQLQueryDefinitionBuilder instead. |
NamedSQLQueryDefinition(String name,
String query,
String resultSetRef,
List<String> querySpaces,
boolean cacheable,
String cacheRegion,
Integer timeout,
Integer fetchSize,
FlushMode flushMode,
CacheMode cacheMode,
boolean readOnly,
String comment,
Map parameterTypes,
boolean callable)
Deprecated.
Use
NamedSQLQueryDefinitionBuilder instead. |
Modifier and Type | Method and Description |
---|---|
AuditQuery |
AuditQuery.setCacheMode(CacheMode cacheMode) |
Modifier and Type | Method and Description |
---|---|
AuditQuery |
AbstractAuditQuery.setCacheMode(CacheMode cacheMode) |
Modifier and Type | Method and Description |
---|---|
CacheMode |
SessionImpl.getCacheMode() |
CacheMode |
AbstractBasicQueryContractImpl.getCacheMode() |
CacheMode |
AbstractQueryImpl.getCacheMode() |
CacheMode |
StatelessSessionImpl.getCacheMode() |
Modifier and Type | Method and Description |
---|---|
void |
SessionImpl.setCacheMode(CacheMode cacheMode) |
BasicQueryContract |
AbstractBasicQueryContractImpl.setCacheMode(CacheMode cacheMode) |
Query |
AbstractQueryImpl.setCacheMode(CacheMode cacheMode) |
void |
StatelessSessionImpl.setCacheMode(CacheMode cm) |
Criteria |
CriteriaImpl.setCacheMode(CacheMode cacheMode) |
Criteria |
CriteriaImpl.Subcriteria.setCacheMode(CacheMode cacheMode) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
StoredProcedureQueryImpl.applyCacheModeHint(CacheMode cacheMode) |
protected boolean |
QueryImpl.applyCacheModeHint(CacheMode cacheMode) |
Modifier and Type | Field and Description |
---|---|
static CacheMode |
CacheModeHelper.DEFAULT_LEGACY_MODE |
Modifier and Type | Method and Description |
---|---|
static CacheMode |
ConfigurationHelper.getCacheMode(Object value) |
static CacheMode |
CacheModeHelper.interpretCacheMode(CacheStoreMode storeMode,
CacheRetrieveMode retrieveMode)
Given a JPA
CacheStoreMode and CacheRetrieveMode , determine the corresponding
legacy Hibernate CacheMode . |
Modifier and Type | Method and Description |
---|---|
static CacheRetrieveMode |
CacheModeHelper.interpretCacheRetrieveMode(CacheMode cacheMode) |
static CacheStoreMode |
CacheModeHelper.interpretCacheStoreMode(CacheMode cacheMode) |
Modifier and Type | Method and Description |
---|---|
CacheMode |
AbstractEntityManagerImpl.determineAppropriateLocalCacheMode(Map<String,Object> localProperties) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
BaseQueryImpl.applyCacheModeHint(CacheMode cacheMode)
Apply the CacheMode hint.
|
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.