diff --git a/jOOQ-test/src/org/jooq/test/_/testcases/CRUDTests.java b/jOOQ-test/src/org/jooq/test/_/testcases/CRUDTests.java index e7096b6a7d..da9453fa11 100644 --- a/jOOQ-test/src/org/jooq/test/_/testcases/CRUDTests.java +++ b/jOOQ-test/src/org/jooq/test/_/testcases/CRUDTests.java @@ -613,7 +613,7 @@ extends BaseTest> void testInsertIdentity0(Table table, TableField id, TableField val) throws Exception { // Plain insert @@ -460,7 +460,7 @@ extends BaseTest
INSERT INTO [table] ... VALUES [record] 
*

- * Unlike {@link TableRecord#storeUsing(TableField...)} or - * {@link UpdatableRecord#store()}, this does not change any of the argument - * record's internal "changed" flags, such that a subsequent - * call to {@link TableRecord#storeUsing(TableField...)} or - * {@link UpdatableRecord#store()} might lead to another INSERT - * statement being executed. + * Unlike {@link UpdatableRecord#store()}, this does not change any of the + * argument record's internal "changed" flags, such that a + * subsequent call to {@link UpdatableRecord#store()} might lead to another + * INSERT statement being executed. * * @return The number of inserted records * @throws DataAccessException if something went wrong executing the query diff --git a/jOOQ/src/main/java/org/jooq/TableRecord.java b/jOOQ/src/main/java/org/jooq/TableRecord.java index 801bc78416..8587a40ffc 100644 --- a/jOOQ/src/main/java/org/jooq/TableRecord.java +++ b/jOOQ/src/main/java/org/jooq/TableRecord.java @@ -171,7 +171,10 @@ public interface TableRecord> extends Record { * @throws DataAccessException if something went wrong executing the query * @throws DataChangedException If optimistic locking is enabled and the * record has already been changed/deleted in the database + * @deprecated - 2.5.0 [#1736] - These methods will be made part of jOOQ's + * internal API soon. Do not reuse these methods. */ + @Deprecated int storeUsing(TableField... keys) throws DataAccessException, DataChangedException; /** @@ -226,7 +229,10 @@ public interface TableRecord> extends Record { * @throws DataAccessException if something went wrong executing the query * @throws DataChangedException If optimistic locking is enabled and the * record has already been changed/deleted in the database + * @deprecated - 2.5.0 [#1736] - These methods will be made part of jOOQ's + * internal API soon. Do not reuse these methods. */ + @Deprecated int deleteUsing(TableField... keys) throws DataAccessException, DataChangedException; /** @@ -245,6 +251,9 @@ public interface TableRecord> extends Record { * record does not exist anymore in the database

  • the * provided keys return several records.
  • * + * @deprecated - 2.5.0 [#1736] - These methods will be made part of jOOQ's + * internal API soon. Do not reuse these methods. */ + @Deprecated void refreshUsing(TableField... keys) throws DataAccessException; } diff --git a/jOOQ/src/main/java/org/jooq/UpdatableRecord.java b/jOOQ/src/main/java/org/jooq/UpdatableRecord.java index e9acefa3a8..9ebc6dae7b 100644 --- a/jOOQ/src/main/java/org/jooq/UpdatableRecord.java +++ b/jOOQ/src/main/java/org/jooq/UpdatableRecord.java @@ -196,7 +196,6 @@ public interface UpdatableRecord> extends Updatable * @throws DataAccessException if something went wrong executing the query * @throws DataChangedException If optimistic locking is enabled and the * record has already been changed/deleted in the database - * @see #storeUsing(TableField...) */ int store() throws DataAccessException, DataChangedException; @@ -254,7 +253,6 @@ public interface UpdatableRecord> extends Updatable * @throws DataAccessException if something went wrong executing the query * @throws DataChangedException If optimistic locking is enabled and the * record has already been changed/deleted in the database - * @see #deleteUsing(TableField...) */ int delete() throws DataAccessException, DataChangedException; @@ -274,7 +272,6 @@ public interface UpdatableRecord> extends Updatable *
  • something went wrong executing the query
  • the * record does not exist anymore in the database
  • * - * @see #refreshUsing(TableField...) */ void refresh() throws DataAccessException; diff --git a/jOOQ/src/main/java/org/jooq/exception/InvalidResultException.java b/jOOQ/src/main/java/org/jooq/exception/InvalidResultException.java index c937b58475..a877cf3268 100644 --- a/jOOQ/src/main/java/org/jooq/exception/InvalidResultException.java +++ b/jOOQ/src/main/java/org/jooq/exception/InvalidResultException.java @@ -53,7 +53,6 @@ import org.jooq.UpdatableRecord; * {@link ResultQuery#fetchMap(org.jooq.Field)} and the database returns several * records per key. *
  • When you refresh a {@link TableRecord} using - * {@link TableRecord#refreshUsing(org.jooq.TableField...)}, or * {@link UpdatableRecord#refresh()}, and the record does not exist anymore in * the database.
  • *