diff --git a/jOOQ-website/src/main/resources/manual-3.2.xml b/jOOQ-website/src/main/resources/manual-3.2.xml index a9552a51d1..e4a03747ba 100644 --- a/jOOQ-website/src/main/resources/manual-3.2.xml +++ b/jOOQ-website/src/main/resources/manual-3.2.xml @@ -8669,6 +8669,8 @@ bookDao.delete(book);]]>
For convenience and better backwards-compatibility, consider extending
Here is a sample implementation of an ExecuteListener, that is simply counting the number of queries per type that are being executed using jOOQ:
@@ -8732,7 +8734,7 @@ for (ExecuteType type : ExecuteType.values()) { Please read theThe following depicts an example of a custom ExecuteListener, which pretty-prints all queries being executed by jOOQ to stdout:
@@ -8777,6 +8779,27 @@ public class PrettyPrinter extends DefaultExecuteListener {
See also the manual's sections about
+ You can also use ExecuteListeners to interact with your SQL statements, for instance when you want to check if executed or statements contain a WHERE clause. This can be achieved trivially with the following sample ExecuteListener:
+
+ You might want to replace the above implementation with a more efficient and more reliable one, of course. +