Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.cfg |
This package defines APIs for configuring Hibernate, and classes
for building the Hibernate configuration-time metamodel.
|
org.hibernate.ejb | |
org.hibernate.ejb.util | |
org.hibernate.engine |
This package contains classes that are "shared" by other packages,
and implementations of some key algorithms.
|
org.hibernate.envers.entities.mapper.relation.lazy | |
org.hibernate.envers.query | |
org.hibernate.envers.query.impl | |
org.hibernate.impl |
This package contains implementations of the
central Hibernate APIs, especially the
Hibernate session.
|
Modifier and Type | Field and Description |
---|---|
static CacheMode |
CacheMode.GET
The session may read items from the cache, but will not add items,
except to invalidate items when updates occur
|
static CacheMode |
CacheMode.IGNORE
The session will never interact with the cache, except to invalidate
cache items when updates occur
|
static CacheMode |
CacheMode.NORMAL
The session may read items from the cache, and add items to the cache
|
static CacheMode |
CacheMode.PUT
The session will never read items from the cache, but will add items
to the cache as it reads them from the database.
|
static CacheMode |
CacheMode.REFRESH
The session will never read items from the cache, but will add items
to the cache as it reads them from the database.
|
Modifier and Type | Method and Description |
---|---|
CacheMode |
Session.getCacheMode()
Get the current cache mode.
|
static CacheMode |
CacheMode.parse(String name) |
Modifier and Type | Method and Description |
---|---|
void |
Session.setCacheMode(CacheMode cacheMode)
Set the cache mode.
|
Criteria |
Criteria.setCacheMode(CacheMode cacheMode)
Override the cache mode for this particular query.
|
Query |
Query.setCacheMode(CacheMode cacheMode)
Override the current session cache mode, just for
this query.
|
Modifier and Type | Method and Description |
---|---|
static CacheMode |
HbmBinder.getCacheMode(String cacheMode) |
Modifier and Type | Method and Description |
---|---|
CacheMode |
AbstractEntityManagerImpl.determineAppropriateLocalCacheMode(Map<String,Object> localProperties) |
Modifier and Type | Method and Description |
---|---|
protected void |
QueryImpl.applyCacheMode(CacheMode cacheMode) |
protected abstract void |
AbstractQueryImpl.applyCacheMode(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(javax.persistence.CacheStoreMode storeMode,
javax.persistence.CacheRetrieveMode retrieveMode)
Given a JPA
CacheStoreMode and CacheRetrieveMode , determine the corresponding
legacy Hibernate CacheMode . |
Modifier and Type | Method and Description |
---|---|
static javax.persistence.CacheRetrieveMode |
CacheModeHelper.interpretCacheRetrieveMode(CacheMode cacheMode) |
static javax.persistence.CacheStoreMode |
CacheModeHelper.interpretCacheStoreMode(CacheMode cacheMode) |
Modifier and Type | Method and Description |
---|---|
CacheMode |
SessionImplementor.getCacheMode() |
CacheMode |
NamedQueryDefinition.getCacheMode() |
Modifier and Type | Method and Description |
---|---|
void |
SessionImplementor.setCacheMode(CacheMode cm) |
Constructor and Description |
---|
NamedQueryDefinition(String query,
boolean cacheable,
String cacheRegion,
Integer timeout,
Integer fetchSize,
FlushMode flushMode,
CacheMode cacheMode,
boolean readOnly,
String comment,
Map parameterTypes) |
NamedSQLQueryDefinition(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)
This form used to construct a NamedSQLQueryDefinition from the binder
code when a the result-set mapping information is explicitly
provided in the query definition (i.e., no resultset-mapping used)
|
NamedSQLQueryDefinition(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)
This form used to construct a NamedSQLQueryDefinition from the binder
code when a resultset-mapping reference is used.
|
Modifier and Type | Method and Description |
---|---|
CacheMode |
AbstractDelegateSessionImplementor.getCacheMode() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractDelegateSessionImplementor.setCacheMode(CacheMode cm) |
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 |
AbstractQueryImpl.getCacheMode() |
CacheMode |
SessionImpl.getCacheMode() |
CacheMode |
StatelessSessionImpl.getCacheMode() |
Modifier and Type | Method and Description |
---|---|
Criteria |
CriteriaImpl.setCacheMode(CacheMode cacheMode) |
Criteria |
CriteriaImpl.Subcriteria.setCacheMode(CacheMode cacheMode) |
Query |
AbstractQueryImpl.setCacheMode(CacheMode cacheMode) |
void |
SessionImpl.setCacheMode(CacheMode cacheMode) |
void |
StatelessSessionImpl.setCacheMode(CacheMode cm) |
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved