public class JtaIsolationDelegate extends Object implements IsolationDelegate
Constructor and Description |
---|
JtaIsolationDelegate(TransactionCoordinator transactionCoordinator) |
Modifier and Type | Method and Description |
---|---|
protected ConnectionProvider |
connectionProvider() |
<T> T |
delegateWork(WorkExecutorVisitable<T> work,
boolean transacted)
Perform the given work in isolation from current transaction.
|
protected SqlExceptionHelper |
sqlExceptionHelper() |
protected TransactionManager |
transactionManager() |
public JtaIsolationDelegate(TransactionCoordinator transactionCoordinator)
protected TransactionManager transactionManager()
protected ConnectionProvider connectionProvider()
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.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.