public class SpringTransactionSupportJobWrapper extends Object implements TransactionSupportJobWrapper
| 构造器和说明 |
|---|
SpringTransactionSupportJobWrapper() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate) |
<V> TransactionSupportJob<V> |
wrapper(Callable<V> callable)
将一个普通任务包装为支持事务的任务
|
@Autowired public void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
public <V> TransactionSupportJob<V> wrapper(Callable<V> callable)
TransactionSupportJobWrapperwrapper 在接口中 TransactionSupportJobWrapperV - 任务返回值类型callable - 普通任务Copyright © 2018. All rights reserved.