public abstract class AbstractUndoExecutor extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static boolean |
IS_UNDO_DATA_VALIDATION_ENABLE
Switch of undo data validation
|
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 boolean |
dataValidationAndGoOn(Connection conn)
Data validation.
|
void |
executeOn(Connection conn)
Execute on.
|
SQLUndoLog |
getSqlUndoLog()
Gets sql undo log.
|
protected abstract TableRecords |
getUndoRows()
Gets undo rows.
|
protected Object[] |
parsePkValues(TableRecords records)
Parse pk values object [ ].
|
protected TableRecords |
queryCurrentRecords(Connection conn)
Query current records.
|
protected void |
undoPrepare(PreparedStatement undoPST,
ArrayList<Field> undoValues,
Field pkValue)
Undo prepare.
|
public static final boolean IS_UNDO_DATA_VALIDATION_ENABLE
protected SQLUndoLog sqlUndoLog
public AbstractUndoExecutor(SQLUndoLog sqlUndoLog)
sqlUndoLog - the sql undo logprotected abstract String buildUndoSQL()
public SQLUndoLog getSqlUndoLog()
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 boolean dataValidationAndGoOn(Connection conn) throws SQLException
conn - the connSQLException - the sql exception such as has dirty dataprotected TableRecords queryCurrentRecords(Connection conn) throws SQLException
conn - the connSQLException - the sql exceptionprotected Object[] parsePkValues(TableRecords records)
records - the recordsCopyright © 2019 Seata. All rights reserved.