Uses of Class
org.hibernate.LockOptions
-
Packages that use LockOptions Package Description org.hibernate org.hibernate.boot.query org.hibernate.boot.spi org.hibernate.cfg.annotations org.hibernate.dialect org.hibernate.dialect.pagination Support for Dialect-specific pagination strategiesorg.hibernate.engine.spi org.hibernate.event.spi org.hibernate.loader.access org.hibernate.loader.ast.spi org.hibernate.loader.entity org.hibernate.persister.entity org.hibernate.query org.hibernate.query.hql.spi org.hibernate.query.spi org.hibernate.query.sql.spi org.hibernate.query.sqm.spi SPI-level SQM contractsorg.hibernate.sql org.hibernate.sql.ast.spi Package defining support for creating and consuming SQL AST -
-
Uses of LockOptions in org.hibernate
Fields in org.hibernate declared as LockOptions Modifier and Type Field 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).Methods in org.hibernate that return LockOptions Modifier and Type Method 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 theLockMode
to be used for a specific query alias.LockOptions
LockOptions. setFollowOnLocking(Boolean followOnLocking)
Set the follow-on-locking setting.LockOptions
LockOptions. setLockMode(LockMode lockMode)
Set the overallLockMode
to be used.LockOptions
LockOptions. setScope(boolean scope)
Set the scope.LockOptions
LockOptions. setTimeOut(int timeout)
Set the timeout setting.Methods in org.hibernate with parameters of type LockOptions Modifier and Type Method Description Session.LockRequest
Session. buildLockRequest(LockOptions lockOptions)
Build a newlock request
that specifies: theLockMode
to use, the pessimistic lock timeout, and the scope of the lock.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)
Deprecated.Object
Session. load(String entityName, Object id, LockOptions lockOptions)
Deprecated.void
LockOptions. overlay(LockOptions lockOptions)
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.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)
NamedNativeQueryDefinitionBuilder
NamedNativeQueryDefinitionBuilder. 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.cfg.annotations
Methods in org.hibernate.cfg.annotations that return LockOptions Modifier and Type Method Description LockOptions
QueryHintDefinition. determineLockOptions(NamedQuery namedQueryAnnotation)
-
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 the from clause.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 by applying the appropriate updates for the specified lock modes and key columns.String
SpannerDialect. applyLocksToSql(String sql, LockOptions aliasedLockOptions, Map<String,String[]> keyColumnNames)
String
SybaseASEDialect. 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 column_list
fragment appropriate for this dialect given the aliases of the columns to be write locked.String
Dialect. getForUpdateString(LockOptions lockOptions)
Given LockOptions (lockMode, timeout), determine the appropriate for update fragment to use.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.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)
Session.LockRequest
SessionLazyDelegator. buildLockRequest(LockOptions lockOptions)
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. 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.event.spi
Fields in org.hibernate.event.spi declared as LockOptions Modifier and Type Field Description static LockOptions
LoadEvent. DEFAULT_LOCK_OPTIONS
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.loader.access
Methods in org.hibernate.loader.access that return LockOptions Modifier and Type Method Description LockOptions
BaseNaturalIdLoadAccessImpl. getLockOptions()
LockOptions
SimpleNaturalIdLoadAccessImpl. getLockOptions()
Methods in org.hibernate.loader.access 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.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.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)
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.entity
Methods in org.hibernate.loader.entity with parameters of type LockOptions Modifier and Type Method Description CacheEntityLoaderHelper.PersistenceContextEntry
CacheEntityLoaderHelper. loadFromSessionCache(EntityKey keyToLoad, LoadEventListener.LoadType options, LockOptions lockOptions, SharedSessionContractImplementor session)
-
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, SharedSessionContractImplementor session)
void
EntityPersister. lock(Object id, Object version, Object object, LockOptions lockOptions, SharedSessionContractImplementor session)
Do a version check (optional operation) -
Uses of LockOptions in org.hibernate.query
Methods in org.hibernate.query that return LockOptions Modifier and Type Method Description LockOptions
Query. getLockOptions()
Obtains theLockOptions
in effect for this query.LockOptions
SelectionQuery. getLockOptions()
The LockOptions 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)
Set the lock options for the query. -
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.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.spi
Methods in org.hibernate.query.sql.spi that return LockOptions Modifier and Type Method Description default LockOptions
NativeQueryImplementor. getLockOptions()
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.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)
-