Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.boot.query | |
org.hibernate.boot.spi | |
org.hibernate.cfg.annotations | |
org.hibernate.dialect |
This package abstracts the SQL dialect of the underlying database.
|
org.hibernate.dialect.pagination |
Support for Dialect-specific pagination strategies
|
org.hibernate.engine.spi | |
org.hibernate.event.spi | |
org.hibernate.loader.access | |
org.hibernate.loader.ast.spi | |
org.hibernate.loader.entity | |
org.hibernate.persister.entity |
This package abstracts persistence mechanisms for
entities, and defines the Hibernate runtime
metamodel.
|
org.hibernate.query | |
org.hibernate.query.hql.spi | |
org.hibernate.query.spi | |
org.hibernate.query.sql.spi | |
org.hibernate.sql |
This package defines helper classes for rendering SQL
fragments and SQL statements.
|
org.hibernate.sql.ast.spi |
Package defining support for creating and consuming SQL AST
|
Modifier and Type | Field and Description |
---|---|
static LockOptions |
LockOptions.NONE
Represents LockMode.NONE (timeout + scope do not apply).
|
static LockOptions |
LockOptions.READ
Represents LockMode.READ (timeout + scope do not apply).
|
static LockOptions |
LockOptions.UPGRADE
Represents LockMode.UPGRADE (will wait forever for lock and scope of false meaning only entity is locked).
|
Modifier and Type | Method and Description |
---|---|
static LockOptions |
LockOptions.copy(LockOptions source,
LockOptions destination)
Perform a shallow copy.
|
LockOptions |
LockOptions.makeCopy()
Make a copy.
|
LockOptions |
LockOptions.setAliasSpecificLockMode(String alias,
LockMode lockMode)
Specify the
LockMode to be used for a specific query alias. |
LockOptions |
LockOptions.setFollowOnLocking(Boolean followOnLocking)
Set the the follow-on-locking setting.
|
LockOptions |
LockOptions.setLockMode(LockMode lockMode)
Set the overall
LockMode to be used. |
LockOptions |
LockOptions.setScope(boolean scope)
Set the scope.
|
LockOptions |
LockOptions.setTimeOut(int timeout)
Set the timeout setting.
|
Modifier and Type | Method and Description |
---|---|
Session.LockRequest |
Session.buildLockRequest(LockOptions lockOptions)
Build a LockRequest that specifies the LockMode, pessimistic lock timeout and lock scope.
|
static LockOptions |
LockOptions.copy(LockOptions source,
LockOptions destination)
Perform a shallow copy.
|
<T> T |
Session.get(Class<T> entityType,
Object id,
LockOptions lockOptions)
Return the persistent instance of the given entity class with the given identifier,
or null if there is no such persistent instance.
|
Object |
Session.get(String entityName,
Object id,
LockOptions lockOptions)
Return the persistent instance of the given entity class with the given identifier,
or null if there is no such persistent instance.
|
<T> T |
Session.load(Class<T> theClass,
Object id,
LockOptions lockOptions)
Return the persistent instance of the given entity class with the given identifier,
obtaining the specified lock mode, assuming the instance exists.
|
Object |
Session.load(String entityName,
Object id,
LockOptions lockOptions)
Return the persistent instance of the given entity class with the given identifier,
obtaining the specified lock mode, assuming the instance exists.
|
void |
Session.refresh(Object object,
LockOptions lockOptions)
Re-read the state of the given instance from the underlying database, with
the given LockMode.
|
void |
Session.refresh(String entityName,
Object object,
LockOptions lockOptions)
Re-read the state of the given instance from the underlying database, with
the given LockMode.
|
SimpleNaturalIdLoadAccess<T> |
SimpleNaturalIdLoadAccess.with(LockOptions lockOptions)
Specify the
LockOptions to use when retrieving the entity. |
MultiIdentifierLoadAccess<T> |
MultiIdentifierLoadAccess.with(LockOptions lockOptions)
Specify the
LockOptions to use when retrieving the entity. |
NaturalIdMultiLoadAccess<T> |
NaturalIdMultiLoadAccess.with(LockOptions lockOptions)
Specify the
LockOptions to use when retrieving the entity. |
NaturalIdLoadAccess<T> |
NaturalIdLoadAccess.with(LockOptions lockOptions)
Specify the
LockOptions to use when retrieving the entity. |
IdentifierLoadAccess<T> |
IdentifierLoadAccess.with(LockOptions lockOptions)
Specify the
LockOptions to use when retrieving the entity. |
Modifier and Type | Method and Description |
---|---|
LockOptions |
AbstractNamedQueryBuilder.getLockOptions() |
Modifier and Type | Method and Description |
---|---|
NamedNativeQueryDefinitionBuilder |
NamedNativeQueryDefinitionBuilder.setLockOptions(LockOptions lockOptions) |
T |
AbstractNamedQueryBuilder.setLockOptions(LockOptions lockOptions) |
Modifier and Type | Method and Description |
---|---|
LockOptions |
AbstractNamedQueryDefinition.getLockOptions() |
Constructor and Description |
---|
AbstractNamedQueryDefinition(String name,
Boolean cacheable,
String cacheRegion,
CacheMode cacheMode,
FlushMode flushMode,
Boolean readOnly,
LockOptions lockOptions,
Integer timeout,
Integer fetchSize,
String comment,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
LockOptions |
QueryHintDefinition.determineLockOptions(NamedQuery namedQueryAnnotation) |
Modifier and Type | Method and Description |
---|---|
String |
AbstractTransactSQLDialect.appendLockHint(LockOptions lockOptions,
String tableName) |
String |
Dialect.appendLockHint(LockOptions lockOptions,
String tableName)
Deprecated.
This was moved to
AbstractSqlAstTranslator |
String |
SQLServerDialect.appendLockHint(LockOptions lockOptions,
String tableName) |
String |
SybaseASEDialect.appendLockHint(LockOptions mode,
String tableName) |
String |
SpannerDialect.applyLocksToSql(String sql,
LockOptions aliasedLockOptions,
Map<String,String[]> keyColumnNames) |
String |
AbstractTransactSQLDialect.applyLocksToSql(String sql,
LockOptions aliasedLockOptions,
Map<String,String[]> keyColumnNames) |
String |
Dialect.applyLocksToSql(String sql,
LockOptions aliasedLockOptions,
Map<String,String[]> keyColumnNames)
Modifies the given SQL by applying the appropriate updates for the specified
lock modes and key columns.
|
String |
SybaseASEDialect.applyLocksToSql(String sql,
LockOptions aliasedLockOptions,
Map<String,String[]> keyColumnNames) |
String |
SpannerDialect.getForUpdateString(LockOptions lockOptions) |
String |
Dialect.getForUpdateString(LockOptions lockOptions)
Given LockOptions (lockMode, timeout), determine the appropriate for update fragment to use.
|
String |
CockroachDialect.getForUpdateString(LockOptions lockOptions) |
String |
AbstractHANADialect.getForUpdateString(String aliases,
LockOptions lockOptions) |
String |
SpannerDialect.getForUpdateString(String aliases,
LockOptions lockOptions) |
String |
PostgreSQLDialect.getForUpdateString(String aliases,
LockOptions lockOptions) |
String |
Dialect.getForUpdateString(String aliases,
LockOptions lockOptions)
Get the FOR UPDATE OF column_list fragment appropriate for this
dialect given the aliases of the columns to be write locked.
|
String |
CockroachDialect.getForUpdateString(String aliases,
LockOptions lockOptions) |
Modifier and Type | Method and Description |
---|---|
protected String |
Oracle12LimitHandler.processSql(String sql,
boolean hasFirstRow,
LockOptions lockOptions) |
Modifier and Type | Method and Description |
---|---|
LockOptions |
QueryParameters.getLockOptions() |
Modifier and Type | Method and Description |
---|---|
Session.LockRequest |
SessionDelegatorBaseImpl.buildLockRequest(LockOptions lockOptions) |
RuntimeException |
ExceptionConverter.convert(HibernateException e,
LockOptions lockOptions)
Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA specification makes use
of exceptions outside its exception hierarchy, though they are all runtime exceptions.
|
RuntimeException |
ExceptionConverter.convert(RuntimeException e,
LockOptions lockOptions) |
<T> T |
SessionDelegatorBaseImpl.get(Class<T> theClass,
Object id,
LockOptions lockOptions) |
Object |
SessionDelegatorBaseImpl.get(String entityName,
Object id,
LockOptions lockOptions) |
<T> T |
SessionDelegatorBaseImpl.load(Class<T> theClass,
Object id,
LockOptions lockOptions) |
Object |
SessionDelegatorBaseImpl.load(String entityName,
Object id,
LockOptions lockOptions) |
void |
SessionDelegatorBaseImpl.refresh(Object object,
LockOptions lockOptions) |
void |
SessionDelegatorBaseImpl.refresh(String entityName,
Object object,
LockOptions lockOptions) |
void |
QueryParameters.setLockOptions(LockOptions lockOptions) |
Constructor and Description |
---|
QueryParameters(QueryParameterBindings queryParameterBindings,
LockOptions lockOptions,
QueryOptions queryOptions,
Serializable[] collectionKeys,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
ResultTransformer resultTransformer) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
String cacheRegion,
String comment,
List<String> queryHints,
boolean isLookupByNaturalKey,
ResultTransformer transformer) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
Map<String,TypedValue> namedParameters,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
String cacheRegion,
String comment,
List<String> queryHints,
Serializable[] collectionKeys,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
ResultTransformer transformer) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
Map<String,TypedValue> namedParameters,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
String cacheRegion,
String comment,
List<String> queryHints,
Serializable[] collectionKeys,
ResultTransformer transformer) |
Modifier and Type | Field and Description |
---|---|
static LockOptions |
LoadEvent.DEFAULT_LOCK_OPTIONS |
Modifier and Type | Method and Description |
---|---|
LockOptions |
LockEvent.getLockOptions() |
LockOptions |
LoadEvent.getLockOptions() |
LockOptions |
ResolveNaturalIdEvent.getLockOptions() |
LockOptions |
RefreshEvent.getLockOptions() |
Constructor and Description |
---|
LoadEvent(Object entityId,
String entityClassName,
LockOptions lockOptions,
EventSource source,
Boolean readOnly) |
LockEvent(Object object,
LockOptions lockOptions,
EventSource source) |
LockEvent(String entityName,
Object original,
LockOptions lockOptions,
EventSource source) |
RefreshEvent(Object object,
LockOptions lockOptions,
EventSource source) |
RefreshEvent(String entityName,
Object object,
LockOptions lockOptions,
EventSource source) |
ResolveNaturalIdEvent(Map<String,Object> naturalIdValues,
EntityPersister entityPersister,
LockOptions lockOptions,
EventSource source) |
Modifier and Type | Method and Description |
---|---|
LockOptions |
SimpleNaturalIdLoadAccessImpl.getLockOptions() |
LockOptions |
BaseNaturalIdLoadAccessImpl.getLockOptions() |
Modifier and Type | Method and Description |
---|---|
NaturalIdLoadAccessImpl<T> |
NaturalIdLoadAccessImpl.with(LockOptions lockOptions) |
IdentifierLoadAccessImpl<T> |
IdentifierLoadAccessImpl.with(LockOptions lockOptions) |
SimpleNaturalIdLoadAccessImpl<T> |
SimpleNaturalIdLoadAccessImpl.with(LockOptions lockOptions) |
BaseNaturalIdLoadAccessImpl<T> |
BaseNaturalIdLoadAccessImpl.with(LockOptions lockOptions) |
Modifier and Type | Method and Description |
---|---|
LockOptions |
MultiLoadOptions.getLockOptions()
Specify the lock options applied during loading.
|
LockOptions |
NaturalIdLoadOptions.getLockOptions()
The locking options for the loaded entity
|
Modifier and Type | Method and Description |
---|---|
T |
SingleUniqueKeyEntityLoader.load(Object ukValue,
LockOptions lockOptions,
Boolean readOnly,
SharedSessionContractImplementor session)
Load by unique key value
|
T |
SingleEntityLoader.load(Object key,
LockOptions lockOptions,
Boolean readOnly,
SharedSessionContractImplementor session)
Load an entity by a primary or unique key value.
|
T |
SingleIdEntityLoader.load(Object pkValue,
LockOptions lockOptions,
Boolean readOnly,
SharedSessionContractImplementor session)
Load by primary key value
|
default T |
SingleEntityLoader.load(Object key,
LockOptions lockOptions,
SharedSessionContractImplementor session) |
T |
SingleIdEntityLoader.load(Object pkValue,
Object entityInstance,
LockOptions lockOptions,
Boolean readOnly,
SharedSessionContractImplementor session)
Load by primary key value, populating the passed entity instance.
|
default T |
SingleIdEntityLoader.load(Object pkValue,
Object entityInstance,
LockOptions lockOptions,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
CacheEntityLoaderHelper.PersistenceContextEntry |
CacheEntityLoaderHelper.loadFromSessionCache(EntityKey keyToLoad,
LoadEventListener.LoadType options,
LockOptions lockOptions,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
Object |
EntityPersister.load(Object id,
Object optionalObject,
LockOptions lockOptions,
SharedSessionContractImplementor session)
Load an instance of the persistent class.
|
Object |
AbstractEntityPersister.load(Object id,
Object optionalObject,
LockOptions lockOptions,
SharedSessionContractImplementor session)
Load an instance using either the forUpdateLoader or the outer joining loader,
depending upon the value of the lock parameter
|
default Object |
EntityPersister.load(Object id,
Object optionalObject,
LockOptions lockOptions,
SharedSessionContractImplementor session,
Boolean readOnly) |
Object |
AbstractEntityPersister.load(Object id,
Object optionalObject,
LockOptions lockOptions,
SharedSessionContractImplementor session,
Boolean readOnly) |
Object |
EntityPersister.loadEntityIdByNaturalId(Object[] naturalIdValues,
LockOptions lockOptions,
SharedSessionContractImplementor session)
Load the id for the entity based on the natural id.
|
Object |
AbstractEntityPersister.loadEntityIdByNaturalId(Object[] naturalIdValues,
LockOptions lockOptions,
SharedSessionContractImplementor session) |
void |
EntityPersister.lock(Object id,
Object version,
Object object,
LockOptions lockOptions,
SharedSessionContractImplementor session)
Do a version check (optional operation)
|
void |
AbstractEntityPersister.lock(Object id,
Object version,
Object object,
LockOptions lockOptions,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
LockOptions |
Query.getLockOptions()
Obtains the LockOptions in effect for this query.
|
Modifier and Type | Method and Description |
---|---|
NativeQuery<T> |
NativeQuery.setLockOptions(LockOptions lockOptions) |
Query<R> |
Query.setLockOptions(LockOptions lockOptions)
Set the lock options for the query.
|
Modifier and Type | Field and Description |
---|---|
protected LockOptions |
NamedHqlQueryMemento.Builder.lockOptions |
Modifier and Type | Method and Description |
---|---|
LockOptions |
NamedHqlQueryMemento.getLockOptions() |
Modifier and Type | Method and Description |
---|---|
NamedHqlQueryMemento.Builder |
NamedHqlQueryMemento.Builder.setLockOptions(LockOptions lockOptions) |
Modifier and Type | Method and Description |
---|---|
LockOptions |
AbstractQuery.getLockOptions() |
LockOptions |
QueryOptions.getLockOptions()
Describes the locking to apply to the query results
|
LockOptions |
SqlOmittingQueryOptions.getLockOptions() |
LockOptions |
QueryOptionsAdapter.getLockOptions() |
LockOptions |
DelegatingQueryOptions.getLockOptions() |
Modifier and Type | Method and Description |
---|---|
QueryImplementor<R> |
AbstractQuery.setLockOptions(LockOptions lockOptions) |
Modifier and Type | Method and Description |
---|---|
default LockOptions |
NativeQueryImplementor.getLockOptions() |
Modifier and Type | Method and Description |
---|---|
NativeQueryImplementor<R> |
NativeQueryImplementor.setLockOptions(LockOptions lockOptions) |
Modifier and Type | Field and Description |
---|---|
protected LockOptions |
Select.lockOptions |
protected LockOptions |
SimpleSelect.lockOptions |
Modifier and Type | Method and Description |
---|---|
LockOptions |
Select.getLockOptions()
Get the current lock options
|
Modifier and Type | Method and Description |
---|---|
Select |
Select.setLockOptions(LockOptions lockOptions)
Set the lock options
|
SimpleSelect |
SimpleSelect.setLockOptions(LockOptions lockOptions) |
Constructor and Description |
---|
ForUpdateFragment(Dialect dialect,
LockOptions lockOptions,
Map<String,String[]> keyColumnNames) |
Modifier and Type | Method and Description |
---|---|
protected LockOptions |
AbstractSqlAstTranslator.getLockOptions() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractSqlAstTranslator.ForUpdateClause.merge(LockOptions lockOptions) |
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.