T - the type parameterS - the type parameterpublic class InsertExecutor<T,S extends Statement> extends AbstractDMLBaseExecutor<T,S>
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
ERR_SQL_STATE |
sqlRecognizer, statementCallback, statementProxy| 构造器和说明 |
|---|
InsertExecutor(StatementProxy statementProxy,
StatementCallback statementCallback,
SQLRecognizer sqlRecognizer)
Instantiates a new Insert executor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected TableRecords |
afterImage(TableRecords beforeImage)
After image table records.
|
protected TableRecords |
beforeImage()
Before image table records.
|
protected boolean |
containsColumns() |
protected boolean |
containsPK() |
protected int |
getPkIndex()
get pk index
|
protected List<Object> |
getPkValuesByAuto() |
protected List<Object> |
getPkValuesByColumn() |
protected List<Object> |
getPkValuesBySequence(Object expr) |
doExecute, executeAutoCommitFalse, executeAutoCommitTruebuildLockKey, buildTableRecords, buildTableRecords, buildUndoItem, buildWhereCondition, buildWhereConditionByPKs, execute, getColumnNameInSQL, getDbType, getFromTableInSQL, getTableMeta, getTableMeta, prepareUndoLogpublic InsertExecutor(StatementProxy statementProxy, StatementCallback statementCallback, SQLRecognizer sqlRecognizer)
statementProxy - the statement proxystatementCallback - the statement callbacksqlRecognizer - the sql recognizerprotected TableRecords beforeImage() throws SQLException
AbstractDMLBaseExecutorbeforeImage 在类中 AbstractDMLBaseExecutor<T,S extends Statement>SQLException - the sql exceptionprotected TableRecords afterImage(TableRecords beforeImage) throws SQLException
AbstractDMLBaseExecutorafterImage 在类中 AbstractDMLBaseExecutor<T,S extends Statement>beforeImage - the before imageSQLException - the sql exceptionprotected boolean containsPK()
protected boolean containsColumns()
protected List<Object> getPkValuesByColumn() throws SQLException
SQLExceptionprotected List<Object> getPkValuesBySequence(Object expr) throws SQLException
SQLExceptionprotected List<Object> getPkValuesByAuto() throws SQLException
SQLExceptionprotected int getPkIndex()
Copyright © 2019 Seata. All rights reserved.