public class MiniProfilerExecuteListener
extends org.jooq.impl.DefaultExecuteListener
This can give better results than wrapping the JDBC driver and provides statements with inlined parameters for easy copy/paste.
It is recommended to use the MiniProfilerExecuteListenerProvider rather than use this class
directly. It's left public to allow customisation.
MiniProfilerExecuteListenerProvider,
ExecuteListener,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected ProfilerProvider |
provider |
| Constructor and Description |
|---|
MiniProfilerExecuteListener(ProfilerProvider provider)
Constructs a listener with the given profiler.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTiming(org.jooq.ExecuteContext ctx,
java.lang.String query,
long duration) |
void |
end(org.jooq.ExecuteContext ctx) |
protected void |
maybeAddTiming(org.jooq.ExecuteContext ctx,
long duration) |
void |
start(org.jooq.ExecuteContext ctx) |
protected final ProfilerProvider provider
public MiniProfilerExecuteListener(ProfilerProvider provider)
provider - the profiler provider to usepublic void start(org.jooq.ExecuteContext ctx)
start in interface org.jooq.ExecuteListenerstart in class org.jooq.impl.DefaultExecuteListenerpublic void end(org.jooq.ExecuteContext ctx)
end in interface org.jooq.ExecuteListenerend in class org.jooq.impl.DefaultExecuteListenerprotected void maybeAddTiming(org.jooq.ExecuteContext ctx,
long duration)
protected void addTiming(org.jooq.ExecuteContext ctx,
java.lang.String query,
long duration)