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.spi | |
org.hibernate.envers.query | |
org.hibernate.envers.query.impl | |
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
org.hibernate.search | |
org.hibernate.search.batchindexing.impl | |
org.hibernate.search.impl |
Modifier and Type | Method and Description |
---|---|
CacheMode |
Session.getCacheMode()
Get the current cache mode.
|
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.
|
Query |
Query.setCacheMode(CacheMode cacheMode)
Override the current session cache mode, just for
this query.
|
Criteria |
Criteria.setCacheMode(CacheMode cacheMode)
Override the cache mode for this particular 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(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 |
SessionImplementor.getCacheMode() |
CacheMode |
SessionDelegatorBaseImpl.getCacheMode() |
CacheMode |
NamedQueryDefinition.getCacheMode() |
Modifier and Type | Method and Description |
---|---|
void |
SessionImplementor.setCacheMode(CacheMode cm) |
void |
SessionDelegatorBaseImpl.setCacheMode(CacheMode cm) |
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) |
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) |
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)
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 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)
This form used to construct a NamedSQLQueryDefinition from the binder
code when a resultset-mapping reference is used.
|
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 |
StatelessSessionImpl.getCacheMode() |
CacheMode |
SessionImpl.getCacheMode() |
CacheMode |
AbstractQueryImpl.getCacheMode() |
Modifier and Type | Method and Description |
---|---|
void |
StatelessSessionImpl.setCacheMode(CacheMode cm) |
void |
SessionImpl.setCacheMode(CacheMode cacheMode) |
Criteria |
CriteriaImpl.setCacheMode(CacheMode cacheMode) |
Criteria |
CriteriaImpl.Subcriteria.setCacheMode(CacheMode cacheMode) |
Query |
AbstractQueryImpl.setCacheMode(CacheMode cacheMode) |
Modifier and Type | Method and Description |
---|---|
MassIndexer |
MassIndexer.cacheMode(CacheMode cacheMode)
Sets the cache interaction mode for the data loading tasks.
|
Constructor and Description |
---|
BatchCoordinator(Set<Class<?>> rootEntities,
org.hibernate.search.engine.spi.SearchFactoryImplementor searchFactoryImplementor,
SessionFactoryImplementor sessionFactory,
int typesToIndexInParallel,
int documentBuilderThreads,
CacheMode cacheMode,
int objectLoadingBatchSize,
long objectsLimit,
boolean optimizeAtEnd,
boolean purgeAtStart,
boolean optimizeAfterPurge,
org.hibernate.search.batchindexing.MassIndexerProgressMonitor monitor,
int idFetchSize) |
BatchIndexingWorkspace(org.hibernate.search.engine.spi.SearchFactoryImplementor searchFactoryImplementor,
SessionFactoryImplementor sessionFactory,
Class<?> entityType,
int objectLoadingThreads,
CacheMode cacheMode,
int objectLoadingBatchSize,
CountDownLatch endAllSignal,
org.hibernate.search.batchindexing.MassIndexerProgressMonitor monitor,
org.hibernate.search.backend.impl.batch.BatchBackend backend,
long objectsLimit,
int idFetchSize) |
IdentifierConsumerDocumentProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities,
org.hibernate.search.batchindexing.MassIndexerProgressMonitor monitor,
SessionFactory sessionFactory,
CountDownLatch producerEndSignal,
CacheMode cacheMode,
Class<?> type,
org.hibernate.search.engine.spi.SearchFactoryImplementor searchFactory,
String idName,
org.hibernate.search.backend.impl.batch.BatchBackend backend,
org.hibernate.search.exception.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
CacheMode |
FullTextSessionImpl.getCacheMode() |
Modifier and Type | Method and Description |
---|---|
MassIndexer |
MassIndexerImpl.cacheMode(CacheMode cacheMode) |
void |
FullTextSessionImpl.setCacheMode(CacheMode cacheMode) |
Copyright © 2018 JBoss by Red Hat. All rights reserved.