org.hibernate.engine.transaction.internal.jta
Class JtaIsolationDelegate
java.lang.Object
org.hibernate.engine.transaction.internal.jta.JtaIsolationDelegate
- All Implemented Interfaces:
- IsolationDelegate
public class JtaIsolationDelegate
- extends Object
- implements IsolationDelegate
An isolation delegate for JTA environments.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JtaIsolationDelegate
public JtaIsolationDelegate(TransactionCoordinator transactionCoordinator)
transactionManager
protected TransactionManager transactionManager()
connectionProvider
protected ConnectionProvider connectionProvider()
sqlExceptionHelper
protected SqlExceptionHelper sqlExceptionHelper()
delegateWork
public <T> T delegateWork(WorkExecutorVisitable<T> work,
boolean transacted)
throws HibernateException
- Description copied from interface:
IsolationDelegate
- Perform the given work in isolation from current transaction.
- Specified by:
delegateWork
in interface IsolationDelegate
- 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.
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.