public class SagaLevel3Context
extends org.beetl.sql.saga.common.SagaContext
SagaLevel3Config| 构造器和说明 |
|---|
SagaLevel3Context(SagaLevel3Config config) |
SagaLevel3Context(SagaLevel3Transaction transaction,
SagaLevel3Config config) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
callService(Callable<T> callable,
Runnable runnable)
非sql类的,比如批量增加数据,逆向操作可能只是简单的删除外键,而不需要每条都删除
|
protected void |
clear() |
void |
commit() |
org.beetl.sql.saga.common.SagaTransaction |
getTransaction() |
protected void |
newTransaction() |
boolean |
realRollback()
真正的本地回滚
|
void |
rollback() |
void |
start() |
void |
start(String gid) |
public SagaLevel3Context(SagaLevel3Config config)
public SagaLevel3Context(SagaLevel3Transaction transaction, SagaLevel3Config config)
public void start()
start 在类中 org.beetl.sql.saga.common.SagaContextpublic void start(String gid)
start 在类中 org.beetl.sql.saga.common.SagaContextpublic void commit()
commit 在类中 org.beetl.sql.saga.common.SagaContextpublic void rollback()
rollback 在类中 org.beetl.sql.saga.common.SagaContextpublic boolean realRollback()
public org.beetl.sql.saga.common.SagaTransaction getTransaction()
getTransaction 在类中 org.beetl.sql.saga.common.SagaContextprotected void newTransaction()
protected void clear()
Copyright © 2020. All rights reserved.