T - the type parameterS - the type parameterpublic abstract class AbstractDMLBaseExecutor<T,S extends Statement> extends BaseTransactionalExecutor<T,S>
sqlRecognizer, statementCallback, statementProxy| 构造器和说明 |
|---|
AbstractDMLBaseExecutor(StatementProxy<S> statementProxy,
StatementCallback<T,S> statementCallback,
SQLRecognizer sqlRecognizer)
Instantiates a new Abstract dml base executor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract TableRecords |
afterImage(TableRecords beforeImage)
After image table records.
|
protected abstract TableRecords |
beforeImage()
Before image table records.
|
T |
doExecute(Object... args)
Do execute object.
|
protected T |
executeAutoCommitFalse(Object[] args)
Execute auto commit false t.
|
protected T |
executeAutoCommitTrue(Object[] args)
Execute auto commit true t.
|
buildLockKey, buildTableRecords, buildTableRecords, buildUndoItem, buildWhereCondition, buildWhereConditionByPKs, execute, getColumnNameInSQL, getDbType, getFromTableInSQL, getTableMeta, getTableMeta, prepareUndoLogpublic AbstractDMLBaseExecutor(StatementProxy<S> statementProxy, StatementCallback<T,S> statementCallback, SQLRecognizer sqlRecognizer)
statementProxy - the statement proxystatementCallback - the statement callbacksqlRecognizer - the sql recognizerpublic T doExecute(Object... args) throws Throwable
BaseTransactionalExecutorprotected T executeAutoCommitFalse(Object[] args) throws Exception
args - the argsException - the exceptionprotected T executeAutoCommitTrue(Object[] args) throws Throwable
args - the argsThrowable - the throwableprotected abstract TableRecords beforeImage() throws SQLException
SQLException - the sql exceptionprotected abstract TableRecords afterImage(TableRecords beforeImage) throws SQLException
beforeImage - the before imageSQLException - the sql exceptionCopyright © 2019 Seata. All rights reserved.