T - the type parameterS - the type parameterpublic abstract class AbstractDMLBaseExecutor<T,S extends Statement> extends BaseTransactionalExecutor<T,S>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
GROUP_BY |
protected static String |
WHERE |
sqlRecognizer, sqlRecognizers, statementCallback, statementProxy| Constructor and Description |
|---|
AbstractDMLBaseExecutor(StatementProxy<S> statementProxy,
StatementCallback<T,S> statementCallback,
List<SQLRecognizer> sqlRecognizers)
Instantiates a new Base transactional executor.
|
AbstractDMLBaseExecutor(StatementProxy<S> statementProxy,
StatementCallback<T,S> statementCallback,
SQLRecognizer sqlRecognizer)
Instantiates a new Abstract dml base executor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract TableRecords |
afterImage(TableRecords beforeImage)
After image table records.
|
protected abstract TableRecords |
beforeImage()
Before image table records.
|
T |
doExecute(Object... args)
Do execute object.
|
protected T |
executeAutoCommitFalse(Object[] args)
Execute auto commit false t.
|
protected T |
executeAutoCommitTrue(Object[] args)
Execute auto commit true t.
|
buildLimitCondition, buildLockKey, buildOrderCondition, buildTableRecords, buildTableRecords, buildUndoItem, buildWhereCondition, containPK, containsPK, containsPK, execute, getColumnNameInSQL, getColumnNamesInSQL, getColumnNamesInSQLList, getColumnNamesWithTablePrefix, getColumnNamesWithTablePrefixList, getColumnNameWithTablePrefix, getDbType, getFromTableInSQL, getNeedColumns, getStandardPkColumnName, getTableMeta, getTableMeta, prepareUndoLog, validPkprotected static final String WHERE
protected static final String GROUP_BY
public AbstractDMLBaseExecutor(StatementProxy<S> statementProxy, StatementCallback<T,S> statementCallback, SQLRecognizer sqlRecognizer)
statementProxy - the statement proxystatementCallback - the statement callbacksqlRecognizer - the sql recognizerpublic AbstractDMLBaseExecutor(StatementProxy<S> statementProxy, StatementCallback<T,S> statementCallback, List<SQLRecognizer> sqlRecognizers)
statementProxy - the statement proxystatementCallback - the statement callbacksqlRecognizers - the multi sql recognizerpublic T doExecute(Object... args) throws Throwable
BaseTransactionalExecutorprotected T executeAutoCommitFalse(Object[] args) throws Exception
args - the argsException - the exceptionprotected T executeAutoCommitTrue(Object[] args) throws Throwable
args - the argsThrowable - the throwableprotected abstract TableRecords beforeImage() throws SQLException
SQLException - the sql exceptionprotected abstract TableRecords afterImage(TableRecords beforeImage) throws SQLException
beforeImage - the before imageSQLException - the sql exceptionCopyright © 2024 Apache. All rights reserved.