Uses of Class
org.hibernate.LockOptions
-
Packages that use LockOptions Package Description org.hibernate This package defines the central Hibernate APIs, beginning withSessionFactory
, which represents an instance of Hibernate at runtime and is the source of new instances ofSession
andStatelessSession
, the most important APIs exposing persistence-related operations for entities.org.hibernate.boot.internal org.hibernate.boot.model.internal org.hibernate.boot.query Support for handling named queries during the bootstrap process.org.hibernate.boot.spi A range of SPIs allowing integration with—and customization of—the process of building metadata.org.hibernate.dialect This package abstracts over the multifarious dialects of SQL understood by the databases supported by Hibernate.org.hibernate.dialect.pagination Support forDialect
-specific pagination strategies.org.hibernate.engine.jdbc.mutation.internal org.hibernate.engine.spi This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.org.hibernate.envers.query.internal.impl org.hibernate.event.internal This package defines a default set of event listeners that implement the default behaviors of Hibernate session operations.org.hibernate.event.spi Defines the event types and event listener interfaces for events produced by the statefulSession
.org.hibernate.internal An internal package containing implementations of central Hibernate APIs, mostly defined inorg.hibernate
.org.hibernate.internal.util.collections org.hibernate.jpa.internal.util org.hibernate.loader.ast.internal org.hibernate.loader.ast.spi org.hibernate.loader.internal org.hibernate.persister.entity This package abstracts persistence mechanisms for entities.org.hibernate.procedure.internal Defines the internal implementation of the stored procedure SPI.org.hibernate.query Everything related to HQL/JPQL, native SQL, and criteria queries.org.hibernate.query.criteria.internal org.hibernate.query.hql.internal Implementation of the SPIs for HQL support.org.hibernate.query.hql.spi SPIs for HQL support.org.hibernate.query.internal org.hibernate.query.spi Contains a range of internal abstractions for dealing with query execution, query plans, query options, and query parameters.org.hibernate.query.sql.internal Implementation of the SPIs for native SQL query support.org.hibernate.query.sql.spi SPIs for native SQL query support.org.hibernate.query.sqm.internal Package for the SQM-backed Query implementation detailsorg.hibernate.query.sqm.spi SPI-level SQM contractsorg.hibernate.sql This package contains helper classes for rendering SQL fragments and SQL statements.org.hibernate.sql.ast.spi Package defining support for creating and consuming a SQL AST.org.hibernate.sql.results.internal org.hibernate.sql.results.jdbc.internal -
-
Uses of LockOptions in org.hibernate
Fields in org.hibernate declared as LockOptions Modifier and Type Field Description static LockOptions
LockOptions. NONE
RepresentsLockMode.NONE
, to which timeout and scope are not applicable.static LockOptions
LockOptions. READ
RepresentsLockMode.READ
, to which timeout and scope are not applicable.static LockOptions
LockOptions. UPGRADE
RepresentsLockMode.PESSIMISTIC_WRITE
with no timeout, and no extension of the lock to owned collections.Methods in org.hibernate that return LockOptions Modifier and Type Method Description static LockOptions
LockOptions. copy(LockOptions source, LockOptions destination)
Copy the options in the first given instance ofLockOptions
to the second given instance.LockOptions
LockOptions. makeCopy()
Make a copy.LockOptions
LockOptions. setAliasSpecificLockMode(String alias, LockMode lockMode)
Specify theLockMode
to be used for the given query alias.LockOptions
LockOptions. setFollowOnLocking(Boolean followOnLocking)
Force enable or disable the use of follow-on locking, overriding the default behavior of the SQL dialect.LockOptions
LockOptions. setLockMode(LockMode lockMode)
Set the overall lock mode.LockOptions
LockOptions. setLockScope(PessimisticLockScope scope)
Set the lock scope:PessimisticLockScope.EXTENDED
means the lock extends to rows of owned collections, butPessimisticLockScope.NORMAL
means only the entity table and secondary tables are locked.LockOptions
LockOptions. setScope(boolean scope)
Deprecated.LockOptions
LockOptions. setTimeOut(int timeout)
Set the timeout, that is, the maximum amount of time in milliseconds that the database should wait to obtain a pessimistic lock before returning an error to the client.LockOptions
LockMode. toLockOptions()
Methods in org.hibernate with parameters of type LockOptions Modifier and Type Method Description Session.LockRequest
Session. buildLockRequest(LockOptions lockOptions)
Deprecated.static LockOptions
LockOptions. copy(LockOptions source, LockOptions destination)
Copy the options in the first given instance ofLockOptions
to the second given instance.<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)
Deprecated.Object
Session. load(String entityName, Object id, LockOptions lockOptions)
Deprecated.void
Session. lock(Object object, LockOptions lockOptions)
Obtain a lock on the given managed instance associated with this session, using the givenlock options
.void
LockOptions. overlay(LockOptions lockOptions)
Copy the given lock options into this instance, merging the alias-specific lock modes.void
Session. refresh(Object object, LockOptions lockOptions)
Reread the state of the given managed instance from the underlying database, obtaining the givenLockMode
.void
Session. refresh(String entityName, Object object, LockOptions lockOptions)
Deprecated.IdentifierLoadAccess<T>
IdentifierLoadAccess. with(LockOptions lockOptions)
Specify theLockOptions
to use when retrieving the entity.MultiIdentifierLoadAccess<T>
MultiIdentifierLoadAccess. with(LockOptions lockOptions)
Specify theLockOptions
to use when retrieving the entity.NaturalIdLoadAccess<T>
NaturalIdLoadAccess. with(LockOptions lockOptions)
Specify theLockOptions
to use when retrieving the entity.NaturalIdMultiLoadAccess<T>
NaturalIdMultiLoadAccess. with(LockOptions lockOptions)
Specify theLockOptions
to use when retrieving the entity.SimpleNaturalIdLoadAccess<T>
SimpleNaturalIdLoadAccess. with(LockOptions lockOptions)
Specify theLockOptions
to use when retrieving the entity. -
Uses of LockOptions in org.hibernate.boot.internal
Constructors in org.hibernate.boot.internal with parameters of type LockOptions Constructor Description NamedHqlQueryDefinitionImpl(String name, String hqlString, Integer firstResult, Integer maxResults, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, LockOptions lockOptions, Integer timeout, Integer fetchSize, String comment, Map<String,String> parameterTypes, Map<String,Object> hints)
-
Uses of LockOptions in org.hibernate.boot.model.internal
Methods in org.hibernate.boot.model.internal that return LockOptions Modifier and Type Method Description LockOptions
QueryHintDefinition. determineLockOptions(NamedQuery namedQueryAnnotation)
-
Uses of LockOptions in org.hibernate.boot.query
Methods in org.hibernate.boot.query that return LockOptions Modifier and Type Method Description LockOptions
AbstractNamedQueryBuilder. getLockOptions()
Methods in org.hibernate.boot.query with parameters of type LockOptions Modifier and Type Method Description T
AbstractNamedQueryBuilder. setLockOptions(LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi that return LockOptions Modifier and Type Method Description LockOptions
AbstractNamedQueryDefinition. getLockOptions()
Constructors in org.hibernate.boot.spi with parameters of type LockOptions Constructor 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)
-
Uses of LockOptions in org.hibernate.dialect
Methods in org.hibernate.dialect with parameters of type LockOptions Modifier and Type Method Description String
AbstractTransactSQLDialect. appendLockHint(LockOptions lockOptions, String tableName)
String
Dialect. appendLockHint(LockOptions lockOptions, String tableName)
Some dialects support an alternative means toSELECT FOR UPDATE
, whereby a "lock hint" is appended to the table name in thefrom
clause.String
DialectDelegateWrapper. appendLockHint(LockOptions lockOptions, String tableName)
String
SQLServerDialect. appendLockHint(LockOptions lockOptions, String tableName)
String
SybaseASEDialect. appendLockHint(LockOptions mode, String tableName)
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, applying the appropriate updates for the specified lock modes and key columns.String
DialectDelegateWrapper. applyLocksToSql(String sql, LockOptions aliasedLockOptions, Map<String,String[]> keyColumnNames)
String
SpannerDialect. applyLocksToSql(String sql, LockOptions aliasedLockOptions, Map<String,String[]> keyColumnNames)
String
AbstractHANADialect. getForUpdateString(String aliases, LockOptions lockOptions)
String
CockroachDialect. getForUpdateString(String aliases, LockOptions lockOptions)
String
CockroachDialect. getForUpdateString(LockOptions lockOptions)
String
Dialect. getForUpdateString(String aliases, LockOptions lockOptions)
Get theFOR UPDATE OF
orFOR SHARE OF
fragment appropriate for this dialect, given the aliases of the columns to be locked.String
Dialect. getForUpdateString(LockOptions lockOptions)
Given a set ofLockOptions
(lock level, timeout), determine the appropriatefor update
fragment to use to obtain the lock.String
DialectDelegateWrapper. getForUpdateString(String aliases, LockOptions lockOptions)
String
DialectDelegateWrapper. getForUpdateString(LockOptions lockOptions)
String
PostgreSQLDialect. getForUpdateString(String aliases, LockOptions lockOptions)
String
SpannerDialect. getForUpdateString(String aliases, LockOptions lockOptions)
String
SpannerDialect. getForUpdateString(LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.dialect.pagination
Methods in org.hibernate.dialect.pagination with parameters of type LockOptions Modifier and Type Method Description protected String
Oracle12LimitHandler. processSql(String sql, boolean hasFirstRow, LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.engine.jdbc.mutation.internal
Methods in org.hibernate.engine.jdbc.mutation.internal that return LockOptions Modifier and Type Method Description LockOptions
MutationQueryOptions. getLockOptions()
-
Uses of LockOptions in org.hibernate.engine.spi
Fields in org.hibernate.engine.spi with type parameters of type LockOptions Modifier and Type Field Description static CascadingAction<LockOptions>
CascadingActions. LOCK
Methods in org.hibernate.engine.spi with parameters of type LockOptions Modifier and Type Method Description Session.LockRequest
SessionDelegatorBaseImpl. buildLockRequest(LockOptions lockOptions)
Deprecated.Session.LockRequest
SessionLazyDelegator. buildLockRequest(LockOptions lockOptions)
Deprecated.RuntimeException
ExceptionConverter. convert(RuntimeException e, 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.<T> T
SessionDelegatorBaseImpl. get(Class<T> theClass, Object id, LockOptions lockOptions)
Object
SessionDelegatorBaseImpl. get(String entityName, Object id, LockOptions lockOptions)
<T> T
SessionLazyDelegator. get(Class<T> entityType, Object id, LockOptions lockOptions)
Object
SessionLazyDelegator. 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)
<T> T
SessionLazyDelegator. load(Class<T> theClass, Object id, LockOptions lockOptions)
Deprecated.Object
SessionLazyDelegator. load(String entityName, Object id, LockOptions lockOptions)
Deprecated.void
SessionDelegatorBaseImpl. lock(Object object, LockOptions lockOptions)
void
SessionDelegatorBaseImpl. lock(String entityName, Object object, LockOptions lockOptions)
void
SessionImplementor. lock(String entityName, Object child, LockOptions lockOptions)
Cascade the lock operation to the given child entity.void
SessionLazyDelegator. lock(Object object, LockOptions lockOptions)
void
SessionDelegatorBaseImpl. refresh(Object object, LockOptions lockOptions)
void
SessionDelegatorBaseImpl. refresh(String entityName, Object object, LockOptions lockOptions)
void
SessionLazyDelegator. refresh(Object object, LockOptions lockOptions)
void
SessionLazyDelegator. refresh(String entityName, Object object, LockOptions lockOptions)
Deprecated. -
Uses of LockOptions in org.hibernate.envers.query.internal.impl
Methods in org.hibernate.envers.query.internal.impl with parameters of type LockOptions Modifier and Type Method Description AuditQuery
AbstractAuditQuery. setLockOptions(LockOptions lockOptions)
Set lock options -
Uses of LockOptions in org.hibernate.event.internal
Methods in org.hibernate.event.internal with parameters of type LockOptions Modifier and Type Method Description protected void
AbstractLockUpgradeEventListener. upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource source)
Performs a pessimistic lock upgrade on a given entity, if needed. -
Uses of LockOptions in org.hibernate.event.spi
Methods in org.hibernate.event.spi that return LockOptions Modifier and Type Method Description LockOptions
LoadEvent. getLockOptions()
LockOptions
LockEvent. getLockOptions()
LockOptions
RefreshEvent. getLockOptions()
LockOptions
ResolveNaturalIdEvent. getLockOptions()
Constructors in org.hibernate.event.spi with parameters of type LockOptions Constructor 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)
-
Uses of LockOptions in org.hibernate.internal
Methods in org.hibernate.internal that return LockOptions Modifier and Type Method Description LockOptions
NaturalIdMultiLoadAccessStandard. getLockOptions()
Methods in org.hibernate.internal with parameters of type LockOptions Modifier and Type Method Description Session.LockRequest
SessionImpl. buildLockRequest(LockOptions lockOptions)
Deprecated.RuntimeException
ExceptionConverterImpl. convert(RuntimeException exception, LockOptions lockOptions)
RuntimeException
ExceptionConverterImpl. convert(HibernateException exception, LockOptions lockOptions)
<T> T
SessionImpl. get(Class<T> entityClass, Object id, LockOptions lockOptions)
Object
SessionImpl. get(String entityName, Object id, LockOptions lockOptions)
<T> T
SessionImpl. load(Class<T> entityClass, Object id, LockOptions lockOptions)
Deprecated.Object
SessionImpl. load(String entityName, Object id, LockOptions lockOptions)
Deprecated.void
SessionImpl. lock(Object object, LockOptions lockOptions)
void
SessionImpl. lock(String entityName, Object object, LockOptions lockOptions)
void
SessionImpl. refresh(Object object, LockOptions lockOptions)
void
SessionImpl. refresh(String entityName, Object object, LockOptions lockOptions)
Deprecated.NaturalIdMultiLoadAccess<T>
NaturalIdMultiLoadAccessStandard. with(LockOptions lockOptions)
protected PersistenceException
ExceptionConverterImpl. wrapLockException(HibernateException e, LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.internal.util.collections
Methods in org.hibernate.internal.util.collections that return LockOptions Modifier and Type Method Description static LockOptions[]
ArrayHelper. fillArray(LockOptions lockOptions, int length)
Methods in org.hibernate.internal.util.collections with parameters of type LockOptions Modifier and Type Method Description static LockOptions[]
ArrayHelper. fillArray(LockOptions lockOptions, int length)
-
Uses of LockOptions in org.hibernate.jpa.internal.util
Method parameters in org.hibernate.jpa.internal.util with type arguments of type LockOptions Modifier and Type Method Description static void
LockOptionsHelper. applyPropertiesToLockOptions(Map<String,Object> props, Supplier<LockOptions> lockOptionsSupplier)
Applies configuration properties on aLockOptions
instance, passed as a supplier so to make it possible to skip allocating theLockOptions
instance if there's nothing to set. -
Uses of LockOptions in org.hibernate.loader.ast.internal
Methods in org.hibernate.loader.ast.internal that return LockOptions Modifier and Type Method Description LockOptions
LoaderSqlAstCreationState. getLockOptions()
protected LockOptions
SingleIdLoadPlan. getLockOptions()
Methods in org.hibernate.loader.ast.internal with parameters of type LockOptions Modifier and Type Method Description static SelectStatement
LoaderSelectBuilder. createSelect(Loadable loadable, List<? extends ModelPart> partsToSelect, List<ModelPart> restrictedParts, DomainResult<?> cachedDomainResult, int numberOfKeysToLoad, LoadQueryInfluencers loadQueryInfluencers, LockOptions lockOptions, Consumer<JdbcParameter> jdbcParameterConsumer, SessionFactoryImplementor sessionFactory)
static SelectStatement
LoaderSelectBuilder. createSelect(Loadable loadable, List<? extends ModelPart> partsToSelect, ModelPart restrictedPart, DomainResult<?> cachedDomainResult, int numberOfKeysToLoad, LoadQueryInfluencers loadQueryInfluencers, LockOptions lockOptions, Consumer<JdbcParameter> jdbcParameterConsumer, SessionFactoryImplementor sessionFactory)
Create an SQL AST select-statement based on matching one-or-more keysstatic SelectStatement
LoaderSelectBuilder. createSelectBySingleArrayParameter(Loadable loadable, ValuedModelPart restrictedPart, LoadQueryInfluencers influencers, LockOptions lockOptions, JdbcParameter jdbcArrayParameter, SessionFactoryImplementor sessionFactory)
Create a select-statement (SQL AST) for loading by multiple keys using a single SQL ARRAY parameterstatic SelectStatement
LoaderSelectBuilder. createSelectByUniqueKey(Loadable loadable, List<? extends ModelPart> partsToSelect, ModelPart restrictedPart, DomainResult<?> cachedDomainResult, LoadQueryInfluencers loadQueryInfluencers, LockOptions lockOptions, Consumer<JdbcParameter> jdbcParameterConsumer, SessionFactoryImplementor sessionFactory)
Create an SQL AST select-statement for loading by unique keystatic SelectStatement
LoaderSelectBuilder. createSubSelectFetchSelect(PluralAttributeMapping attributeMapping, SubselectFetch subselect, DomainResult<?> cachedDomainResult, LoadQueryInfluencers loadQueryInfluencers, LockOptions lockOptions, Consumer<JdbcParameter> jdbcParameterConsumer, SessionFactoryImplementor sessionFactory)
Create an SQL AST select-statement used for subselect-based CollectionLoaderprotected void
EntityBatchLoaderInPredicate. initializeEntities(Object[] idsToInitialize, Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
T
AbstractEntityBatchLoader. load(Object pkValue, Object entityInstance, LockOptions lockOptions, SharedSessionContractImplementor session)
T
EntityBatchLoaderArrayParam. load(Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
T
EntityBatchLoaderArrayParam. load(Object pkValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
T
EntityBatchLoaderInPredicate. load(Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
T
EntityBatchLoaderInPredicate. load(Object pkValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
T
SingleIdEntityLoaderProvidedQueryImpl. load(Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
T
SingleIdEntityLoaderProvidedQueryImpl. load(Object pkValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
T
SingleIdEntityLoaderStandardImpl. load(Object key, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
T
SingleIdEntityLoaderStandardImpl. load(Object key, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
T
SingleUniqueKeyEntityLoaderStandard. load(Object ukValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
static <R,K>
List<R>LoaderHelper. loadByArrayParameter(K[] idsToInitialize, SelectStatement sqlAst, JdbcOperationQuerySelect jdbcOperation, JdbcParameter jdbcParameter, JdbcMapping arrayJdbcMapping, Object entityId, Object entityInstance, EntityMappingType rootEntityDescriptor, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Load one or more instances of a model part (an entity or collection) based on a SQL ARRAY parameter to specify the keys (as opposed to the more traditional SQL IN predicate approach).CacheEntityLoaderHelper.PersistenceContextEntry
CacheEntityLoaderHelper. loadFromSessionCache(EntityKey keyToLoad, LoadEventListener.LoadType options, LockOptions lockOptions, EventSource session)
protected <R,K>
K[]MultiIdEntityLoaderArrayParam. processResolvableEntities(K[] ids, MultiIdEntityLoaderArrayParam.ResolutionConsumer<R> resolutionConsumer, @NonNull MultiIdLoadOptions loadOptions, @NonNull LockOptions lockOptions, EventSource session)
SingleIdLoadPlan<T>
SingleIdEntityLoaderStandardImpl. resolveLoadPlan(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers, SessionFactoryImplementor sessionFactory)
static void
LoaderHelper. upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource session)
Ensure the LockMode associated with the entity in relation to a persistence context is great or equal to the requested mode.Constructors in org.hibernate.loader.ast.internal with parameters of type LockOptions Constructor Description LoaderSqlAstCreationState(QueryPart queryPart, SqlAliasBaseManager sqlAliasBaseManager, FromClauseAccess fromClauseAccess, LockOptions lockOptions, LoaderSqlAstCreationState.FetchProcessor fetchProcessor, boolean forceIdentifierSelection, LoadQueryInfluencers loadQueryInfluencers, SqlAstCreationContext sf)
MultiNaturalIdLoadingBatcher(EntityMappingType entityDescriptor, ModelPart restrictedPart, int batchSize, org.hibernate.loader.ast.internal.MultiNaturalIdLoadingBatcher.KeyValueResolver keyValueResolver, LoadQueryInfluencers loadQueryInfluencers, LockOptions lockOptions, SessionFactoryImplementor sessionFactory)
SingleIdArrayLoadPlan(EntityMappingType entityMappingType, ModelPart restrictivePart, SelectStatement sqlAst, JdbcParametersList jdbcParameters, LockOptions lockOptions, SessionFactoryImplementor sessionFactory)
SingleIdLoadPlan(EntityMappingType entityMappingType, ModelPart restrictivePart, SelectStatement sqlAst, JdbcParametersList jdbcParameters, LockOptions lockOptions, SessionFactoryImplementor sessionFactory)
-
Uses of LockOptions in org.hibernate.loader.ast.spi
Methods in org.hibernate.loader.ast.spi that return LockOptions Modifier and Type Method Description LockOptions
MultiLoadOptions. getLockOptions()
Specify the lock options applied during loading.LockOptions
NaturalIdLoadOptions. getLockOptions()
The locking options for the loaded entityMethods in org.hibernate.loader.ast.spi with parameters of type LockOptions Modifier and Type Method Description 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, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
default T
SingleIdEntityLoader. load(Object pkValue, Object entityInstance, LockOptions lockOptions, SharedSessionContractImplementor session)
Load by primary key value, populating the passed entity instance.T
SingleIdEntityLoader. load(Object pkValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Load by primary key valueT
SingleUniqueKeyEntityLoader. load(Object ukValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Load by unique key value -
Uses of LockOptions in org.hibernate.loader.internal
Methods in org.hibernate.loader.internal that return LockOptions Modifier and Type Method Description LockOptions
BaseNaturalIdLoadAccessImpl. getLockOptions()
LockOptions
SimpleNaturalIdLoadAccessImpl. getLockOptions()
Methods in org.hibernate.loader.internal with parameters of type LockOptions Modifier and Type Method Description BaseNaturalIdLoadAccessImpl<T>
BaseNaturalIdLoadAccessImpl. with(LockOptions lockOptions)
IdentifierLoadAccessImpl<T>
IdentifierLoadAccessImpl. with(LockOptions lockOptions)
NaturalIdLoadAccessImpl<T>
NaturalIdLoadAccessImpl. with(LockOptions lockOptions)
SimpleNaturalIdLoadAccessImpl<T>
SimpleNaturalIdLoadAccessImpl. with(LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity with parameters of type LockOptions Modifier and Type Method Description Object
AbstractEntityPersister. load(Object id, Object optionalObject, LockOptions lockOptions, SharedSessionContractImplementor session)
Load an instance using either theforUpdateLoader
or the outer joiningloader
, depending upon the value of thelock
parameterObject
AbstractEntityPersister. load(Object id, Object optionalObject, LockOptions lockOptions, SharedSessionContractImplementor session, Boolean readOnly)
Object
EntityPersister. load(Object id, Object optionalObject, LockOptions lockOptions, SharedSessionContractImplementor session)
Load an instance of the persistent class.default Object
EntityPersister. load(Object id, Object optionalObject, LockOptions lockOptions, SharedSessionContractImplementor session, Boolean readOnly)
Object
AbstractEntityPersister. loadEntityIdByNaturalId(Object[] naturalIdValues, LockOptions lockOptions, SharedSessionContractImplementor session)
Object
EntityPersister. loadEntityIdByNaturalId(Object[] naturalIdValues, LockOptions lockOptions, SharedSessionContractImplementor session)
Load the id for the entity based on the natural id.void
AbstractEntityPersister. lock(Object id, Object version, Object object, LockOptions lockOptions, EventSource session)
void
EntityPersister. lock(Object id, Object version, Object object, LockOptions lockOptions, EventSource session)
Do a version check (optional operation) -
Uses of LockOptions in org.hibernate.procedure.internal
Methods in org.hibernate.procedure.internal with parameters of type LockOptions Modifier and Type Method Description QueryImplementor<R>
ProcedureCallImpl. setLockOptions(LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.query
Methods in org.hibernate.query that return LockOptions Modifier and Type Method Description LockOptions
NativeQuery. getLockOptions()
LockOptions
Query. getLockOptions()
Obtains theLockOptions
in effect for this query.LockOptions
SelectionQuery. getLockOptions()
TheLockOptions
currently in effect for the queryMethods in org.hibernate.query with parameters of type LockOptions Modifier and Type Method Description NativeQuery<T>
NativeQuery. setLockOptions(LockOptions lockOptions)
Query<R>
Query. setLockOptions(LockOptions lockOptions)
Apply the given lock options to this query. -
Uses of LockOptions in org.hibernate.query.criteria.internal
Methods in org.hibernate.query.criteria.internal that return LockOptions Modifier and Type Method Description LockOptions
NamedCriteriaQueryMementoImpl. getLockOptions()
Constructors in org.hibernate.query.criteria.internal with parameters of type LockOptions Constructor Description NamedCriteriaQueryMementoImpl(String name, SqmStatement sqmStatement, Integer firstResult, Integer maxResults, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, LockOptions lockOptions, Integer timeout, Integer fetchSize, String comment, Map<String,String> parameterTypes, Map<String,Object> hints)
-
Uses of LockOptions in org.hibernate.query.hql.internal
Methods in org.hibernate.query.hql.internal that return LockOptions Modifier and Type Method Description LockOptions
NamedHqlQueryMementoImpl. getLockOptions()
Constructors in org.hibernate.query.hql.internal with parameters of type LockOptions Constructor Description NamedHqlQueryMementoImpl(String name, String hqlString, Integer firstResult, Integer maxResults, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, LockOptions lockOptions, Integer timeout, Integer fetchSize, String comment, Map<String,String> parameterTypes, Map<String,Object> hints)
-
Uses of LockOptions in org.hibernate.query.hql.spi
Methods in org.hibernate.query.hql.spi with parameters of type LockOptions Modifier and Type Method Description SqmQueryImplementor<R>
SqmQueryImplementor. setLockOptions(LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.query.internal
Methods in org.hibernate.query.internal that return LockOptions Modifier and Type Method Description LockOptions
NamedQueryHelper.NamedQueryDescriptorBuilder. getLockOptions()
LockOptions
QueryOptionsImpl. getLockOptions()
LockOptions
SimpleQueryOptions. getLockOptions()
Methods in org.hibernate.query.internal with parameters of type LockOptions Modifier and Type Method Description void
NamedQueryHelper.NamedQueryDescriptorBuilder. setLockOptions(LockOptions lockOptions)
Constructors in org.hibernate.query.internal with parameters of type LockOptions Constructor Description SimpleQueryOptions(LockOptions lockOptions, Boolean readOnlyEnabled)
-
Uses of LockOptions in org.hibernate.query.spi
Methods in org.hibernate.query.spi that return LockOptions Modifier and Type Method Description LockOptions
AbstractQuery. getLockOptions()
LockOptions
AbstractSelectionQuery. getLockOptions()
LockOptions
DelegatingQueryOptions. getLockOptions()
LockOptions
QueryOptions. getLockOptions()
Describes the locking to apply to the query resultsLockOptions
QueryOptionsAdapter. getLockOptions()
LockOptions
SqlOmittingQueryOptions. getLockOptions()
Methods in org.hibernate.query.spi with parameters of type LockOptions Modifier and Type Method Description QueryImplementor<R>
AbstractQuery. setLockOptions(LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.query.sql.internal
Methods in org.hibernate.query.sql.internal with parameters of type LockOptions Modifier and Type Method Description NativeQueryImplementor<R>
NativeQueryImpl. setLockOptions(LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.query.sql.spi
Methods in org.hibernate.query.sql.spi with parameters of type LockOptions Modifier and Type Method Description NativeQueryImplementor<R>
NativeQueryImplementor. setLockOptions(LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.query.sqm.internal
Methods in org.hibernate.query.sqm.internal that return LockOptions Modifier and Type Method Description LockOptions
QuerySqmImpl. getLockOptions()
Methods in org.hibernate.query.sqm.internal with parameters of type LockOptions Modifier and Type Method Description SqmQueryImplementor<R>
QuerySqmImpl. setLockOptions(LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.query.sqm.spi
Methods in org.hibernate.query.sqm.spi that return LockOptions Modifier and Type Method Description LockOptions
NamedSqmQueryMemento. getLockOptions()
-
Uses of LockOptions in org.hibernate.sql
Fields in org.hibernate.sql declared as LockOptions Modifier and Type Field Description protected LockOptions
SimpleSelect. lockOptions
Methods in org.hibernate.sql with parameters of type LockOptions Modifier and Type Method Description SimpleSelect
SimpleSelect. setLockOptions(LockOptions lockOptions)
Constructors in org.hibernate.sql with parameters of type LockOptions Constructor Description ForUpdateFragment(Dialect dialect, LockOptions lockOptions, Map<String,String[]> keyColumnNames)
-
Uses of LockOptions in org.hibernate.sql.ast.spi
Methods in org.hibernate.sql.ast.spi that return LockOptions Modifier and Type Method Description protected LockOptions
AbstractSqlAstTranslator. getLockOptions()
Methods in org.hibernate.sql.ast.spi with parameters of type LockOptions Modifier and Type Method Description void
AbstractSqlAstTranslator.ForUpdateClause. merge(LockOptions lockOptions)
-
Uses of LockOptions in org.hibernate.sql.results.internal
Methods in org.hibernate.sql.results.internal with parameters of type LockOptions Modifier and Type Method Description static <R> RowReader<R>
ResultsHelper. createRowReader(ExecutionContext executionContext, LockOptions lockOptions, RowTransformer<R> rowTransformer, Class<R> transformedResultJavaType, JdbcValues jdbcValues)
static <R> RowReader<R>
ResultsHelper. createRowReader(ExecutionContext executionContext, LockOptions lockOptions, RowTransformer<R> rowTransformer, Class<R> transformedResultJavaType, JdbcValuesMapping jdbcValuesMapping)
-
Uses of LockOptions in org.hibernate.sql.results.jdbc.internal
Methods in org.hibernate.sql.results.jdbc.internal with parameters of type LockOptions Modifier and Type Method Description protected LockMode
DeferredResultSetAccess. determineFollowOnLockMode(LockOptions lockOptions)
-