public final class UndoLogManager extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
protected static void |
appendInParam(int size,
StringBuilder sqlBuilder) |
static void |
batchDeleteUndoLog(Set<String> xids,
Set<Long> branchIds,
Connection conn)
batch Delete undo log.
|
static void |
deleteUndoLog(String xid,
long branchId,
Connection conn)
Delete undo log.
|
static void |
flushUndoLogs(ConnectionProxy cp)
Flush undo logs.
|
static String |
getCurrentSerializer() |
protected static String |
toBatchDeleteUndoLogSql(int xidSize,
int branchIdSize) |
static void |
undo(DataSourceProxy dataSourceProxy,
String xid,
long branchId)
Undo.
|
public static void flushUndoLogs(ConnectionProxy cp) throws SQLException
cp - the cpSQLException - the sql exceptionpublic static void undo(DataSourceProxy dataSourceProxy, String xid, long branchId) throws TransactionException
dataSourceProxy - the data source proxyxid - the xidbranchId - the branch idTransactionException - the transaction exceptionpublic static void batchDeleteUndoLog(Set<String> xids, Set<Long> branchIds, Connection conn) throws SQLException
xids - branchIds - conn - SQLExceptionprotected static String toBatchDeleteUndoLogSql(int xidSize, int branchIdSize)
protected static void appendInParam(int size,
StringBuilder sqlBuilder)
public static void deleteUndoLog(String xid, long branchId, Connection conn) throws SQLException
xid - the xidbranchId - the branch idconn - the connSQLException - the sql exceptionpublic static String getCurrentSerializer()
Copyright © 2019 Seata. All rights reserved.