diff --git a/jOOQ/src/main/java/org/jooq/DSLContext.java b/jOOQ/src/main/java/org/jooq/DSLContext.java
index 9a98cd6901..232cb690ad 100644
--- a/jOOQ/src/main/java/org/jooq/DSLContext.java
+++ b/jOOQ/src/main/java/org/jooq/DSLContext.java
@@ -10822,11 +10822,44 @@ public interface DSLContext extends Scope , AutoCloseable {
* This executes
*
* @param table The table whose records to count
+ * @param condition The condition to apply
* @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;
+ /**
+ * Count the number of records in a table that satisfy a condition.
+ * SELECT COUNT(*) FROM table WHERE condition
+ * This executes
+ *
+ * SELECT COUNT(*) FROM table WHERE condition
+ * Convenience API for calling {@link #fetchCount(Table, Condition)} with + * {@link DSL#and(Condition...)}. + * + * @param table The table whose records to count + * @param conditions The conditions to apply + * @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... conditions) throws DataAccessException; + + /** + * Count the number of records in a table that satisfy a condition. + *
+ * This executes
+ *
+ * SELECT COUNT(*) FROM table WHERE condition
+ * Convenience API for calling {@link #fetchCount(Table, Condition)} with + * {@link DSL#and(Collection)}. + * + * @param table The table whose records to count + * @param conditions The conditions to apply + * @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, Collection extends Condition> conditions) throws DataAccessException; + /** * Check if a {@link Select} would return any records, if it were executed. *
@@ -10870,6 +10903,34 @@ public interface DSLContext extends Scope , AutoCloseable { */ boolean fetchExists(Table> table, Condition condition) throws DataAccessException; + /** + * Check if a table has any records that satisfy a condition. + *
+ * This executes
+ * SELECT EXISTS(SELECT * FROM table WHERE condition)
+ * Convenience API for calling {@link #fetchExists(Table, Condition)} with + * {@link DSL#and(Condition...)}. + * + * @param table The table whose records to count + * @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... conditions) throws DataAccessException; + + /** + * Check if a table has any records that satisfy a condition. + *
+ * This executes
+ * SELECT EXISTS(SELECT * FROM table WHERE condition)
+ * Convenience API for calling {@link #fetchExists(Table, Condition)} with
+ * {@link DSL#and(Collection)}.
+ *
+ * @param table The table whose records to count
+ * @return Whether the table contains any records that satisfy a condition
+ * @throws DataAccessException if something went wrong executing the query
+ */
+ boolean fetchExists(Table> table, Collection extends Condition> conditions) throws DataAccessException;
+
/**
* Execute a {@link Query} in the context of this
+ * The result and its contained records are attached to this
+ * {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
+ * to override this behaviour.
+ *
+ * Convenience API for calling {@link #fetch(Table, Condition)} with
+ * {@link DSL#and(Condition...)}.
+ *
+ * @return The results from the executed query. This will never be
+ *
+ * The result and its contained records are attached to this
+ * {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
+ * to override this behaviour.
+ *
+ * Convenience API for calling {@link #fetch(Table, Condition)} with
+ * {@link DSL#and(Collection)}.
+ *
+ * @return The results from the executed query. This will never be
+ *
+ * The resulting record is attached to this {@link Configuration} by
+ * default. Use {@link Settings#isAttachRecords()} to override this
+ * behaviour.
+ *
+ * Convenience API for calling {@link #fetchOne(Table, Condition)} with
+ * {@link DSL#and(Condition...)}.
+ *
+ * @return The record or
+ * The resulting record is attached to this {@link Configuration} by
+ * default. Use {@link Settings#isAttachRecords()} to override this
+ * behaviour.
+ *
+ * Convenience API for calling {@link #fetchOne(Table, Condition)} with
+ * {@link DSL#and(Collection)}.
+ *
+ * @return The record or
+ * The resulting record is attached to this {@link Configuration} by
+ * default. Use {@link Settings#isAttachRecords()} to override this
+ * behaviour.
+ *
+ * Convenience API for calling {@link #fetchSingle(Table, Condition)} with
+ * {@link DSL#and(Condition...)}.
+ *
+ * @return The record. This is never
+ * The resulting record is attached to this {@link Configuration} by
+ * default. Use {@link Settings#isAttachRecords()} to override this
+ * behaviour.
+ *
+ * Convenience API for calling {@link #fetchSingle(Table, Condition)} with
+ * {@link DSL#and(Collection)}.
+ *
+ * @return The record. This is never
+ * The resulting record is attached to this {@link Configuration} by
+ * default. Use {@link Settings#isAttachRecords()} to override this
+ * behaviour.
+ *
+ * Convenience API for calling {@link #fetchOptional(Table, Condition)} with
+ * {@link DSL#and(Condition...)}.
+ *
+ * @return The record
+ * @throws DataAccessException if something went wrong executing the query
+ * @throws TooManyRowsException if the query returned more than one record
+ */
+ @Support
+
+ * The resulting record is attached to this {@link Configuration} by
+ * default. Use {@link Settings#isAttachRecords()} to override this
+ * behaviour.
+ *
+ * Convenience API for calling {@link #fetchOptional(Table, Condition)} with
+ * {@link DSL#and(Collection)}.
+ *
+ * @return The record
+ * @throws DataAccessException if something went wrong executing the query
+ * @throws TooManyRowsException if the query returned more than one record
+ */
+ @Support
+
+ * The resulting record is attached to this {@link Configuration} by
+ * default. Use {@link Settings#isAttachRecords()} to override this
+ * behaviour.
+ *
+ * Convenience API for calling {@link #fetchAny(Table, Condition)} with
+ * {@link DSL#and(Condition...)}.
+ *
+ * @return The record or
+ * The resulting record is attached to this {@link Configuration} by
+ * default. Use {@link Settings#isAttachRecords()} to override this
+ * behaviour.
+ *
+ * Convenience API for calling {@link #fetchAny(Table, Condition)} with
+ * {@link DSL#and(Collection)}.
+ *
+ * @return The record or
+ * The result and its contained records are attached to this
+ * {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
+ * to override this behaviour.
+ *
+ * Convenience API for calling {@link #fetchLazy(Table, Condition)} with
+ * {@link DSL#and(Condition...)}.
+ *
+ * @return The cursor. This will never be
+ * The result and its contained records are attached to this
+ * {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
+ * to override this behaviour.
+ *
+ * Convenience API for calling {@link #fetchLazy(Table, Condition)} with
+ * {@link DSL#and(Collection)}.
+ *
+ * @return The cursor. This will never be
+ * The result and its contained records are attached to this
+ * {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
+ * to override this behaviour.
+ *
+ * Convenience API for calling {@link #fetchAsync(Table, Condition)} with
+ * {@link DSL#and(Condition...)}.
+ *
+ * @return The completion stage. The completed result will never be
+ *
+ * The result and its contained records are attached to this
+ * {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
+ * to override this behaviour.
+ *
+ * Convenience API for calling {@link #fetchAsync(Table, Condition)} with
+ * {@link DSL#and(Collection)}.
+ *
+ * @return The completion stage. The completed result will never be
+ *
+ * The result and its contained records are attached to this
+ * {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
+ * to override this behaviour.
+ *
+ * Convenience API for calling {@link #fetchAsync(Executor, Table, Condition)} with
+ * {@link DSL#and(Condition...)}.
+ *
+ * @return The completion stage. The completed result will never be
+ *
+ * The result and its contained records are attached to this
+ * {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
+ * to override this behaviour.
+ *
+ * Convenience API for calling {@link #fetchAsync(Executor, Table, Condition)} with
+ * {@link DSL#and(Collection)}.
+ *
+ * @return The completion stage. The completed result will never be
+ *
+ * The result and its contained records are attached to this
+ * {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
+ * to override this behaviour.
+ *
+ * Convenience API for calling {@link #fetchStream(Table, Condition)} with
+ * {@link DSL#and(Condition...)}.
+ *
+ * @throws DataAccessException if something went wrong executing the query
+ */
+ @Support
+
+ * The result and its contained records are attached to this
+ * {@link Configuration} by default. Use {@link Settings#isAttachRecords()}
+ * to override this behaviour.
+ *
+ * Convenience API for calling {@link #fetchStream(Table, Condition)} with
+ * {@link DSL#and(Collection)}.
+ *
+ * @throws DataAccessException if something went wrong executing the query
+ */
+ @Support
+ DSLContext.
*
@@ -10914,6 +10975,42 @@ public interface DSLContext extends Scope , AutoCloseable {
@Support
.
+ * SELECT * FROM [table] WHERE [condition]
null.
+ * @throws DataAccessException if something went wrong executing the query
+ */
+ @Support
+ .
+ * SELECT * FROM [table] WHERE [condition]
null.
+ * @throws DataAccessException if something went wrong executing the query
+ */
+ @Support
+ .
@@ -10944,6 +11041,42 @@ public interface DSLContext extends Scope , AutoCloseable {
@Support
SELECT * FROM [table]
.
+ * SELECT * FROM [table] WHERE [condition]
null, if no record was found.
+ * @throws DataAccessException if something went wrong executing the query
+ * @throws TooManyRowsException if the query returned more than one record
+ */
+ @Support
+ .
+ * SELECT * FROM [table] WHERE [condition]
null, if no record was found.
+ * @throws DataAccessException if something went wrong executing the query
+ * @throws TooManyRowsException if the query returned more than one record
+ */
+ @Support
+ .
@@ -10976,6 +11109,44 @@ public interface DSLContext extends Scope , AutoCloseable {
@Support
SELECT * FROM [table]
.
+ * SELECT * FROM [table] WHERE [condition]
null.
+ * @throws DataAccessException if something went wrong executing the query
+ * @throws NoDataFoundException if the query returned now rows
+ * @throws TooManyRowsException if the query returned more than one record
+ */
+ @Support
+ .
+ * SELECT * FROM [table] WHERE [condition]
null.
+ * @throws DataAccessException if something went wrong executing the query
+ * @throws NoDataFoundException if the query returned now rows
+ * @throws TooManyRowsException if the query returned more than one record
+ */
+ @Support
+ .
+ * SELECT * FROM [table] WHERE [condition]
.
+ * SELECT * FROM [table] WHERE [condition]
.
+ * SELECT * FROM [table] WHERE [condition] LIMIT 1
null if no record was returned
+ * @throws DataAccessException if something went wrong executing the query
+ */
+ @Support
+ .
+ * SELECT * FROM [table] WHERE [condition] LIMIT 1
null if no record was returned
+ * @throws DataAccessException if something went wrong executing the query
+ */
+ @Support
+ .
@@ -11064,6 +11305,40 @@ public interface DSLContext extends Scope , AutoCloseable {
@Support
SELECT * FROM [table]
.
+ * SELECT * FROM [table] WHERE [condition]
null.
+ * @throws DataAccessException if something went wrong executing the query
+ */
+ @Support
+ .
+ * SELECT * FROM [table] WHERE [condition]
null.
+ * @throws DataAccessException if something went wrong executing the query
+ */
+ @Support
+ .
+ * SELECT * FROM [table] WHERE [condition]
null.
+ */
+ @Support
+ .
+ * SELECT * FROM [table] WHERE [condition]
null.
+ */
+ @Support
+ .
@@ -11122,6 +11431,40 @@ public interface DSLContext extends Scope , AutoCloseable {
@Support
SELECT * FROM [table]
.
+ * SELECT * FROM [table] WHERE [condition]
null.
+ */
+ @Support
+ .
+ * SELECT * FROM [table] WHERE [condition]
null.
+ */
+ @Support
+ .
@@ -11148,6 +11491,38 @@ public interface DSLContext extends Scope , AutoCloseable {
@Support
SELECT * FROM [table]
.
+ * SELECT * FROM [table] WHERE [condition]
.
+ * SELECT * FROM [table] WHERE [condition]