Uses of Enum Class
jakarta.persistence.PessimisticLockScope
Packages that use PessimisticLockScope
Package
Description
Jakarta Persistence is the API 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.TypedQueryReference.getPessimisticLockScope()The specifiedPessimisticLockScope, if any, orPessimisticLockScope.NORMALif no lock scope was specified.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). -
Uses of PessimisticLockScope in jakarta.persistence.query
Methods in jakarta.persistence.query that return PessimisticLockScopeConstructors in jakarta.persistence.query with parameters of type PessimisticLockScopeModifierConstructorDescriptionStaticTypedQueryReference(String queryName, Class<?> annotatedClass, String annotatedMemberName, Class<R> resultType, List<Class<?>> parameterTypes, List<String> parameterNames, List<Object> arguments, CacheRetrieveMode cacheRetrieveMode, CacheStoreMode cacheStoreMode, LockModeType lockMode, PessimisticLockScope lockScope, Timeout timeout, String entityGraphName, Map<String, Object> hints) Intended for use in code generated by an annotation processor.