public abstract class AbstractUndoExecutor extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected SQLUndoLog |
sqlUndoLog
The Sql undo log.
|
| 构造器和说明 |
|---|
AbstractUndoExecutor(SQLUndoLog sqlUndoLog)
Instantiates a new Abstract undo executor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract String |
buildUndoSQL()
Build undo sql string.
|
protected void |
dataValidation(Connection conn)
Data validation.
|
void |
executeOn(Connection conn)
Execute on.
|
protected abstract TableRecords |
getUndoRows()
Gets undo rows.
|
protected void |
undoPrepare(PreparedStatement undoPST,
ArrayList<Field> undoValues,
Field pkValue)
Undo prepare.
|
protected SQLUndoLog sqlUndoLog
public AbstractUndoExecutor(SQLUndoLog sqlUndoLog)
sqlUndoLog - the sql undo logprotected abstract String buildUndoSQL()
public void executeOn(Connection conn) throws SQLException
conn - the connSQLException - the sql exceptionprotected void undoPrepare(PreparedStatement undoPST, ArrayList<Field> undoValues, Field pkValue) throws SQLException
undoPST - the undo pstundoValues - the undo valuespkValue - the pk valueSQLException - the sql exceptionprotected abstract TableRecords getUndoRows()
protected void dataValidation(Connection conn) throws SQLException
conn - the connSQLException - the sql exceptionCopyright © 2019 Seata. All rights reserved.