public class JdbcIsolationDelegate extends Object implements IsolationDelegate
Constructor and Description |
---|
JdbcIsolationDelegate(JdbcConnectionAccess connectionAccess,
SqlExceptionHelper sqlExceptionHelper) |
Modifier and Type | Method and Description |
---|---|
<T> T |
delegateWork(WorkExecutorVisitable<T> work,
boolean transacted)
Perform the given work in isolation from current transaction.
|
protected JdbcConnectionAccess |
jdbcConnectionAccess() |
protected SqlExceptionHelper |
sqlExceptionHelper() |
public JdbcIsolationDelegate(JdbcConnectionAccess connectionAccess, SqlExceptionHelper sqlExceptionHelper)
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.Copyright © 2016 JBoss by Red Hat. All rights reserved.