Uses of Class
org.hibernate.LockMode
-
Packages that use LockMode 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.jaxb.hbm.internal JAXB details.org.hibernate.boot.jaxb.hbm.spi org.hibernate.boot.model.internal org.hibernate.collection.spi This package defines the SPI of a framework for lazy-initializing and state-tracking collection wrappers.org.hibernate.dialect This package abstracts over the multifarious dialects of SQL understood by the databases supported by Hibernate.org.hibernate.dialect.lock Support forDialect
-specific locking strategies.org.hibernate.engine.internal Support for many of the internal workings of Hibernate.org.hibernate.engine.spi This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.org.hibernate.envers.query org.hibernate.envers.query.internal.impl 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 Internal utility classesorg.hibernate.internal.util.collections org.hibernate.jpa.internal.util org.hibernate.loader.ast.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.hql.spi SPIs for HQL support.org.hibernate.query.internal org.hibernate.query.results Support for defining result set mappings used inNativeQuery
,ProcedureCall
, andStoredProcedureQuery
.org.hibernate.query.results.complete Support for immutable result/fetch builder graph nodes built from static sources such asSqlResultSetMapping
or thehbm.xml
mapping element<resultset/>
.org.hibernate.query.results.dynamic Support for mutable result/fetch builder graphs nodes built dynamically via Hibernate'sNativeQuery
APIsorg.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.sql Package for the translation of SQM into SQL ASTorg.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.graph Defines domain result graphs.org.hibernate.sql.results.graph.collection.internal org.hibernate.sql.results.graph.entity org.hibernate.sql.results.graph.entity.internal org.hibernate.sql.results.internal.domain org.hibernate.sql.results.jdbc.internal -
-
Uses of LockMode in org.hibernate
Methods in org.hibernate that return LockMode Modifier and Type Method Description LockMode
LockOptions. findGreatestLockMode()
Currently needed for follow-on locking.static LockMode
LockMode. fromExternalForm(String externalForm)
static LockMode
LockMode. fromJpaLockMode(LockModeType lockMode)
LockMode
LockOptions. getAliasSpecificLockMode(String alias)
Get theLockMode
explicitly specified for the given alias viaLockOptions.setAliasSpecificLockMode(String, LockMode)
.LockMode
Session. getCurrentLockMode(Object object)
Determine the currentLockMode
of the given managed instance associated with this session.LockMode
LockOptions. getEffectiveLockMode(String alias)
Determine theLockMode
to apply to the given alias.LockMode
LockOptions. getLockMode()
Retrieve the overall lock mode in effect for this set of options.LockMode
Session.LockRequest. getLockMode()
Deprecated.Get the lock mode.static LockMode
LockMode. valueOf(String name)
Returns the enum constant of this type with the specified name.static LockMode[]
LockMode. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.hibernate that return types with arguments of type LockMode Modifier and Type Method Description Iterator<Map.Entry<String,LockMode>>
LockOptions. getAliasLockIterator()
Deprecated.Set<Map.Entry<String,LockMode>>
LockOptions. getAliasSpecificLocks()
Methods in org.hibernate with parameters of type LockMode Modifier and Type Method Description <T> T
Session. get(Class<T> entityType, Object id, LockMode lockMode)
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, LockMode lockMode)
Return the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance.<T> T
StatelessSession. get(Class<T> entityClass, Object id, LockMode lockMode)
Retrieve a row, obtaining the specified lock mode.Object
StatelessSession. get(String entityName, Object id, LockMode lockMode)
Retrieve a row, obtaining the specified lock mode.boolean
LockMode. greaterThan(LockMode mode)
Check if this lock mode is more restrictive than the given lock mode.boolean
LockMode. lessThan(LockMode mode)
Check if this lock mode is less restrictive than the given lock mode.<T> T
Session. load(Class<T> theClass, Object id, LockMode lockMode)
Deprecated.Object
Session. load(String entityName, Object id, LockMode lockMode)
Deprecated.void
Session. lock(Object object, LockMode lockMode)
Obtain the specified lock level on the given managed instance associated with this session.void
Session. lock(String entityName, Object object, LockMode lockMode)
Deprecated.void
Session. refresh(Object object, LockMode lockMode)
Reread the state of the given managed instance from the underlying database, obtaining the givenLockMode
.void
StatelessSession. refresh(Object entity, LockMode lockMode)
Refresh the entity instance state from the database.void
StatelessSession. refresh(String entityName, Object entity, LockMode lockMode)
Refresh the entity instance state from the database.LockOptions
LockOptions. setAliasSpecificLockMode(String alias, LockMode lockMode)
Specify theLockMode
to be used for the given query alias.LockOptions
LockOptions. setLockMode(LockMode lockMode)
Set the overall lock mode.Session.LockRequest
Session.LockRequest. setLockMode(LockMode lockMode)
Deprecated.Specify theLockMode
to be used.static LockModeType
LockMode. toJpaLockMode(LockMode lockMode)
Constructors in org.hibernate with parameters of type LockMode Constructor Description LockOptions(LockMode lockMode)
Construct an instance with the given mode andLockOptions.WAIT_FOREVER
.LockOptions(LockMode lockMode, int timeout)
Construct an instance with the given mode and timeout.LockOptions(LockMode lockMode, int timeout, PessimisticLockScope scope)
-
Uses of LockMode in org.hibernate.boot.jaxb.hbm.internal
Methods in org.hibernate.boot.jaxb.hbm.internal that return LockMode Modifier and Type Method Description static LockMode
LockModeConverter. fromXml(String name)
Methods in org.hibernate.boot.jaxb.hbm.internal with parameters of type LockMode Modifier and Type Method Description static String
LockModeConverter. toXml(LockMode lockMode)
-
Uses of LockMode in org.hibernate.boot.jaxb.hbm.spi
Fields in org.hibernate.boot.jaxb.hbm.spi declared as LockMode Modifier and Type Field Description protected LockMode
JaxbHbmNativeQueryCollectionLoadReturnType. lockMode
protected LockMode
JaxbHbmNativeQueryJoinReturnType. lockMode
protected LockMode
JaxbHbmNativeQueryReturnType. lockMode
Methods in org.hibernate.boot.jaxb.hbm.spi that return LockMode Modifier and Type Method Description LockMode
JaxbHbmNativeQueryCollectionLoadReturnType. getLockMode()
Gets the value of the lockMode property.LockMode
JaxbHbmNativeQueryJoinReturnType. getLockMode()
Gets the value of the lockMode property.LockMode
JaxbHbmNativeQueryReturnType. getLockMode()
Gets the value of the lockMode property.LockMode
NativeQueryNonScalarRootReturn. getLockMode()
Access the LockMode associated with this returnLockMode
Adapter8. unmarshal(String value)
Methods in org.hibernate.boot.jaxb.hbm.spi with parameters of type LockMode Modifier and Type Method Description String
Adapter8. marshal(LockMode value)
void
JaxbHbmNativeQueryCollectionLoadReturnType. setLockMode(LockMode value)
Sets the value of the lockMode property.void
JaxbHbmNativeQueryJoinReturnType. setLockMode(LockMode value)
Sets the value of the lockMode property.void
JaxbHbmNativeQueryReturnType. setLockMode(LockMode value)
Sets the value of the lockMode property. -
Uses of LockMode in org.hibernate.boot.model.internal
Methods in org.hibernate.boot.model.internal that return LockMode Modifier and Type Method Description LockMode
QueryHintDefinition. getLockMode(String query)
-
Uses of LockMode in org.hibernate.collection.spi
Methods in org.hibernate.collection.spi with parameters of type LockMode Modifier and Type Method Description CollectionInitializer
CollectionInitializerProducer. produceInitializer(NavigablePath navigablePath, PluralAttributeMapping attribute, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, AssemblerCreationState creationState)
Create an initializer for the given attribute relative to the given navigable path. -
Uses of LockMode in org.hibernate.dialect
Methods in org.hibernate.dialect with parameters of type LockMode Modifier and Type Method Description String
Dialect. getForUpdateString(LockMode lockMode)
Given aLockMode
, determine the appropriatefor update
fragment to use to obtain the lock.String
DialectDelegateWrapper. getForUpdateString(LockMode lockMode)
LockingStrategy
Dialect. getLockingStrategy(Lockable lockable, LockMode lockMode)
ALockingStrategy
which is able to acquire a database-level lock with the specified level.LockingStrategy
DialectDelegateWrapper. getLockingStrategy(Lockable lockable, LockMode lockMode)
LockingStrategy
SpannerDialect. getLockingStrategy(Lockable lockable, LockMode lockMode)
RowLockStrategy
Dialect. getLockRowIdentifier(LockMode lockMode)
Obtain aRowLockStrategy
for the givenLockMode
.RowLockStrategy
DialectDelegateWrapper. getLockRowIdentifier(LockMode lockMode)
protected boolean
SQLServerSqlAstTranslator. renderNamedTableReference(NamedTableReference tableReference, LockMode lockMode)
protected boolean
SybaseASESqlAstTranslator. renderNamedTableReference(NamedTableReference tableReference, LockMode lockMode)
protected boolean
SybaseSqlAstTranslator. renderNamedTableReference(NamedTableReference tableReference, LockMode lockMode)
protected boolean
DB2zSqlAstTranslator. renderPrimaryTableReference(TableGroup tableGroup, LockMode lockMode)
protected boolean
H2SqlAstTranslator. renderPrimaryTableReference(TableGroup tableGroup, LockMode lockMode)
protected boolean
SpannerSqlAstTranslator. renderPrimaryTableReference(TableGroup tableGroup, LockMode lockMode)
protected boolean
SQLServerSqlAstTranslator. renderPrimaryTableReference(TableGroup tableGroup, LockMode lockMode)
-
Uses of LockMode in org.hibernate.dialect.lock
Methods in org.hibernate.dialect.lock that return LockMode Modifier and Type Method Description protected LockMode
AbstractSelectLockingStrategy. getLockMode()
protected LockMode
OptimisticForceIncrementLockingStrategy. getLockMode()
protected LockMode
OptimisticLockingStrategy. getLockMode()
protected LockMode
PessimisticForceIncrementLockingStrategy. getLockMode()
Retrieve the specific lock mode defined.protected LockMode
PessimisticReadUpdateLockingStrategy. getLockMode()
protected LockMode
PessimisticWriteUpdateLockingStrategy. getLockMode()
protected LockMode
UpdateLockingStrategy. getLockMode()
Constructors in org.hibernate.dialect.lock with parameters of type LockMode Constructor Description AbstractSelectLockingStrategy(Lockable lockable, LockMode lockMode)
OptimisticForceIncrementLockingStrategy(Lockable lockable, LockMode lockMode)
Construct locking strategy.OptimisticLockingStrategy(Lockable lockable, LockMode lockMode)
Construct locking strategy.PessimisticForceIncrementLockingStrategy(Lockable lockable, LockMode lockMode)
Construct locking strategy.PessimisticReadSelectLockingStrategy(Lockable lockable, LockMode lockMode)
Construct a locking strategy based on SQL SELECT statements.PessimisticReadUpdateLockingStrategy(Lockable lockable, LockMode lockMode)
Construct a locking strategy based on SQL UPDATE statements.PessimisticWriteSelectLockingStrategy(Lockable lockable, LockMode lockMode)
Construct a locking strategy based on SQL SELECT statements.PessimisticWriteUpdateLockingStrategy(Lockable lockable, LockMode lockMode)
Construct a locking strategy based on SQL UPDATE statements.SelectLockingStrategy(Lockable lockable, LockMode lockMode)
Construct a locking strategy based on SQL SELECT statements.UpdateLockingStrategy(Lockable lockable, LockMode lockMode)
Construct a locking strategy based on SQL UPDATE statements. -
Uses of LockMode in org.hibernate.engine.internal
Fields in org.hibernate.engine.internal with type parameters of type LockMode Modifier and Type Field Description protected static AbstractEntityEntry.EnumState<LockMode>
AbstractEntityEntry.EnumState. LOCK_MODE
Methods in org.hibernate.engine.internal that return LockMode Modifier and Type Method Description LockMode
AbstractEntityEntry. getLockMode()
Methods in org.hibernate.engine.internal with parameters of type LockMode Modifier and Type Method Description EntityEntry
StatefulPersistenceContext. addEntity(Object entity, Status status, Object[] loadedState, EntityKey entityKey, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement)
EntityEntry
StatefulPersistenceContext. addEntry(Object entity, Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement)
static void
TwoPhaseLoad. addUninitializedCachedEntity(EntityKey key, Object object, EntityPersister persister, LockMode lockMode, Object version, SharedSessionContractImplementor session)
EntityEntry
ImmutableEntityEntryFactory. createEntityEntry(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, PersistenceContext persistenceContext)
EntityEntry
MutableEntityEntryFactory. createEntityEntry(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, PersistenceContext persistenceContext)
void
AbstractEntityEntry. setLockMode(LockMode lockMode)
void
ImmutableEntityEntry. setLockMode(LockMode lockMode)
Constructors in org.hibernate.engine.internal with parameters of type LockMode Constructor Description AbstractEntityEntry(SessionFactoryImplementor factory, String entityName, Object id, Status status, Status previousStatus, Object[] loadedState, Object[] deletedState, Object version, LockMode lockMode, boolean existsInDatabase, boolean isBeingReplicated, PersistenceContext persistenceContext)
This for is used during custom deserialization handlingAbstractEntityEntry(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, PersistenceContext persistenceContext)
ImmutableEntityEntry(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement)
MutableEntityEntry(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, PersistenceContext persistenceContext)
-
Uses of LockMode in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return LockMode Modifier and Type Method Description LockMode
SessionDelegatorBaseImpl. getCurrentLockMode(Object object)
LockMode
SessionLazyDelegator. getCurrentLockMode(Object object)
LockMode
EntityEntry. getLockMode()
Methods in org.hibernate.engine.spi with parameters of type LockMode Modifier and Type Method Description EntityEntry
PersistenceContext. addEntity(Object entity, Status status, Object[] loadedState, EntityKey entityKey, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement)
Adds an entity to the internal caches.EntityEntry
PersistenceContext. addEntry(Object entity, Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement)
Generates an appropriate EntityEntry instance and adds it to the event source's internal caches.EntityEntry
EntityEntryFactory. createEntityEntry(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, PersistenceContext persistenceContext)
CreatesEntityEntry
.<T> T
SessionDelegatorBaseImpl. get(Class<T> theClass, Object id, LockMode lockMode)
Object
SessionDelegatorBaseImpl. get(String entityName, Object id, LockMode lockMode)
<T> T
SessionLazyDelegator. get(Class<T> entityType, Object id, LockMode lockMode)
Object
SessionLazyDelegator. get(String entityName, Object id, LockMode lockMode)
<T> T
SessionDelegatorBaseImpl. load(Class<T> theClass, Object id, LockMode lockMode)
Object
SessionDelegatorBaseImpl. load(String entityName, Object id, LockMode lockMode)
<T> T
SessionLazyDelegator. load(Class<T> theClass, Object id, LockMode lockMode)
Deprecated.Object
SessionLazyDelegator. load(String entityName, Object id, LockMode lockMode)
Deprecated.void
SessionDelegatorBaseImpl. lock(Object object, LockMode lockMode)
void
SessionDelegatorBaseImpl. lock(String entityName, Object object, LockMode lockMode)
void
SessionLazyDelegator. lock(Object object, LockMode lockMode)
void
SessionLazyDelegator. lock(String entityName, Object object, LockMode lockMode)
Deprecated.void
SessionDelegatorBaseImpl. refresh(Object object, LockMode lockMode)
void
SessionLazyDelegator. refresh(Object object, LockMode lockMode)
void
EntityEntry. setLockMode(LockMode lockMode)
-
Uses of LockMode in org.hibernate.envers.query
Methods in org.hibernate.envers.query with parameters of type LockMode Modifier and Type Method Description AuditAssociationQuery<Q>
AuditAssociationQuery. setLockMode(LockMode lockMode)
AuditQuery
AuditQuery. setLockMode(LockMode lockMode)
-
Uses of LockMode in org.hibernate.envers.query.internal.impl
Methods in org.hibernate.envers.query.internal.impl with parameters of type LockMode Modifier and Type Method Description AbstractAuditAssociationQuery<Q>
AbstractAuditAssociationQuery. setLockMode(LockMode lockMode)
AuditQuery
AbstractAuditQuery. setLockMode(LockMode lockMode)
Deprecated.Instead use setLockOptions -
Uses of LockMode in org.hibernate.event.spi
Fields in org.hibernate.event.spi declared as LockMode Modifier and Type Field Description static LockMode
ResolveNaturalIdEvent. DEFAULT_LOCK_MODE
Methods in org.hibernate.event.spi that return LockMode Modifier and Type Method Description LockMode
LoadEvent. getLockMode()
LockMode
LockEvent. getLockMode()
LockMode
RefreshEvent. getLockMode()
Constructors in org.hibernate.event.spi with parameters of type LockMode Constructor Description LoadEvent(Object entityId, String entityClassName, LockMode lockMode, EventSource source, Boolean readOnly)
LockEvent(Object object, LockMode lockMode, EventSource source)
LockEvent(String entityName, Object original, LockMode lockMode, EventSource source)
RefreshEvent(Object object, LockMode lockMode, EventSource source)
-
Uses of LockMode in org.hibernate.internal
Methods in org.hibernate.internal that return LockMode Modifier and Type Method Description LockMode
SessionImpl. getCurrentLockMode(Object object)
Methods in org.hibernate.internal with parameters of type LockMode Modifier and Type Method Description void
CoreMessageLogger. aliasSpecificLockingWithFollowOnLocking(LockMode lockMode)
<T> T
SessionImpl. get(Class<T> entityClass, Object id, LockMode lockMode)
Object
SessionImpl. get(String entityName, Object id, LockMode lockMode)
<T> T
StatelessSessionImpl. get(Class<T> entityClass, Object id, LockMode lockMode)
Object
StatelessSessionImpl. get(String entityName, Object id, LockMode lockMode)
<T> T
SessionImpl. load(Class<T> entityClass, Object id, LockMode lockMode)
Deprecated.Object
SessionImpl. load(String entityName, Object id, LockMode lockMode)
Deprecated.void
SessionImpl. lock(Object object, LockMode lockMode)
void
SessionImpl. lock(String entityName, Object object, LockMode lockMode)
void
SessionImpl. refresh(Object object, LockMode lockMode)
void
StatelessSessionImpl. refresh(Object entity, LockMode lockMode)
void
StatelessSessionImpl. refresh(String entityName, Object entity, LockMode lockMode)
-
Uses of LockMode in org.hibernate.internal.util
Methods in org.hibernate.internal.util that return LockMode Modifier and Type Method Description static LockMode
LockModeConverter. convertToLockMode(LockModeType lockMode)
Convert from JPA definedLockModeType
to Hibernate-specificLockMode
.Methods in org.hibernate.internal.util with parameters of type LockMode Modifier and Type Method Description static LockModeType
LockModeConverter. convertToLockModeType(LockMode lockMode)
Convert from the Hibernate-specificLockMode
to the JPA definedLockModeType
. -
Uses of LockMode in org.hibernate.internal.util.collections
Methods in org.hibernate.internal.util.collections that return LockMode Modifier and Type Method Description static LockMode[]
ArrayHelper. fillArray(LockMode lockMode, int length)
Methods in org.hibernate.internal.util.collections with parameters of type LockMode Modifier and Type Method Description V
LockModeEnumMap. computeIfAbsent(LockMode key, Function<LockMode,V> valueGenerator)
static LockMode[]
ArrayHelper. fillArray(LockMode lockMode, int length)
Method parameters in org.hibernate.internal.util.collections with type arguments of type LockMode Modifier and Type Method Description V
LockModeEnumMap. computeIfAbsent(LockMode key, Function<LockMode,V> valueGenerator)
-
Uses of LockMode in org.hibernate.jpa.internal.util
Methods in org.hibernate.jpa.internal.util that return LockMode Modifier and Type Method Description static LockMode
LockModeTypeHelper. getLockMode(LockModeType lockModeType)
static LockMode
LockModeTypeHelper. interpretLockMode(Object value)
Methods in org.hibernate.jpa.internal.util with parameters of type LockMode Modifier and Type Method Description static LockModeType
LockModeTypeHelper. getLockModeType(LockMode lockMode)
-
Uses of LockMode in org.hibernate.loader.ast.internal
Methods in org.hibernate.loader.ast.internal with parameters of type LockMode Modifier and Type Method Description Object
CacheEntityLoaderHelper. loadFromSecondLevelCache(EventSource source, Object entity, LockMode lockMode, EntityPersister persister, EntityKey entityKey)
Attempts to load the entity from the second-level cache.void
LoaderSqlAstCreationState. registerLockMode(String identificationVariable, LockMode explicitLockMode)
-
Uses of LockMode in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity with parameters of type LockMode Modifier and Type Method Description protected LockingStrategy
AbstractEntityPersister. generateLocker(LockMode lockMode)
Object
AbstractEntityPersister. load(Object id, Object optionalObject, LockMode lockMode, SharedSessionContractImplementor session)
Load an instance using either theforUpdateLoader
or the outer joiningloader
, depending upon the value of thelock
parameterObject
EntityPersister. load(Object id, Object optionalObject, LockMode lockMode, SharedSessionContractImplementor session)
Load an instance of the persistent class.default Object
EntityPersister. load(Object id, Object optionalObject, LockMode lockMode, SharedSessionContractImplementor session, Boolean readOnly)
void
AbstractEntityPersister. lock(Object id, Object version, Object object, LockMode lockMode, EventSource session)
void
EntityPersister. lock(Object id, Object version, Object object, LockMode lockMode, EventSource session)
Do a version check (optional operation) -
Uses of LockMode in org.hibernate.procedure.internal
Methods in org.hibernate.procedure.internal with parameters of type LockMode Modifier and Type Method Description QueryImplementor<R>
ProcedureCallImpl. setLockMode(String alias, LockMode lockMode)
-
Uses of LockMode in org.hibernate.query
Methods in org.hibernate.query that return LockMode Modifier and Type Method Description LockMode
NativeQuery. getHibernateLockMode()
LockMode
SelectionQuery. getHibernateLockMode()
Get the rootLockMode
for the queryLockMode
NativeQuery.RootReturn. getLockMode()
Methods in org.hibernate.query with parameters of type LockMode Modifier and Type Method Description NativeQuery<T>
NativeQuery. addEntity(String tableAlias, Class entityClass, LockMode lockMode)
Declare a "root" entity, specifying a lock mode.NativeQuery<T>
NativeQuery. addEntity(String tableAlias, String entityName, LockMode lockMode)
Declare a "root" entity, specifying a lock mode.NativeQuery<T>
NativeQuery. addJoin(String tableAlias, String path, LockMode lockMode)
Declare a join fetch result, specifying a lock mode.@Remove SelectionQuery<R>
SelectionQuery. setAliasSpecificLockMode(String alias, LockMode lockMode)
Deprecated.NativeQuery<T>
NativeQuery. setHibernateLockMode(LockMode lockMode)
SelectionQuery<R>
SelectionQuery. setHibernateLockMode(LockMode lockMode)
Specify the rootLockMode
for the queryNativeQuery.FetchReturn
NativeQuery.FetchReturn. setLockMode(LockMode lockMode)
Set the lock mode for this return.NativeQuery.RootReturn
NativeQuery.RootReturn. setLockMode(LockMode lockMode)
Set the lock mode for this return.NativeQuery<T>
NativeQuery. setLockMode(String alias, LockMode lockMode)
Not applicable to native SQL queries.Query<R>
Query. setLockMode(String alias, LockMode lockMode)
Set theLockMode
to use for particular alias defined in theFROM
clause of the query.SelectionQuery<R>
SelectionQuery. setLockMode(String alias, LockMode lockMode)
Specify aLockMode
to apply to a specific alias defined in the query -
Uses of LockMode in org.hibernate.query.hql.spi
Methods in org.hibernate.query.hql.spi with parameters of type LockMode Modifier and Type Method Description SqmQueryImplementor<R>
SqmQueryImplementor. setLockMode(String alias, LockMode lockMode)
-
Uses of LockMode in org.hibernate.query.internal
Constructors in org.hibernate.query.internal with parameters of type LockMode Constructor Description FetchMementoHbmStandard(NavigablePath navigablePath, String ownerTableAlias, String tableAlias, List<String> keyColumnNames, LockMode lockMode, FetchMementoHbmStandard.FetchParentMemento parent, Map<String,FetchMemento> fetchMementoMap, Fetchable fetchable)
ResultMementoEntityJpa(EntityMappingType entityDescriptor, LockMode lockMode, FetchMementoBasic discriminatorMemento, Map<String,FetchMemento> explicitFetchMementoMap)
ResultMementoEntityStandard(String tableAlias, EntityMappingType entityDescriptor, LockMode lockMode, FetchMementoBasic discriminatorMemento, Map<String,FetchMemento> fetchMementoMap)
-
Uses of LockMode in org.hibernate.query.results
Methods in org.hibernate.query.results that return types with arguments of type LockMode Modifier and Type Method Description Map<String,LockMode>
DomainResultCreationStateImpl. getRegisteredLockModes()
Methods in org.hibernate.query.results with parameters of type LockMode Modifier and Type Method Description static DynamicResultBuilderEntityCalculated
Builders. entityCalculated(String tableAlias, String entityName, LockMode explicitLockMode, SessionFactoryImplementor sessionFactory)
Creates a EntityResultBuilder that does not allow any further configuring of the mapping.void
DomainResultCreationStateImpl. registerLockMode(String identificationVariable, LockMode explicitLockMode)
Constructor parameters in org.hibernate.query.results with type arguments of type LockMode Constructor Description JdbcValuesMappingImpl(List<SqlSelection> sqlSelections, List<DomainResult<?>> domainResults, int rowSize, Map<String,LockMode> registeredLockModes)
-
Uses of LockMode in org.hibernate.query.results.complete
Methods in org.hibernate.query.results.complete that return LockMode Modifier and Type Method Description LockMode
CompleteResultBuilderEntityStandard. getLockMode()
Methods in org.hibernate.query.results.complete with parameters of type LockMode Modifier and Type Method Description NativeQuery.RootReturn
CompleteResultBuilderEntityStandard. setLockMode(LockMode lockMode)
Constructors in org.hibernate.query.results.complete with parameters of type LockMode Constructor Description CompleteResultBuilderEntityJpa(NavigablePath navigablePath, EntityMappingType entityDescriptor, LockMode lockMode, BasicValuedFetchBuilder discriminatorFetchBuilder, HashMap<String,FetchBuilder> explicitFetchBuilderMap)
CompleteResultBuilderEntityStandard(String tableAlias, NavigablePath navigablePath, EntityMappingType entityDescriptor, LockMode lockMode, BasicValuedFetchBuilder discriminatorFetchBuilder, HashMap<String,FetchBuilder> explicitFetchBuilderMap)
EntityResultImpl(NavigablePath navigablePath, EntityValuedModelPart entityValuedModelPart, String resultAlias, LockMode lockMode, Function<EntityResultImpl,BasicFetch<?>> discriminatorFetchBuilder, DomainResultCreationState creationState)
-
Uses of LockMode in org.hibernate.query.results.dynamic
Methods in org.hibernate.query.results.dynamic that return LockMode Modifier and Type Method Description LockMode
DynamicResultBuilderEntityCalculated. getLockMode()
LockMode
DynamicResultBuilderEntityStandard. getLockMode()
Methods in org.hibernate.query.results.dynamic with parameters of type LockMode Modifier and Type Method Description NativeQuery.FetchReturn
DynamicFetchBuilderLegacy. setLockMode(LockMode lockMode)
NativeQuery.RootReturn
DynamicResultBuilderEntityCalculated. setLockMode(LockMode lockMode)
DynamicResultBuilderEntityStandard
DynamicResultBuilderEntityStandard. setLockMode(LockMode lockMode)
Constructors in org.hibernate.query.results.dynamic with parameters of type LockMode Constructor Description DynamicResultBuilderEntityCalculated(EntityMappingType entityMapping, String tableAlias, LockMode explicitLockMode, SessionFactoryImplementor sessionFactory)
-
Uses of LockMode in org.hibernate.query.spi
Methods in org.hibernate.query.spi that return LockMode Modifier and Type Method Description LockMode
AbstractSelectionQuery. getHibernateLockMode()
Get the root LockMode for the queryMethods in org.hibernate.query.spi with parameters of type LockMode Modifier and Type Method Description protected void
AbstractCommonQueryContract. applyHibernateLockMode(LockMode value)
protected boolean
AbstractSelectionQuery. requiresTxn(LockMode lockMode)
SelectionQuery<R>
AbstractSelectionQuery. setAliasSpecificLockMode(String alias, LockMode lockMode)
Deprecated.SelectionQuery<R>
AbstractSelectionQuery. setHibernateLockMode(LockMode lockMode)
Specify the root LockMode for the queryQueryImplementor<R>
AbstractQuery. setLockMode(String alias, LockMode lockMode)
SelectionQuery<R>
AbstractSelectionQuery. setLockMode(String alias, LockMode lockMode)
-
Uses of LockMode in org.hibernate.query.sql.internal
Methods in org.hibernate.query.sql.internal with parameters of type LockMode Modifier and Type Method Description NativeQueryImplementor<R>
NativeQueryImpl. addEntity(String tableAlias, Class entityClass, LockMode lockMode)
NativeQueryImplementor<R>
NativeQueryImpl. addEntity(String tableAlias, String entityName, LockMode lockMode)
NativeQueryImplementor<R>
NativeQueryImpl. addJoin(String tableAlias, String path, LockMode lockMode)
NativeQueryImplementor<R>
NativeQueryImpl. setHibernateLockMode(LockMode lockMode)
NativeQueryImplementor<R>
NativeQueryImpl. setLockMode(String alias, LockMode lockMode)
-
Uses of LockMode in org.hibernate.query.sql.spi
Methods in org.hibernate.query.sql.spi with parameters of type LockMode Modifier and Type Method Description NativeQueryImplementor<R>
NativeQueryImplementor. addEntity(String tableAlias, Class entityClass, LockMode lockMode)
NativeQueryImplementor<R>
NativeQueryImplementor. addEntity(String tableAlias, String entityName, LockMode lockMode)
NativeQueryImplementor<R>
NativeQueryImplementor. addJoin(String tableAlias, String path, LockMode lockMode)
NativeQueryImplementor<R>
NativeQueryImplementor. setHibernateLockMode(LockMode lockMode)
NativeQueryImplementor<R>
NativeQueryImplementor. setLockMode(String alias, LockMode lockMode)
-
Uses of LockMode in org.hibernate.query.sqm.internal
Methods in org.hibernate.query.sqm.internal with parameters of type LockMode Modifier and Type Method Description protected void
QuerySqmImpl. applyHibernateLockMode(LockMode value)
SqmSelectionQuery<R>
SqmSelectionQueryImpl. setAliasSpecificLockMode(String alias, LockMode lockMode)
Deprecated.SqmSelectionQuery<R>
SqmSelectionQueryImpl. setHibernateLockMode(LockMode lockMode)
Specify the rootLockMode
for the querySqmQueryImplementor<R>
QuerySqmImpl. setLockMode(String alias, LockMode lockMode)
SqmSelectionQuery<R>
SqmSelectionQueryImpl. setLockMode(String alias, LockMode lockMode)
Specify aLockMode
to apply to a specific alias defined in the query -
Uses of LockMode in org.hibernate.query.sqm.sql
Methods in org.hibernate.query.sqm.sql with parameters of type LockMode Modifier and Type Method Description void
BaseSqmToSqlAstConverter. registerLockMode(String identificationVariable, LockMode explicitLockMode)
void
FakeSqmToSqlAstConverter. registerLockMode(String identificationVariable, LockMode explicitLockMode)
-
Uses of LockMode in org.hibernate.sql
Methods in org.hibernate.sql with parameters of type LockMode Modifier and Type Method Description SimpleSelect
SimpleSelect. setLockMode(LockMode lockMode)
-
Uses of LockMode in org.hibernate.sql.ast.spi
Methods in org.hibernate.sql.ast.spi that return LockMode Modifier and Type Method Description protected LockMode
AbstractSqlAstTranslator. getEffectiveLockMode(String alias)
protected LockMode
AbstractSqlAstTranslator. getEffectiveLockMode(String alias, boolean isRoot)
LockMode
AbstractSqlAstTranslator.ForUpdateClause. getLockMode()
Methods in org.hibernate.sql.ast.spi with parameters of type LockMode Modifier and Type Method Description protected int
AbstractSqlAstTranslator. getEffectiveLockTimeout(LockMode lockMode)
protected void
AbstractSqlAstTranslator. inlineCteTableGroup(TableGroup tableGroup, LockMode lockMode)
void
SqlAstCreationState. registerLockMode(String identificationVariable, LockMode explicitLockMode)
protected boolean
AbstractSqlAstTranslator. renderNamedTableReference(NamedTableReference tableReference, LockMode lockMode)
protected boolean
AbstractSqlAstTranslator. renderPrimaryTableReference(TableGroup tableGroup, LockMode lockMode)
void
AbstractSqlAstTranslator.ForUpdateClause. setLockMode(LockMode lockMode)
Constructors in org.hibernate.sql.ast.spi with parameters of type LockMode Constructor Description ForUpdateClause(LockMode lockMode)
-
Uses of LockMode in org.hibernate.sql.results.graph
Methods in org.hibernate.sql.results.graph that return LockMode Modifier and Type Method Description LockMode
AssemblerCreationState. determineEffectiveLockMode(String identificationVariable)
-
Uses of LockMode in org.hibernate.sql.results.graph.collection.internal
Methods in org.hibernate.sql.results.graph.collection.internal with parameters of type LockMode Modifier and Type Method Description CollectionInitializer
ArrayInitializerProducer. produceInitializer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, AssemblerCreationState creationState)
CollectionInitializer
BagInitializerProducer. produceInitializer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, AssemblerCreationState creationState)
CollectionInitializer
ListInitializerProducer. produceInitializer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, AssemblerCreationState creationState)
CollectionInitializer
MapInitializerProducer. produceInitializer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, AssemblerCreationState creationState)
CollectionInitializer
SetInitializerProducer. produceInitializer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, AssemblerCreationState creationState)
Constructors in org.hibernate.sql.results.graph.collection.internal with parameters of type LockMode Constructor Description AbstractImmediateCollectionInitializer(NavigablePath collectionPath, PluralAttributeMapping collectionAttributeMapping, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyResultAssembler, DomainResultAssembler<?> collectionValueKeyResultAssembler)
ArrayInitializer(NavigablePath navigablePath, PluralAttributeMapping arrayDescriptor, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, DomainResultAssembler<Integer> listIndexAssembler, DomainResultAssembler<?> elementAssembler)
BagInitializer(PluralAttributeMapping bagDescriptor, FetchParentAccess parentAccess, NavigablePath navigablePath, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, DomainResultAssembler<?> elementAssembler, DomainResultAssembler<?> collectionIdAssembler)
ListInitializer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, DomainResultAssembler<Integer> listIndexAssembler, DomainResultAssembler<?> elementAssembler)
MapInitializer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, DomainResultAssembler<?> mapKeyAssembler, DomainResultAssembler<?> mapValueAssembler)
SetInitializer(NavigablePath navigablePath, PluralAttributeMapping setDescriptor, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyAssembler, DomainResultAssembler<?> collectionValueKeyAssembler, DomainResultAssembler<?> elementAssembler)
-
Uses of LockMode in org.hibernate.sql.results.graph.entity
Methods in org.hibernate.sql.results.graph.entity that return LockMode Modifier and Type Method Description protected LockMode
AbstractEntityInitializer. getLockMode()
Constructors in org.hibernate.sql.results.graph.entity with parameters of type LockMode Constructor Description AbstractEntityInitializer(EntityResultGraphNode resultDescriptor, NavigablePath navigablePath, LockMode lockMode, Fetch identifierFetch, Fetch discriminatorFetch, DomainResult<Object> rowIdResult, AssemblerCreationState creationState)
-
Uses of LockMode in org.hibernate.sql.results.graph.entity.internal
Methods in org.hibernate.sql.results.graph.entity.internal that return LockMode Modifier and Type Method Description protected LockMode
EntityResultImpl. getLockMode(AssemblerCreationState creationState)
Methods in org.hibernate.sql.results.graph.entity.internal with parameters of type LockMode Modifier and Type Method Description protected Initializer
EntityFetchJoinedImpl. buildEntityJoinedFetchInitializer(EntityResultGraphNode resultDescriptor, EntityValuedFetchable referencedFetchable, NavigablePath navigablePath, LockMode lockMode, NotFoundAction notFoundAction, DomainResult<?> keyResult, DomainResult<Object> rowIdResult, Fetch identifierFetch, Fetch discriminatorFetch, AssemblerCreationState creationState)
For Hibernate ReactiveConstructors in org.hibernate.sql.results.graph.entity.internal with parameters of type LockMode Constructor Description EntityJoinedFetchInitializer(EntityResultGraphNode resultDescriptor, EntityValuedFetchable referencedFetchable, NavigablePath navigablePath, LockMode lockMode, NotFoundAction notFoundAction, DomainResult<?> keyResult, DomainResult<Object> rowIdResult, Fetch identifierFetch, Fetch discriminatorFetch, AssemblerCreationState creationState)
EntityResultInitializer(EntityResultGraphNode resultDescriptor, NavigablePath navigablePath, LockMode lockMode, Fetch identifierFetch, BasicFetch<?> discriminatorFetch, DomainResult<Object> rowIdResult, AssemblerCreationState creationState)
-
Uses of LockMode in org.hibernate.sql.results.internal.domain
Constructors in org.hibernate.sql.results.internal.domain with parameters of type LockMode Constructor Description CircularBiDirectionalFetchImpl(FetchTiming timing, NavigablePath navigablePath, FetchParent fetchParent, ToOneAttributeMapping fetchable, LockMode lockMode, NavigablePath referencedNavigablePath, DomainResult<?> keyDomainResult)
-
Uses of LockMode in org.hibernate.sql.results.jdbc.internal
Methods in org.hibernate.sql.results.jdbc.internal that return LockMode Modifier and Type Method Description protected LockMode
DeferredResultSetAccess. determineFollowOnLockMode(LockOptions lockOptions)
-