Uses of Enum Class
jakarta.persistence.PessimisticLockScope
Packages that use PessimisticLockScope
Package
Description
Defines the core APIs for the management for persistence and
object/relational mapping.
-
Uses of PessimisticLockScope in jakarta.persistence
Subclasses with type arguments of type PessimisticLockScope in jakarta.persistenceModifier and TypeClassDescriptionenumControls how a pessimistic lock applied to an entity affects associated collections and relationships.Methods in jakarta.persistence that return PessimisticLockScopeModifier and TypeMethodDescriptionTypedQuery.getLockScope()The current pessimistic lock scope for the query ornullif a scope has not been set.static PessimisticLockScopeReturns the enum constant of this class with the specified name.static PessimisticLockScope[]PessimisticLockScope.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in jakarta.persistence with parameters of type PessimisticLockScopeModifier and TypeMethodDescriptionTypedQuery.setLockScope(PessimisticLockScope lockScope) Set the pessimistic lock scope to use when the query is executed if a pessimistic lock mode is specified viaTypedQuery.setLockMode(LockModeType).