接口 IsolationDelegate

  • 所有已知实现类:
    JdbcIsolationDelegate, JtaIsolationDelegate

    public interface IsolationDelegate
    Contract for performing work in a manner that isolates it from any current transaction.
    作者:
    Steve Ebersole
    • 方法详细资料

      • delegateWork

        <T> T delegateWork​(WorkExecutorVisitable<T> work,
                           boolean transacted)
                    throws HibernateException
        Perform the given work in isolation from current transaction.
        参数:
        work - The work to be performed.
        transacted - Should the work itself be done in a (isolated) transaction?
        返回:
        The work result
        抛出:
        HibernateException - Indicates a problem performing the work.
      • delegateCallable

        <T> T delegateCallable​(Callable<T> callable,
                               boolean transacted)
                        throws HibernateException
        Invoke the given callable in isolation from current transaction.
        参数:
        callable - The callable to be invoked.
        transacted - Should the work itself be done in a (isolated) transaction?
        返回:
        The work result
        抛出:
        HibernateException - Indicates a problem performing the work.