public class NativeSqlUpsertOnDuplicateKeyUpdateSelectingKeys extends AbstractStatement<NativeSqlUpsertTerminal,java.lang.Integer>
EXECUTE_METHOD, EXECUTE_METHOD_NAME| Constructor and Description |
|---|
NativeSqlUpsertOnDuplicateKeyUpdateSelectingKeys(Config config,
InsertDeclaration declaration) |
| Modifier and Type | Method and Description |
|---|---|
protected Command<java.lang.Integer> |
createCommand() |
NativeSqlUpsertOnDuplicateKeyUpdateSelectingSet |
keys(PropertyMetamodel<?>... keys)
Specify the keys used for duplicate checking UPSERT statement.
|
NativeSqlUpsertTerminal |
set(java.util.function.Consumer<InsertOnDuplicateKeyUpdateSetValuesDeclaration> block)
Specify the set clause for the UPSERT statement.
|
asSql, createCommenter, execute, peekpublic NativeSqlUpsertOnDuplicateKeyUpdateSelectingKeys(Config config, InsertDeclaration declaration)
public NativeSqlUpsertOnDuplicateKeyUpdateSelectingSet keys(PropertyMetamodel<?>... keys)
Id property are used for duplicate checking.keys - keys the keys used for duplicate checkingpublic NativeSqlUpsertTerminal set(java.util.function.Consumer<InsertOnDuplicateKeyUpdateSetValuesDeclaration> block)
Id properties are used for set value.block - the consumer to set the clauseprotected Command<java.lang.Integer> createCommand()
createCommand in class AbstractStatement<NativeSqlUpsertTerminal,java.lang.Integer>