Top Description Methods
org.jooq

public Interface InsertOnConflictDoUpdateStep<R extends org.jooq.Record>

Known Direct Subinterfaces
org.jooq.InsertOnConflictWhereIndexPredicateStep
Imports
org.jetbrains.annotations.*

This type is used for the Insert's DSL API.

Example:


DSLContext create = DSL.using(configuration);

create.insertInto(table, field1, field2)
      .values(value1, value2)
      .onConflict(field1)
      .doUpdate()
      .set(field2, value2)
      .execute();
Authors
Lukas Eder, Fabrice Le Roy

Method Summary

Modifier and TypeMethod and Description
public @NotNull InsertReturningStep<R>
doNothing()

Deprecated as a consequence of InsertReturningStep being deprecated.
Add the DO NOTHING clause.
public @NotNull InsertOnDuplicateSetStep<R>
doUpdate()

Add the DO UPDATE clause.

Method Detail

doNothingback to summary
public @NotNull InsertReturningStep<R> doNothing()

Deprecated

as a consequence of InsertReturningStep being deprecated. See corresponding docs for further information.

Add the DO NOTHING clause.

Annotations
@NotNull
@CheckReturnValue
@Support
doUpdateback to summary
public @NotNull InsertOnDuplicateSetStep<R> doUpdate()

Add the DO UPDATE clause.

Annotations
@NotNull
@CheckReturnValue
@Support:CUBRID, DERBY, FIREBIRD, H2, HSQLDB, POSTGRES, SQLITE, YUGABYTEDB