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 FlushMode |
FlushMode.ALWAYS
The
Session is flushed before every query. |
static FlushMode |
FlushMode.AUTO
The
Session is sometimes flushed before query execution
in order to ensure that queries never return stale state. |
static FlushMode |
FlushMode.COMMIT
The
Session is flushed when Transaction.commit()
is called. |
static FlushMode |
FlushMode.MANUAL
The
Session is only ever flushed when Session.flush()
is explicitly called by the application. |
static FlushMode |
FlushMode.NEVER
Deprecated.
use
MANUAL instead. |
Modifier and Type | Method and Description |
---|---|
FlushMode |
Session.getFlushMode()
Get the current flush mode for this session.
|
static FlushMode |
FlushMode.parse(String name) |
Modifier and Type | Method and Description |
---|---|
static boolean |
FlushMode.isManualFlushMode(FlushMode mode) |
boolean |
FlushMode.lessThan(FlushMode other) |
void |
Session.setFlushMode(FlushMode flushMode)
Set the flush mode for this session.
|
Criteria |
Criteria.setFlushMode(FlushMode flushMode)
Override the flush mode for this particular query.
|
Query |
Query.setFlushMode(FlushMode flushMode)
Override the current session flush mode, just for
this query.
|
Modifier and Type | Method and Description |
---|---|
static FlushMode |
HbmBinder.getFlushMode(String flushMode) |
Modifier and Type | Method and Description |
---|---|
protected void |
QueryImpl.applyFlushMode(FlushMode flushMode) |
protected abstract void |
AbstractQueryImpl.applyFlushMode(FlushMode flushMode) |
Modifier and Type | Method and Description |
---|---|
static FlushMode |
ConfigurationHelper.getFlushMode(Object value) |
Modifier and Type | Method and Description |
---|---|
FlushMode |
SessionImplementor.getFlushMode() |
FlushMode |
NamedQueryDefinition.getFlushMode() |
Modifier and Type | Method and Description |
---|---|
void |
SessionImplementor.setFlushMode(FlushMode fm) |
Constructor and Description |
---|
NamedQueryDefinition(String query,
boolean cacheable,
String cacheRegion,
Integer timeout,
Integer fetchSize,
FlushMode flushMode,
CacheMode cacheMode,
boolean readOnly,
String comment,
Map parameterTypes) |
NamedQueryDefinition(String query,
boolean cacheable,
String cacheRegion,
Integer timeout,
Integer fetchSize,
FlushMode flushMode,
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.
|
NamedSQLQueryDefinition(String query,
String resultSetRef,
List<String> querySpaces,
boolean cacheable,
String cacheRegion,
Integer timeout,
Integer fetchSize,
FlushMode flushMode,
Map parameterTypes,
boolean callable)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
FlushMode |
AbstractDelegateSessionImplementor.getFlushMode() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractDelegateSessionImplementor.setFlushMode(FlushMode fm) |
Modifier and Type | Method and Description |
---|---|
AuditQuery |
AuditQuery.setFlushMode(FlushMode flushMode) |
Modifier and Type | Method and Description |
---|---|
AuditQuery |
AbstractAuditQuery.setFlushMode(FlushMode flushMode) |
Modifier and Type | Method and Description |
---|---|
FlushMode |
SessionImpl.getFlushMode() |
FlushMode |
StatelessSessionImpl.getFlushMode() |
Modifier and Type | Method and Description |
---|---|
Criteria |
CriteriaImpl.setFlushMode(FlushMode flushMode) |
Criteria |
CriteriaImpl.Subcriteria.setFlushMode(FlushMode flushMode) |
Query |
AbstractQueryImpl.setFlushMode(FlushMode flushMode) |
void |
SessionImpl.setFlushMode(FlushMode flushMode) |
void |
StatelessSessionImpl.setFlushMode(FlushMode fm) |
Constructor and Description |
---|
AbstractQueryImpl(String queryString,
FlushMode flushMode,
SessionImplementor session,
ParameterMetadata parameterMetadata) |
QueryImpl(String queryString,
FlushMode flushMode,
SessionImplementor session,
ParameterMetadata parameterMetadata) |
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved