public class MiniProfilerExecuteListenerProvider
extends java.lang.Object
implements org.jooq.ExecuteListenerProvider
ExecuteListenerProvider
that profiles SQL statements issued.
Register with your jOOQ configuration using Configuration.set(ExecuteListenerProvider...)
.
Using this class generally means that you won't need to use a JDBC driver wrapper such as
ProfilingDataSource
to capture SQL statements. jOOQ normally does
a good job at both formatting SQL and rendering queries with inlined paramters, so if using jOOQ
this way is definitely recommended.
Constructor and Description |
---|
MiniProfilerExecuteListenerProvider(ProfilerProvider provider)
Construct a listener that gets the current profiler from the provided
ProfilerProvider . |
Modifier and Type | Method and Description |
---|---|
org.jooq.ExecuteListener |
provide() |
public MiniProfilerExecuteListenerProvider(ProfilerProvider provider)
ProfilerProvider
.provider
- the provider to use