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