diff --git a/jOOQ/src/main/java/org/jooq/DSLContext.java b/jOOQ/src/main/java/org/jooq/DSLContext.java index 0a2429de90..6dc69f4c14 100644 --- a/jOOQ/src/main/java/org/jooq/DSLContext.java +++ b/jOOQ/src/main/java/org/jooq/DSLContext.java @@ -11539,7 +11539,7 @@ public interface DSLContext extends Scope , AutoCloseable { * @throws DataAccessException if something went wrong executing the query */ @Support - > int executeInsert(R record) throws DataAccessException; + int executeInsert(TableRecord record) throws DataAccessException; /** * Update a table. @@ -11549,7 +11549,7 @@ public interface DSLContext extends Scope , AutoCloseable { * @throws DataAccessException if something went wrong executing the query */ @Support - > int executeUpdate(R record) throws DataAccessException; + int executeUpdate(UpdatableRecord record) throws DataAccessException; /** * Update a table. @@ -11559,7 +11559,7 @@ public interface DSLContext extends Scope , AutoCloseable { * @throws DataAccessException if something went wrong executing the query */ @Support - , T> int executeUpdate(R record, Condition condition) throws DataAccessException; + int executeUpdate(TableRecord record, Condition condition) throws DataAccessException; /** * Delete a record from a table. @@ -11569,7 +11569,7 @@ public interface DSLContext extends Scope , AutoCloseable { * @throws DataAccessException if something went wrong executing the query */ @Support - > int executeDelete(R record) throws DataAccessException; + int executeDelete(UpdatableRecord record) throws DataAccessException; /** * Delete a record from a table. @@ -11579,5 +11579,5 @@ public interface DSLContext extends Scope , AutoCloseable { * @throws DataAccessException if something went wrong executing the query */ @Support - , T> int executeDelete(R record, Condition condition) throws DataAccessException; + int executeDelete(TableRecord record, Condition condition) throws DataAccessException; } diff --git a/jOOQ/src/main/java/org/jooq/impl/DefaultDSLContext.java b/jOOQ/src/main/java/org/jooq/impl/DefaultDSLContext.java index 5d83d1009f..400f1e53bd 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DefaultDSLContext.java +++ b/jOOQ/src/main/java/org/jooq/impl/DefaultDSLContext.java @@ -4420,38 +4420,38 @@ public class DefaultDSLContext extends AbstractScope implements DSLContext, Seri @Override - public > int executeInsert(R record) { - InsertQuery insert = insertQuery(record.getTable()); + public int executeInsert(TableRecord record) { + InsertQuery insert = insertQuery(record.getTable()); insert.setRecord(record); return insert.execute(); } @Override - public > int executeUpdate(R record) { - UpdateQuery update = updateQuery(record.getTable()); + public int executeUpdate(UpdatableRecord record) { + UpdateQuery update = updateQuery(record.getTable()); Tools.addConditions(update, record, record.getTable().getPrimaryKey().getFieldsArray()); update.setRecord(record); return update.execute(); } @Override - public , T> int executeUpdate(R record, Condition condition) { - UpdateQuery update = updateQuery(record.getTable()); + public int executeUpdate(TableRecord record, Condition condition) { + UpdateQuery update = updateQuery(record.getTable()); update.addConditions(condition); update.setRecord(record); return update.execute(); } @Override - public > int executeDelete(R record) { - DeleteQuery delete = deleteQuery(record.getTable()); + public int executeDelete(UpdatableRecord record) { + DeleteQuery delete = deleteQuery(record.getTable()); Tools.addConditions(delete, record, record.getTable().getPrimaryKey().getFieldsArray()); return delete.execute(); } @Override - public , T> int executeDelete(R record, Condition condition) { - DeleteQuery delete = deleteQuery(record.getTable()); + public int executeDelete(TableRecord record, Condition condition) { + DeleteQuery delete = deleteQuery(record.getTable()); delete.addConditions(condition); return delete.execute(); }