public class MySQLUpdateJoinExecutor<T,S extends Statement> extends UpdateExecutor<T,S>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isLowerSupportGroupByPksVersion |
protected org.slf4j.Logger |
logger |
GROUP_BY, WHEREsqlRecognizer, sqlRecognizers, statementCallback, statementProxy| Constructor and Description |
|---|
MySQLUpdateJoinExecutor(StatementProxy<S> statementProxy,
StatementCallback<T,S> statementCallback,
SQLRecognizer sqlRecognizer)
Instantiates a new Update executor.
|
| Modifier and Type | Method and Description |
|---|---|
protected TableRecords |
afterImage(TableRecords beforeImage)
After image table records.
|
protected TableRecords |
beforeImage()
Before image table records.
|
protected SQLUndoLog |
buildUndoItem(TableRecords beforeImage,
TableRecords afterImage)
build a SQLUndoLog
|
protected TableMeta |
getTableMeta(String tableName)
Gets table meta.
|
protected void |
prepareUndoLog(TableRecords beforeImage,
TableRecords afterImage)
prepare undo log.
|
buildBeforeImageSQLdoExecute, executeAutoCommitFalse, executeAutoCommitTruebuildLimitCondition, buildLockKey, buildOrderCondition, buildTableRecords, buildTableRecords, buildWhereCondition, containPK, containsPK, containsPK, execute, getColumnNameInSQL, getColumnNamesInSQL, getColumnNamesInSQLList, getColumnNamesWithTablePrefix, getColumnNamesWithTablePrefixList, getColumnNameWithTablePrefix, getDbType, getFromTableInSQL, getNeedColumns, getStandardPkColumnName, getTableMeta, validPkprotected final org.slf4j.Logger logger
protected boolean isLowerSupportGroupByPksVersion
public MySQLUpdateJoinExecutor(StatementProxy<S> statementProxy, StatementCallback<T,S> statementCallback, SQLRecognizer sqlRecognizer)
statementProxy - the statement proxystatementCallback - the statement callbacksqlRecognizer - the sql recognizerprotected TableRecords beforeImage() throws SQLException
AbstractDMLBaseExecutorbeforeImage in class UpdateExecutor<T,S extends Statement>SQLException - the sql exceptionprotected TableRecords afterImage(TableRecords beforeImage) throws SQLException
AbstractDMLBaseExecutorafterImage in class UpdateExecutor<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 exceptionprotected TableMeta getTableMeta(String tableName)
BaseTransactionalExecutorgetTableMeta in class BaseTransactionalExecutor<T,S extends Statement>tableName - the table nameprotected SQLUndoLog buildUndoItem(TableRecords beforeImage, TableRecords afterImage)
buildUndoItem in class BaseTransactionalExecutor<T,S extends Statement>beforeImage - the before imageafterImage - the after imageCopyright © 2024 Apache. All rights reserved.