类 AbstractLockUpgradeEventListener

    • 构造器详细资料

      • AbstractLockUpgradeEventListener

        public AbstractLockUpgradeEventListener()
    • 方法详细资料

      • upgradeLock

        protected void upgradeLock​(Object object,
                                   EntityEntry entry,
                                   LockOptions lockOptions,
                                   EventSource source)
        Performs a pessimistic lock upgrade on a given entity, if needed.
        参数:
        object - The entity for which to upgrade the lock.
        entry - The entity's EntityEntry instance.
        lockOptions - contains the requested lock mode.
        source - The session which is the source of the event being processed.