Top Constructors Methods
org.hibernate.jpa.internal.util

public final Class LockOptionsHelper

extends Object
Class Inheritance
Imports
java.util.Map, java.util.function.Supplier, jakarta.persistence.PersistenceException, .PessimisticLockScope, org.hibernate.LockOptions

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
applyPropertiesToLockOptions(final Map<String, Object>
The configuration properties
props
,
final Supplier<LockOptions>
The reference to the lock to modify
lockOptionsSupplier
)

Applies configuration properties on a LockOptions instance, passed as a supplier so to make it possible to skip allocating the LockOptions instance if there's nothing to set.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LockOptionsHelperback to summary
private LockOptionsHelper()

Method Detail

applyPropertiesToLockOptionsback to summary
public static void applyPropertiesToLockOptions(final Map<String, Object> props, final Supplier<LockOptions> lockOptionsSupplier)

Applies configuration properties on a LockOptions instance, passed as a supplier so to make it possible to skip allocating the LockOptions instance if there's nothing to set.

Parameters
props:Map<String, Object>

The configuration properties

lockOptionsSupplier:Supplier<LockOptions>

The reference to the lock to modify