public class JdbcIsolationDelegate extends java.lang.Object implements IsolationDelegate
Constructor and Description |
---|
JdbcIsolationDelegate(JdbcConnectionAccess connectionAccess,
SqlExceptionHelper sqlExceptionHelper) |
Modifier and Type | Method and Description |
---|---|
<T> T |
delegateCallable(java.util.concurrent.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 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.public <T> T delegateCallable(java.util.concurrent.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 © 2001-2018 Red Hat, Inc. All Rights Reserved.