@LoadLevel(name="mysql", scope=PROTOTYPE) public class MySQLInsertExecutor extends BaseInsertExecutor implements Defaultable
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ERR_SQL_STATE
the modify for test
|
static Map<String,BigDecimal> |
RESOURCE_ID_STEP_CACHE
The cache of auto increment step of database
the key is the db's resource id
the value is the step
|
PLACEHOLDERWHEREsqlRecognizer, sqlRecognizers, statementCallback, statementProxy| 构造器和说明 |
|---|
MySQLInsertExecutor(StatementProxy statementProxy,
StatementCallback statementCallback,
SQLRecognizer sqlRecognizer)
Instantiates a new Abstract dml base executor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<String,List<Object>> |
autoGeneratePks(BigDecimal cursor,
String autoColumnName,
Integer updateCount) |
protected boolean |
canAutoIncrement(Map<String,ColumnMeta> primaryKeyMap) |
Map<String,List<Object>> |
getPkValues()
get primary key values.
|
Map<String,List<Object>> |
getPkValuesByAuto()
the modify for test
|
Map<String,List<Object>> |
getPkValuesByColumn()
get primary key values by insert column.
|
List<Object> |
getPkValuesByDefault()
get primary key values by default keyword.
|
afterImage, beforeImage, checkPkValues, checkPkValuesForMultiPk, checkPkValuesForSinglePk, containsColumns, containsPK, getGeneratedKeys, getPkIndex, getPkValuesBySequence, parsePkValuesFromStatementdoExecute, executeAutoCommitFalse, executeAutoCommitTruebuildLimitCondition, buildLockKey, buildOrderCondition, buildTableRecords, buildTableRecords, buildUndoItem, buildWhereCondition, containPK, containsPK, execute, getColumnNameInSQL, getColumnNamesInSQL, getDbType, getFromTableInSQL, getStandardPkColumnName, getTableMeta, getTableMeta, prepareUndoLogpublic static final Map<String,BigDecimal> RESOURCE_ID_STEP_CACHE
public MySQLInsertExecutor(StatementProxy statementProxy, StatementCallback statementCallback, SQLRecognizer sqlRecognizer)
statementProxy - the statement proxystatementCallback - the statement callbacksqlRecognizer - the sql recognizerpublic Map<String,List<Object>> getPkValues() throws SQLException
InsertExecutorgetPkValues 在接口中 InsertExecutorSQLException - the sql exceptionpublic Map<String,List<Object>> getPkValuesByAuto() throws SQLException
SQLExceptionpublic Map<String,List<Object>> getPkValuesByColumn() throws SQLException
InsertExecutorgetPkValuesByColumn 在接口中 InsertExecutorSQLException - the sql exceptionpublic List<Object> getPkValuesByDefault() throws SQLException
DefaultablegetPkValuesByDefault 在接口中 DefaultableSQLException - the sql exceptionprotected Map<String,List<Object>> autoGeneratePks(BigDecimal cursor, String autoColumnName, Integer updateCount) throws SQLException
SQLExceptionprotected boolean canAutoIncrement(Map<String,ColumnMeta> primaryKeyMap)
Copyright © 2022 Seata. All rights reserved.