Interface IsolationDelegate
-
public interface IsolationDelegateContract for performing work in a manner that isolates it from any current transaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TdelegateCallable(java.util.concurrent.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.
-
-
-
Method Detail
-
delegateWork
<T> T delegateWork(WorkExecutorVisitable<T> work, boolean transacted) throws HibernateException
Perform the given work in isolation from current transaction.- Parameters:
work- The work to be performed.transacted- Should the work itself be done in a (isolated) transaction?- Returns:
- The work result
- Throws:
HibernateException- Indicates a problem performing the work.
-
delegateCallable
<T> T delegateCallable(java.util.concurrent.Callable<T> callable, boolean transacted) throws HibernateExceptionInvoke the given callable in isolation from current transaction.- Parameters:
callable- The callable to be invoked.transacted- Should the work itself be done in a (isolated) transaction?- Returns:
- The work result
- Throws:
HibernateException- Indicates a problem performing the work.
-
-