类 JdbcIsolationDelegate
- java.lang.Object
-
- org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate
-
- 所有已实现的接口:
IsolationDelegate
public class JdbcIsolationDelegate extends Object implements IsolationDelegate
- 作者:
- Andrea Boriero
-
-
构造器概要
构造器 构造器 说明 JdbcIsolationDelegate(JdbcConnectionAccess connectionAccess, SqlExceptionHelper sqlExceptionHelper)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <T> TdelegateCallable(Callable<T> callable, boolean transacted)Invoke the given callable in isolation from current transaction.<T> TdelegateWork(WorkExecutorVisitable<T> work, boolean transacted)Perform the given work in isolation from current transaction.protected JdbcConnectionAccessjdbcConnectionAccess()protected SqlExceptionHelpersqlExceptionHelper()
-
-
-
构造器详细资料
-
JdbcIsolationDelegate
public JdbcIsolationDelegate(JdbcConnectionAccess connectionAccess, SqlExceptionHelper sqlExceptionHelper)
-
-
方法详细资料
-
jdbcConnectionAccess
protected JdbcConnectionAccess jdbcConnectionAccess()
-
sqlExceptionHelper
protected SqlExceptionHelper sqlExceptionHelper()
-
delegateWork
public <T> T delegateWork(WorkExecutorVisitable<T> work, boolean transacted) throws HibernateException
从接口复制的说明:IsolationDelegatePerform the given work in isolation from current transaction.- 指定者:
delegateWork在接口中IsolationDelegate- 参数:
work- The work to be performed.transacted- Should the work itself be done in a (isolated) transaction?- 返回:
- The work result
- 抛出:
HibernateException- Indicates a problem performing the work.
-
delegateCallable
public <T> T delegateCallable(Callable<T> callable, boolean transacted) throws HibernateException
从接口复制的说明:IsolationDelegateInvoke the given callable in isolation from current transaction.- 指定者:
delegateCallable在接口中IsolationDelegate- 参数:
callable- The callable to be invoked.transacted- Should the work itself be done in a (isolated) transaction?- 返回:
- The work result
- 抛出:
HibernateException- Indicates a problem performing the work.
-
-