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 theSQLTraceListener
abstraction that is registered with implementation class as key and a managed instance of theSQLTraceStore
. Even though this class is very similar toSQLTraceLogger
the 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 void
sqlTrace(SQLTraceRecord record)
Notify listeners with SQL trace information.
-
-
-
Method Detail
-
sqlTrace
public void sqlTrace(SQLTraceRecord record)
Description copied from interface:SQLTraceListener
Notify listeners with SQL trace information.- Specified by:
sqlTrace
in interfaceSQLTraceListener
- Parameters:
record
- SQLTraceRecord that has information related to the SQL operation
-
-