Package ca.uhn.fhir.jpa.util
Class BaseCaptureQueriesListener
java.lang.Object
ca.uhn.fhir.jpa.util.BaseCaptureQueriesListener
- All Implemented Interfaces:
net.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleMethodExecution
,net.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleQueryExecution
- Direct Known Subclasses:
CircularQueueCaptureQueriesListener
,CurrentThreadCaptureQueriesListener
public abstract class BaseCaptureQueriesListener
extends Object
implements net.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleQueryExecution, net.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleMethodExecution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
void
execute
(net.ttddyy.dsproxy.ExecutionInfo theExecutionInfo, List<net.ttddyy.dsproxy.QueryInfo> theQueryInfoList) void
execute
(net.ttddyy.dsproxy.listener.MethodExecutionContext executionContext) boolean
This has an impact on performance! Use with caution.protected abstract AtomicInteger
protected abstract AtomicInteger
void
setCaptureQueryStackTrace
(boolean theCaptureQueryStackTrace) This has an impact on performance! Use with caution.
-
Constructor Details
-
BaseCaptureQueriesListener
public BaseCaptureQueriesListener()
-
-
Method Details
-
isCaptureQueryStackTrace
This has an impact on performance! Use with caution. -
setCaptureQueryStackTrace
This has an impact on performance! Use with caution. -
execute
public void execute(net.ttddyy.dsproxy.ExecutionInfo theExecutionInfo, List<net.ttddyy.dsproxy.QueryInfo> theQueryInfoList) - Specified by:
execute
in interfacenet.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleQueryExecution
-
provideQueryList
-
provideCommitCounter
-
provideRollbackCounter
-
execute
- Specified by:
execute
in interfacenet.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleMethodExecution
-
countCommits
-
countRollbacks
-