Class SQLTraceStoreAdapter

  • All Implemented Interfaces:
    SQLTraceListener

    public class SQLTraceStoreAdapter
    extends Object
    implements SQLTraceListener
    An adapter between the SQLTraceListener abstraction that is registered with implementation class as key and a managed instance of the SQLTraceStore. Even though this class is very similar to SQLTraceLogger the classes cannot share code as each has to have its own ThreadLocal. Would they inherit from the same base class the invocations from both classes would get mixed up in the same ThreadLocal.
    Author:
    Jan Bernitt
    • Constructor Detail

      • SQLTraceStoreAdapter

        public SQLTraceStoreAdapter()
    • Method Detail

      • sqlTrace

        public void sqlTrace​(SQLTraceRecord record)
        Description copied from interface: SQLTraceListener
        Notify listeners with SQL trace information.
        Specified by:
        sqlTrace in interface SQLTraceListener
        Parameters:
        record - SQLTraceRecord that has information related to the SQL operation