Interface ContextManager
- All Known Subinterfaces:
TransactionManager<C>
public interface ContextManager
ContextManager
- Version:
- 0.0.1
- Author:
- scx567888
-
Method Summary
Modifier and TypeMethodDescription<V, X extends Throwable>
VautoContext(cool.scx.function.Function0<V, X> handler) 在自动管理的上下文中执行<X extends Throwable>
voidautoContext(cool.scx.function.Function0Void<X> handler) 在自动管理的上下文中执行
-
Method Details
-
autoContext
<V, X extends Throwable> V autoContext(cool.scx.function.Function0<V, X> handler) throws DataAccessException, X在自动管理的上下文中执行- Throws:
DataAccessExceptionX
-
autoContext
<X extends Throwable> void autoContext(cool.scx.function.Function0Void<X> handler) throws DataAccessException, X 在自动管理的上下文中执行- Throws:
DataAccessExceptionX
-