接口 IsolationDelegate
-
- 所有已知实现类:
JdbcIsolationDelegate,JtaIsolationDelegate
public interface IsolationDelegateContract for performing work in a manner that isolates it from any current transaction.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 <T> TdelegateCallable(Callable<T> callable, boolean transacted)Invoke the given callable in isolation from current transaction.<T> TdelegateWork(WorkExecutorVisitable<T> work, boolean transacted)Perform the given work in isolation from current transaction.
-
-
-
方法详细资料
-
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.
-
-