public interface TransactionOperator
Modifier and Type | Method and Description |
---|---|
void |
beginTransaction()
开始事务
|
void |
commitTransaction()
提交事务
|
Object |
execute(TransactionCallBack callback)
以事务方式执行回调处理
|
void |
rollbackTransaction()
回滚事务
|
void |
setTransactionDefinition(org.springframework.transaction.TransactionDefinition transactionDefinition)
设置事务定义,默认为PROPAGATION_REQUIRED,ISOLATION_DEFAULT
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
设置事务管理对象
|
void beginTransaction()
void commitTransaction()
void rollbackTransaction()
Object execute(TransactionCallBack callback)
callback
- void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager
- void setTransactionDefinition(org.springframework.transaction.TransactionDefinition transactionDefinition)
transactionDefinition
- Copyright © 2006–2018 TinyGroup. All rights reserved.