@LoadLevel(name="postgresql", scope=PROTOTYPE) public class PostgresqlInsertExecutor extends BaseInsertExecutor implements Sequenceable, Defaultable
PLACEHOLDERGROUP_BY, WHEREsqlRecognizer, sqlRecognizers, statementCallback, statementProxy| Constructor and Description |
|---|
PostgresqlInsertExecutor(StatementProxy statementProxy,
StatementCallback statementCallback,
SQLRecognizer sqlRecognizer)
Instantiates a new Abstract dml base executor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnyPk()
Whether the insert columns contain any pk columns
|
Map<String,List<Object>> |
getPkValues()
1.
|
Map<String,List<Object>> |
getPkValuesByColumn()
get primary key values by insert column.
|
List<Object> |
getPkValuesByDefault()
Deprecated.
|
List<Object> |
getPkValuesByDefault(String pkKey)
get primary key values by default
|
String |
getSequenceSql(SqlSequenceExpr expr)
get sequence sql.
|
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, getColumnNamesWithTablePrefix, getColumnNamesWithTablePrefixList, getColumnNameWithTablePrefix, getDbType, getFromTableInSQL, getNeedColumns, getStandardPkColumnName, getTableMeta, getTableMeta, prepareUndoLogpublic PostgresqlInsertExecutor(StatementProxy statementProxy, StatementCallback statementCallback, SQLRecognizer sqlRecognizer)
statementProxy - the statement proxystatementCallback - the statement callbacksqlRecognizer - the sql recognizerpublic Map<String,List<Object>> getPkValues() throws SQLException
2. The pk value exists in insert rows. The possible situations are:
getPkValues in interface InsertExecutorMap<String, List<Object>>SQLException - the sql exceptionpublic boolean containsAnyPk()
public Map<String,List<Object>> getPkValuesByColumn() throws SQLException
InsertExecutorgetPkValuesByColumn in interface InsertExecutorSQLException - the sql exception@Deprecated public List<Object> getPkValuesByDefault() throws SQLException
getPkValuesByDefault in interface DefaultableSQLException - the sql exceptionpublic List<Object> getPkValuesByDefault(String pkKey) throws SQLException
getPkValuesByDefault in interface DefaultablepkKey - the pk keySQLException - the sql exceptionpublic String getSequenceSql(SqlSequenceExpr expr)
SequenceablegetSequenceSql in interface Sequenceableexpr - the exprCopyright © 2023 Seata. All rights reserved.