From ccc430b006bdb37da46ababe30a40ef9ab2aa0a8 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Mon, 17 May 2021 10:33:16 +0200 Subject: [PATCH] [jOOQ/jOOQ#11871] Fix documentation The wrong methods were documented. The documentation belongs on resultStart() and resultEnd(), not fetchStart() and fetchEnd() --- .../main/java/org/jooq/ExecuteListener.java | 82 +++++++++++-------- 1 file changed, 46 insertions(+), 36 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/ExecuteListener.java b/jOOQ/src/main/java/org/jooq/ExecuteListener.java index b9cbad83fa..d9cd7e746d 100644 --- a/jOOQ/src/main/java/org/jooq/ExecuteListener.java +++ b/jOOQ/src/main/java/org/jooq/ExecuteListener.java @@ -772,21 +772,8 @@ public interface ExecuteListener extends EventListener, Serializable { * {@link ResultQuery#fetchMany()}, this is called several times, once per * ResultSet *

- *

Executions without {@link Result}

- *

- * Not all types of execution produce results of type {@link Result}. For - * example, these do not: - *

- * In any of these cases, no {@link #fetchStart(ExecuteContext)} event is - * fired. - *

- * Note that this method is also not called when executing queries that do - * not return a result, or when executing routines. + * Note that this method is not called when executing queries that do not + * return a result, or when executing routines. */ void fetchStart(ExecuteContext ctx); @@ -831,9 +818,27 @@ public interface ExecuteListener extends EventListener, Serializable { * emitted. * *

- * Note that this method is not called when executing queries that do not - * return a result, or when executing routines. This is also not called when - * fetching single records, with {@link Cursor#fetchNext()} for instance. + *

Executions without {@link Result}

+ *

+ * Not all types of execution produce results of type {@link Result}. For + * example, these do not: + *

+ * In any of these cases, no {@link #resultStart(ExecuteContext)} event is + * fired. + *

+ * Note that this method is also not called when executing queries that do + * not return a result, or when executing routines. This is also not called + * when fetching single records, with {@link Cursor#fetchNext()} for + * instance. */ void resultStart(ExecuteContext ctx); @@ -972,9 +977,27 @@ public interface ExecuteListener extends EventListener, Serializable { * emitted. * *

- * Note that this method is not called when executing queries that do not - * return a result, or when executing routines. This is also not called when - * fetching single records, with {@link Cursor#fetchNext()} for instance. + *

Executions without {@link Result}

+ *

+ * Not all types of execution produce results of type {@link Result}. For + * example, these do not: + *

+ * In any of these cases, no {@link #resultEnd(ExecuteContext)} event is + * fired. + *

+ * Note that this method is also not called when executing queries that do + * not return a result, or when executing routines. This is also not called + * when fetching single records, with {@link Cursor#fetchNext()} for + * instance. */ void resultEnd(ExecuteContext ctx); @@ -1030,21 +1053,8 @@ public interface ExecuteListener extends EventListener, Serializable { * {@link ResultQuery#fetchMany()}, this is called several times, once per * ResultSet *

- *

Executions without {@link Result}

- *

- * Not all types of execution produce results of type {@link Result}. For - * example, these do not: - *

- * In any of these cases, no {@link #fetchEnd(ExecuteContext)} event is - * fired. - *

- * Note that this method is also not called when executing queries that do - * not return a result, or when executing routines. + * Note that this method is not called when executing queries that do not + * return a result, or when executing routines. */ void fetchEnd(ExecuteContext ctx);