@LoadLevel(name="mysql",
scope=PROTOTYPE)
public class MySQLInsertExecutor
extends BaseInsertExecutor
implements Defaultable
| Modifier and Type | Field and Description |
|---|---|
static String |
ERR_SQL_STATE
the modify for test
|
protected org.slf4j.Logger |
logger |
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
|
PLACEHOLDERGROUP_BY, WHEREsqlRecognizer, sqlRecognizers, statementCallback, statementProxy| Constructor and Description |
|---|
MySQLInsertExecutor(StatementProxy statementProxy,
StatementCallback statementCallback,
SQLRecognizer sqlRecognizer)
Instantiates a new Abstract dml base executor.
|
| Modifier and Type | Method and Description |
|---|---|
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()
Deprecated.
|
List<Object> |
getPkValuesByDefault(String pkKey) |
afterImage, beforeImage, checkPkValues, checkPkValuesForMultiPk, checkPkValuesForSinglePk, containsColumns, containsPK, getGeneratedKeys, getGeneratedKeys, getPkIndex, getPkValuesBySequence, getPkValuesBySequence, parsePkValuesFromStatementdoExecute, executeAutoCommitFalse, executeAutoCommitTruebuildLimitCondition, buildLockKey, buildOrderCondition, buildTableRecords, buildTableRecords, buildUndoItem, buildWhereCondition, containPK, containsPK, containsPK, execute, getColumnNameInSQL, getColumnNamesInSQL, getColumnNamesInSQLList, getColumnNamesWithTablePrefix, getColumnNamesWithTablePrefixList, getColumnNameWithTablePrefix, getDbType, getFromTableInSQL, getNeedColumns, getStandardPkColumnName, getTableMeta, getTableMeta, prepareUndoLog, validPkprotected final org.slf4j.Logger logger
public static final String ERR_SQL_STATE
public 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 in interface InsertExecutorSQLException - the sql exceptionpublic Map<String,List<Object>> getPkValuesByAuto() throws SQLException
SQLExceptionpublic Map<String,List<Object>> getPkValuesByColumn() throws SQLException
InsertExecutorgetPkValuesByColumn in interface InsertExecutorSQLException - the sql exception@Deprecated public List<Object> getPkValuesByDefault() throws SQLException
getPkValuesByDefault in interface DefaultableSQLExceptionpublic List<Object> getPkValuesByDefault(String pkKey) throws SQLException
getPkValuesByDefault in interface DefaultableSQLExceptionprotected Map<String,List<Object>> autoGeneratePks(BigDecimal cursor, String autoColumnName, Integer updateCount) throws SQLException
SQLExceptionprotected boolean canAutoIncrement(Map<String,ColumnMeta> primaryKeyMap)
Copyright © 2024 Apache. All rights reserved.