类 EntityTransactionalAccess

    • 方法详细资料

      • insert

        public boolean insert​(SharedSessionContractImplementor session,
                              Object key,
                              Object value,
                              Object version)
        从接口复制的说明: EntityDataAccess
        Called afterQuery an item has been inserted (beforeQuery the transaction completes), instead of calling evict(). This method is used by "synchronous" concurrency strategies.
        参数:
        session - Current session
        key - The item key
        value - The item
        version - The item's version value
        返回:
        Were the contents of the cache actually changed by this operation?
      • afterInsert

        public boolean afterInsert​(SharedSessionContractImplementor session,
                                   Object key,
                                   Object value,
                                   Object version)
        从接口复制的说明: EntityDataAccess
        Called afterQuery an item has been inserted (afterQuery the transaction completes), instead of calling release(). This method is used by "asynchronous" concurrency strategies.
        参数:
        session - Current session
        key - The item key
        value - The item
        version - The item's version value
        返回:
        Were the contents of the cache actual changed by this operation?
      • update

        public boolean update​(SharedSessionContractImplementor session,
                              Object key,
                              Object value,
                              Object currentVersion,
                              Object previousVersion)
        从接口复制的说明: EntityDataAccess
        Called afterQuery an item has been updated (beforeQuery the transaction completes), instead of calling evict(). This method is used by "synchronous" concurrency strategies.
        参数:
        session - Current session
        key - The item key
        value - The item
        currentVersion - The item's current version value
        previousVersion - The item's previous version value
        返回:
        Were the contents of the cache actually changed by this operation?