public interface TransactionScript
void
begin()
commit()
execute(TransactionExecutor executor)
TransactionExecutor.execute()
rollback()
void begin()
void rollback()
void commit()
void execute(TransactionExecutor executor)
事务执行:
1、开启事务 begin()
2、执行 TransactionExecutor.execute()
2、提交或回滚 commit() 或 rollback()
executor
Copyright © 2019. All rights reserved.