From ccdca97d56b3708ac466c4d348fa306f695460d2 Mon Sep 17 00:00:00 2001 From: lukaseder Date: Tue, 1 Aug 2017 20:46:01 +0200 Subject: [PATCH] [#6478] Typo in DSLContext.fetchCount() and error in DSLContext.fetchExists() Javadoc --- jOOQ/src/main/java/org/jooq/DSLContext.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/DSLContext.java b/jOOQ/src/main/java/org/jooq/DSLContext.java index 9481f1f768..45a2813180 100644 --- a/jOOQ/src/main/java/org/jooq/DSLContext.java +++ b/jOOQ/src/main/java/org/jooq/DSLContext.java @@ -10411,18 +10411,18 @@ public interface DSLContext extends Scope , AutoCloseable { * This executes
SELECT COUNT(*) FROM table
* * @param table The table whose records to count - * @return The number or records in the table + * @return The number of records in the table * @throws DataAccessException if something went wrong executing the query */ int fetchCount(Table table) throws DataAccessException; /** - * Count the number of records in a table. + * Count the number of records in a table that satisfy a condition. *

* This executes

SELECT COUNT(*) FROM table WHERE condition
* * @param table The table whose records to count - * @return The number or records in the table + * @return The number of records in the table that satisfy a condition * @throws DataAccessException if something went wrong executing the query */ int fetchCount(Table table, Condition condition) throws DataAccessException; @@ -10454,7 +10454,7 @@ public interface DSLContext extends Scope , AutoCloseable { * This executes
SELECT EXISTS(SELECT * FROM table)
* * @param table The table whose records to count - * @return The number or records in the table + * @return Whether the table contains any records * @throws DataAccessException if something went wrong executing the query */ boolean fetchExists(Table table) throws DataAccessException; @@ -10465,7 +10465,7 @@ public interface DSLContext extends Scope , AutoCloseable { * This executes
SELECT EXISTS(SELECT * FROM table WHERE condition)
* * @param table The table whose records to count - * @return The number or records in the table + * @return Whether the table contains any records that satisfy a condition * @throws DataAccessException if something went wrong executing the query */ boolean fetchExists(Table table, Condition condition) throws DataAccessException;