public interface ITransactionDao
| 限定符和类型 | 方法和说明 |
|---|---|
List<TGlobalTransaction> |
findFailedGlobals()
查询所有失败,或者部分回滚的全局事务记录
|
List<TGlobalTransactionProcess> |
findFailedProcess(Integer transactionId)
查找所有的失败的或者未知的事务过程记录
|
List<TGlobalTransactionProcess> |
findSucceedProcess(Integer transactionId)
查找所有的成功的或者未知的事务过程记录
|
List<TGlobalTransaction> |
findSuccessWithFailedProcessGlobals()
查找所有状态为成功,但子过程中有失败的全局事务记录
|
TGlobalTransaction |
getGlobalByIdForUpdate(Integer id) |
TGlobalTransactionProcess |
getProcessByIdForUpdate(Integer id) |
Integer |
insert(TGlobalTransaction globalTransaction)
插入全局事务记录
|
Integer |
insert(TGlobalTransactionProcess globalTransactionProcess)
插入事务过程记录
|
void |
updateGlobalTransactionStatusAndCurrSeq(Integer status,
Integer currSequence,
Integer id)
更新全局事务记录的状态和当前子事务序号
|
void |
updateProcess(Integer id,
Integer status,
String response)
更新事务过程的状态和返回结果
|
void |
updateProcessExpectedStatus(Integer id,
Integer expectedStatus)
更新事务过程的期望状态
|
void |
updateProcessRollbackTime(Integer id,
Integer redoTimes,
Date nextRedoTime)
更新重试次数和下次重试时间
|
Integer insert(TGlobalTransaction globalTransaction)
globalTransaction - Integer insert(TGlobalTransactionProcess globalTransactionProcess)
globalTransactionProcess - TGlobalTransaction getGlobalByIdForUpdate(Integer id)
TGlobalTransactionProcess getProcessByIdForUpdate(Integer id)
List<TGlobalTransactionProcess> findFailedProcess(Integer transactionId)
transactionId - List<TGlobalTransactionProcess> findSucceedProcess(Integer transactionId)
transactionId - List<TGlobalTransaction> findFailedGlobals()
List<TGlobalTransaction> findSuccessWithFailedProcessGlobals()
void updateProcessRollbackTime(Integer id, Integer redoTimes, Date nextRedoTime)
id - redoTimes - nextRedoTime - void updateGlobalTransactionStatusAndCurrSeq(Integer status, Integer currSequence, Integer id)
status - currSequence - id - void updateProcess(Integer id, Integer status, String response)
id - status - response - Copyright © 2020. All rights reserved.