Package fish.payara.jdbc
Class SQLTraceStoreAdapter
- java.lang.Object
-
- fish.payara.jdbc.SQLTraceStoreAdapter
-
- All Implemented Interfaces:
SQLTraceListener
public class SQLTraceStoreAdapter extends Object implements SQLTraceListener
An adapter between theSQLTraceListenerabstraction that is registered with implementation class as key and a managed instance of theSQLTraceStore. Even though this class is very similar toSQLTraceLoggerthe classes cannot share code as each has to have its ownThreadLocal. Would they inherit from the same base class the invocations from both classes would get mixed up in the sameThreadLocal.- Author:
- Jan Bernitt
-
-
Constructor Summary
Constructors Constructor Description SQLTraceStoreAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsqlTrace(SQLTraceRecord record)Notify listeners with SQL trace information.
-
-
-
Method Detail
-
sqlTrace
public void sqlTrace(SQLTraceRecord record)
Description copied from interface:SQLTraceListenerNotify listeners with SQL trace information.- Specified by:
sqlTracein interfaceSQLTraceListener- Parameters:
record- SQLTraceRecord that has information related to the SQL operation
-
-