public class JtaIsolationDelegate extends Object implements IsolationDelegate
Constructor and Description |
---|
JtaIsolationDelegate(JdbcConnectionAccess connectionAccess,
SqlExceptionHelper sqlExceptionHelper,
TransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
<T> T |
delegateCallable(Callable<T> callable,
boolean transacted)
Invoke the given callable in isolation from current transaction.
|
<T> T |
delegateWork(WorkExecutorVisitable<T> work,
boolean transacted)
Perform the given work in isolation from current transaction.
|
protected JdbcConnectionAccess |
jdbcConnectionAccess() |
protected SqlExceptionHelper |
sqlExceptionHelper() |
public JtaIsolationDelegate(JdbcConnectionAccess connectionAccess, SqlExceptionHelper sqlExceptionHelper, TransactionManager transactionManager)
protected JdbcConnectionAccess jdbcConnectionAccess()
protected SqlExceptionHelper sqlExceptionHelper()
public <T> T delegateWork(WorkExecutorVisitable<T> work, boolean transacted) throws HibernateException
IsolationDelegate
delegateWork
in interface IsolationDelegate
work
- The work to be performed.transacted
- Should the work itself be done in a (isolated) transaction?HibernateException
- Indicates a problem performing the work.public <T> T delegateCallable(Callable<T> callable, boolean transacted) throws HibernateException
IsolationDelegate
delegateCallable
in interface IsolationDelegate
callable
- The callable to be invoked.transacted
- Should the work itself be done in a (isolated) transaction?HibernateException
- Indicates a problem performing the work.Copyright © 2017 JBoss by Red Hat. All rights reserved.