Package org.hibernate.jpa.internal.util
Class LockOptionsHelper
java.lang.Object
org.hibernate.jpa.internal.util.LockOptionsHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyPropertiesToLockOptions(Map<String, Object> props, Supplier<LockOptions> lockOptionsSupplier) 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> lockOptionsSupplier) 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 propertieslockOptionsSupplier- The reference to the lock to modify
-