T - the type parameterS - the type parameterpublic class MultiExecutor<T,S extends Statement> extends AbstractDMLBaseExecutor<T,S>
jdbcTemplate.update("update account_tbl set money = money - ? where user_id = ?;update account_tbl set money = money - ? where user_id = ?", new Object[] {money, userId,"U10000",money,"U1000"});
GROUP_BY, WHEREsqlRecognizer, sqlRecognizers, statementCallback, statementProxy| Constructor and Description |
|---|
MultiExecutor(StatementProxy<S> statementProxy,
StatementCallback<T,S> statementCallback,
List<SQLRecognizer> sqlRecognizers)
Instantiates a new Abstract dml base executor.
|
| Modifier and Type | Method and Description |
|---|---|
protected TableRecords |
afterImage(TableRecords beforeImage)
After image table records.
|
protected TableRecords |
beforeImage()
Before image table records.
|
Map<SQLRecognizer,TableRecords> |
getAfterImagesMap() |
Map<SQLRecognizer,TableRecords> |
getBeforeImagesMap() |
Map<String,List<SQLRecognizer>> |
getMultiSqlGroup() |
protected void |
prepareUndoLog(TableRecords beforeImage,
TableRecords afterImage)
prepare undo log.
|
doExecute, executeAutoCommitFalse, executeAutoCommitTruebuildLimitCondition, buildLockKey, buildOrderCondition, buildTableRecords, buildTableRecords, buildUndoItem, buildWhereCondition, containPK, containsPK, containsPK, execute, getColumnNameInSQL, getColumnNamesInSQL, getColumnNamesInSQLList, getColumnNamesWithTablePrefix, getColumnNamesWithTablePrefixList, getColumnNameWithTablePrefix, getDbType, getFromTableInSQL, getNeedColumns, getStandardPkColumnName, getTableMeta, getTableMeta, validPkpublic MultiExecutor(StatementProxy<S> statementProxy, StatementCallback<T,S> statementCallback, List<SQLRecognizer> sqlRecognizers)
statementProxy - the statement proxystatementCallback - the statement callbacksqlRecognizers - the sql recognizersprotected TableRecords beforeImage() throws SQLException
beforeImage in class AbstractDMLBaseExecutor<T,S extends Statement>SQLException - the sql exceptionvalidate sqlTypeprotected TableRecords afterImage(TableRecords beforeImage) throws SQLException
AbstractDMLBaseExecutorafterImage in class AbstractDMLBaseExecutor<T,S extends Statement>beforeImage - the before imageSQLException - the sql exceptionprotected void prepareUndoLog(TableRecords beforeImage, TableRecords afterImage) throws SQLException
BaseTransactionalExecutorprepareUndoLog in class BaseTransactionalExecutor<T,S extends Statement>beforeImage - the before imageafterImage - the after imageSQLException - the sql exceptionpublic Map<String,List<SQLRecognizer>> getMultiSqlGroup()
public Map<SQLRecognizer,TableRecords> getBeforeImagesMap()
public Map<SQLRecognizer,TableRecords> getAfterImagesMap()
Copyright © 2024 Apache. All rights reserved.