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.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 LockOptionsLockOptions. NONERepresents LockMode.NONE (timeout + scope do not apply).static LockOptionsLockOptions. READRepresents LockMode.READ (timeout + scope do not apply).static LockOptionsLockOptions. UPGRADERepresents 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 LockOptionsLockOptions. copy(LockOptions source, LockOptions destination)Perform a shallow copy.LockOptionsLockOptions. makeCopy()Make a copy.LockOptionsLockOptions. setAliasSpecificLockMode(String alias, LockMode lockMode)Specify theLockModeto be used for a specific query alias.LockOptionsLockOptions. setFollowOnLocking(Boolean followOnLocking)Set the the follow-on-locking setting.LockOptionsLockOptions. setLockMode(LockMode lockMode)Set the overallLockModeto be used.LockOptionsLockOptions. setScope(boolean scope)Set the scope.LockOptionsLockOptions. setTimeOut(int timeout)Set the timeout setting.Methods in org.hibernate with parameters of type LockOptions Modifier and Type Method Description Session.LockRequestSession. buildLockRequest(LockOptions lockOptions)Build a LockRequest that specifies the LockMode, pessimistic lock timeout and lock scope.static LockOptionsLockOptions. copy(LockOptions source, LockOptions destination)Perform a shallow copy.<T> TSession. 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.ObjectSession. 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> TSession. 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.ObjectSession. 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.voidSession. refresh(Object object, LockOptions lockOptions)Re-read the state of the given instance from the underlying database, with the given LockMode.voidSession. refresh(String entityName, Object object, LockOptions lockOptions)Re-read the state of the given instance from the underlying database, with the given LockMode.IdentifierLoadAccess<T>IdentifierLoadAccess. with(LockOptions lockOptions)Specify theLockOptionsto use when retrieving the entity.MultiIdentifierLoadAccess<T>MultiIdentifierLoadAccess. with(LockOptions lockOptions)Specify theLockOptionsto use when retrieving the entity.NaturalIdLoadAccess<T>NaturalIdLoadAccess. with(LockOptions lockOptions)Specify theLockOptionsto use when retrieving the entity.NaturalIdMultiLoadAccess<T>NaturalIdMultiLoadAccess. with(LockOptions lockOptions)Specify theLockOptionsto use when retrieving the entity.SimpleNaturalIdLoadAccess<T>SimpleNaturalIdLoadAccess. with(LockOptions lockOptions)Specify theLockOptionsto 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 LockOptionsAbstractNamedQueryBuilder. getLockOptions()Methods in org.hibernate.boot.query with parameters of type LockOptions Modifier and Type Method Description TAbstractNamedQueryBuilder. setLockOptions(LockOptions lockOptions)NamedNativeQueryDefinitionBuilderNamedNativeQueryDefinitionBuilder. 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 LockOptionsAbstractNamedQueryDefinition. 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 LockOptionsQueryHintDefinition. 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 StringAbstractTransactSQLDialect. appendLockHint(LockOptions lockOptions, String tableName)StringDialect. appendLockHint(LockOptions lockOptions, String tableName)Some dialects support an alternative means to SELECT FOR UPDATE, whereby a "lock hint" is appended to the table name in the from clause.StringSQLServerDialect. appendLockHint(LockOptions lockOptions, String tableName)StringSybaseASEDialect. appendLockHint(LockOptions mode, String tableName)StringAbstractTransactSQLDialect. applyLocksToSql(String sql, LockOptions aliasedLockOptions, Map<String,String[]> keyColumnNames)StringDialect. 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.StringSpannerDialect. applyLocksToSql(String sql, LockOptions aliasedLockOptions, Map<String,String[]> keyColumnNames)StringSybaseASEDialect. applyLocksToSql(String sql, LockOptions aliasedLockOptions, Map<String,String[]> keyColumnNames)StringAbstractHANADialect. getForUpdateString(String aliases, LockOptions lockOptions)StringCockroachDialect. getForUpdateString(String aliases, LockOptions lockOptions)StringCockroachDialect. getForUpdateString(LockOptions lockOptions)StringDialect. 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.StringDialect. getForUpdateString(LockOptions lockOptions)Given LockOptions (lockMode, timeout), determine the appropriate for update fragment to use.StringPostgreSQLDialect. getForUpdateString(String aliases, LockOptions lockOptions)StringSpannerDialect. getForUpdateString(String aliases, LockOptions lockOptions)StringSpannerDialect. 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 StringOracle12LimitHandler. processSql(String sql, boolean hasFirstRow, LockOptions lockOptions) -
Uses of LockOptions in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi with parameters of type LockOptions Modifier and Type Method Description Session.LockRequestSessionDelegatorBaseImpl. buildLockRequest(LockOptions lockOptions)RuntimeExceptionExceptionConverter. convert(RuntimeException e, LockOptions lockOptions)RuntimeExceptionExceptionConverter. 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> TSessionDelegatorBaseImpl. get(Class<T> theClass, Object id, LockOptions lockOptions)ObjectSessionDelegatorBaseImpl. get(String entityName, Object id, LockOptions lockOptions)<T> TSessionDelegatorBaseImpl. load(Class<T> theClass, Object id, LockOptions lockOptions)ObjectSessionDelegatorBaseImpl. load(String entityName, Object id, LockOptions lockOptions)voidSessionDelegatorBaseImpl. refresh(Object object, LockOptions lockOptions)voidSessionDelegatorBaseImpl. refresh(String entityName, Object object, LockOptions lockOptions) -
Uses of LockOptions in org.hibernate.event.spi
Fields in org.hibernate.event.spi declared as LockOptions Modifier and Type Field Description static LockOptionsLoadEvent. DEFAULT_LOCK_OPTIONSMethods in org.hibernate.event.spi that return LockOptions Modifier and Type Method Description LockOptionsLoadEvent. getLockOptions()LockOptionsLockEvent. getLockOptions()LockOptionsRefreshEvent. getLockOptions()LockOptionsResolveNaturalIdEvent. 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 LockOptionsBaseNaturalIdLoadAccessImpl. getLockOptions()LockOptionsSimpleNaturalIdLoadAccessImpl. 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 LockOptionsMultiLoadOptions. getLockOptions()Specify the lock options applied during loading.LockOptionsNaturalIdLoadOptions. getLockOptions()The locking options for the loaded entityMethods in org.hibernate.loader.ast.spi with parameters of type LockOptions Modifier and Type Method Description TSingleEntityLoader. load(Object key, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)Load an entity by a primary or unique key value.default TSingleEntityLoader. load(Object key, LockOptions lockOptions, SharedSessionContractImplementor session)TSingleIdEntityLoader. load(Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)Load by primary key value, populating the passed entity instance.default TSingleIdEntityLoader. load(Object pkValue, Object entityInstance, LockOptions lockOptions, SharedSessionContractImplementor session)TSingleIdEntityLoader. load(Object pkValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)Load by primary key valueTSingleUniqueKeyEntityLoader. 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.PersistenceContextEntryCacheEntityLoaderHelper. 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 ObjectAbstractEntityPersister. 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 parameterObjectAbstractEntityPersister. load(Object id, Object optionalObject, LockOptions lockOptions, SharedSessionContractImplementor session, Boolean readOnly)ObjectEntityPersister. load(Object id, Object optionalObject, LockOptions lockOptions, SharedSessionContractImplementor session)Load an instance of the persistent class.default ObjectEntityPersister. load(Object id, Object optionalObject, LockOptions lockOptions, SharedSessionContractImplementor session, Boolean readOnly)ObjectAbstractEntityPersister. loadEntityIdByNaturalId(Object[] naturalIdValues, LockOptions lockOptions, SharedSessionContractImplementor session)ObjectEntityPersister. loadEntityIdByNaturalId(Object[] naturalIdValues, LockOptions lockOptions, SharedSessionContractImplementor session)Load the id for the entity based on the natural id.voidAbstractEntityPersister. lock(Object id, Object version, Object object, LockOptions lockOptions, SharedSessionContractImplementor session)voidEntityPersister. 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 LockOptionsQuery. getLockOptions()Obtains the LockOptions in effect for this query.Methods 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
Fields in org.hibernate.query.hql.spi declared as LockOptions Modifier and Type Field Description protected LockOptionsNamedHqlQueryMemento.Builder. lockOptionsMethods in org.hibernate.query.hql.spi that return LockOptions Modifier and Type Method Description LockOptionsNamedHqlQueryMemento. getLockOptions()Methods in org.hibernate.query.hql.spi with parameters of type LockOptions Modifier and Type Method Description NamedHqlQueryMemento.BuilderNamedHqlQueryMemento.Builder. 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 LockOptionsAbstractQuery. getLockOptions()LockOptionsDelegatingQueryOptions. getLockOptions()LockOptionsQueryOptions. getLockOptions()Describes the locking to apply to the query resultsLockOptionsQueryOptionsAdapter. getLockOptions()LockOptionsSqlOmittingQueryOptions. 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 LockOptionsNativeQueryImplementor. 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.sql
Fields in org.hibernate.sql declared as LockOptions Modifier and Type Field Description protected LockOptionsSimpleSelect. lockOptionsMethods in org.hibernate.sql with parameters of type LockOptions Modifier and Type Method Description SimpleSelectSimpleSelect. 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 LockOptionsAbstractSqlAstTranslator. getLockOptions()Methods in org.hibernate.sql.ast.spi with parameters of type LockOptions Modifier and Type Method Description voidAbstractSqlAstTranslator.ForUpdateClause. merge(LockOptions lockOptions)
-