diff --git a/jOOQ/src/main/java/org/jooq/InsertOnConflictDoUpdateStep.java b/jOOQ/src/main/java/org/jooq/InsertOnConflictDoUpdateStep.java index 9452290b9f..1b32f51466 100644 --- a/jOOQ/src/main/java/org/jooq/InsertOnConflictDoUpdateStep.java +++ b/jOOQ/src/main/java/org/jooq/InsertOnConflictDoUpdateStep.java @@ -66,5 +66,5 @@ public interface InsertOnConflictDoUpdateStep { * Add the DO IGNORE clause. */ @Support({ POSTGRES_9_5 }) - InsertFinalStep doNothing(); + InsertReturningStep doNothing(); } diff --git a/jOOQ/src/main/java/org/jooq/InsertOnConflictWhereStep.java b/jOOQ/src/main/java/org/jooq/InsertOnConflictWhereStep.java index c09688c0a7..57aed2ac68 100644 --- a/jOOQ/src/main/java/org/jooq/InsertOnConflictWhereStep.java +++ b/jOOQ/src/main/java/org/jooq/InsertOnConflictWhereStep.java @@ -57,27 +57,27 @@ import org.jooq.impl.DSL; * * @author Lukas Eder */ -public interface InsertOnConflictWhereStep extends InsertFinalStep { +public interface InsertOnConflictWhereStep extends InsertReturningStep { /** * Add a WHERE clause to the query, connecting them with each * other with {@link Operator#AND}. */ @Support({ POSTGRES_9_5 }) - InsertFinalStep where(Condition... conditions); + InsertReturningStep where(Condition... conditions); /** * Add a WHERE clause to the query, connecting them with each * other with {@link Operator#AND}. */ @Support({ POSTGRES_9_5 }) - InsertFinalStep where(Collection conditions); + InsertReturningStep where(Collection conditions); /** * Add a WHERE clause to the query. */ @Support({ POSTGRES_9_5 }) - InsertFinalStep where(Field field); + InsertReturningStep where(Field field); /** * Add a WHERE clause to the query. @@ -92,7 +92,7 @@ public interface InsertOnConflictWhereStep extends InsertFinal */ @Support({ POSTGRES_9_5 }) @PlainSQL - InsertFinalStep where(SQL sql); + InsertReturningStep where(SQL sql); /** * Add a WHERE clause to the query. @@ -107,7 +107,7 @@ public interface InsertOnConflictWhereStep extends InsertFinal */ @Support({ POSTGRES_9_5 }) @PlainSQL - InsertFinalStep where(String sql); + InsertReturningStep where(String sql); /** * Add a WHERE clause to the query. @@ -123,7 +123,7 @@ public interface InsertOnConflictWhereStep extends InsertFinal */ @Support({ POSTGRES_9_5 }) @PlainSQL - InsertFinalStep where(String sql, Object... bindings); + InsertReturningStep where(String sql, Object... bindings); /** * Add a WHERE clause to the query. @@ -139,17 +139,17 @@ public interface InsertOnConflictWhereStep extends InsertFinal */ @Support({ POSTGRES_9_5 }) @PlainSQL - InsertFinalStep where(String sql, QueryPart... parts); + InsertReturningStep where(String sql, QueryPart... parts); /** * Add a WHERE EXISTS clause to the query. */ @Support({ POSTGRES_9_5 }) - InsertFinalStep whereExists(Select select); + InsertReturningStep whereExists(Select select); /** * Add a WHERE NOT EXISTS clause to the query. */ @Support({ POSTGRES_9_5 }) - InsertFinalStep whereNotExists(Select select); + InsertReturningStep whereNotExists(Select select); } diff --git a/jOOQ/src/main/java/org/jooq/InsertOnDuplicateStep.java b/jOOQ/src/main/java/org/jooq/InsertOnDuplicateStep.java index e208fe70cb..6690479d91 100644 --- a/jOOQ/src/main/java/org/jooq/InsertOnDuplicateStep.java +++ b/jOOQ/src/main/java/org/jooq/InsertOnDuplicateStep.java @@ -82,7 +82,7 @@ public interface InsertOnDuplicateStep extends InsertReturning * Add an ON CONFLICT DO NOTHING clause to this insert query. */ @Support({ POSTGRES_9_5 }) - InsertFinalStep onConflictDoNothing(); + InsertReturningStep onConflictDoNothing(); /** * Add an ON DUPLICATE KEY UPDATE clause to this insert query. @@ -160,5 +160,5 @@ public interface InsertOnDuplicateStep extends InsertReturning * */ @Support - InsertFinalStep onDuplicateKeyIgnore(); + InsertReturningStep onDuplicateKeyIgnore(); }