Class JtaIsolationDelegate
java.lang.Object
org.hibernate.resource.transaction.backend.jta.internal.JtaIsolationDelegate
- All Implemented Interfaces:
IsolationDelegate
An isolation delegate for JTA environments.
-
Constructor Summary
ConstructorsConstructorDescriptionJtaIsolationDelegate(JdbcConnectionAccess connectionAccess, SqlExceptionHelper sqlExceptionConverter, TransactionManager transactionManager) JtaIsolationDelegate(JdbcSessionOwner jdbcSessionOwner, TransactionManager transactionManager) JtaIsolationDelegate(TransactionCoordinatorOwner transactionCoordinatorOwner, TransactionManager transactionManager) -
Method Summary
Modifier and TypeMethodDescription<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.
-
Constructor Details
-
JtaIsolationDelegate
public JtaIsolationDelegate(TransactionCoordinatorOwner transactionCoordinatorOwner, TransactionManager transactionManager) -
JtaIsolationDelegate
public JtaIsolationDelegate(JdbcSessionOwner jdbcSessionOwner, TransactionManager transactionManager) -
JtaIsolationDelegate
public JtaIsolationDelegate(JdbcConnectionAccess connectionAccess, SqlExceptionHelper sqlExceptionConverter, TransactionManager transactionManager)
-
-
Method Details
-
delegateWork
public <T> T delegateWork(WorkExecutorVisitable<T> work, boolean transacted) throws HibernateException Description copied from interface:IsolationDelegatePerform the given work in isolation from current transaction.- Specified by:
delegateWorkin interfaceIsolationDelegate- 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
Description copied from interface:IsolationDelegateInvoke the given callable in isolation from current transaction.- Specified by:
delegateCallablein interfaceIsolationDelegate- 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.
-