Package org.hibernate.internal
Class LockOptionsHelper
java.lang.Object
org.hibernate.internal.LockOptionsHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyPropertiesToLockOptions
(Map<String, Object> props, Supplier<LockOptions> lockOptions) Applies configuration properties on aLockOptions
instance, passed as a supplier so to make it possible to skip allocating theLockOptions
instance if there's nothing to set.
-
Method Details
-
applyPropertiesToLockOptions
public static void applyPropertiesToLockOptions(Map<String, Object> props, Supplier<LockOptions> lockOptions) Applies configuration properties on aLockOptions
instance, passed as a supplier so to make it possible to skip allocating theLockOptions
instance if there's nothing to set.- Parameters:
props
- The configuration propertieslockOptions
- The reference to the lock to modify
-