Class StatementLoggerQueryExecutionListener

java.lang.Object
org.hawaiiframework.logging.sql.StatementLoggerQueryExecutionListener
All Implemented Interfaces:
net.ttddyy.dsproxy.listener.QueryExecutionListener, org.hawaiiframework.sql.OrderedQueryExecutionListener, org.springframework.core.Ordered

@ConditionalOnClass(net.ttddyy.dsproxy.listener.QueryExecutionListener.class) @Component public class StatementLoggerQueryExecutionListener extends Object implements org.hawaiiframework.sql.OrderedQueryExecutionListener
A listener for logging purposes.
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE

    Fields inherited from interface net.ttddyy.dsproxy.listener.QueryExecutionListener

    DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterQuery(net.ttddyy.dsproxy.ExecutionInfo execInfo, List<net.ttddyy.dsproxy.QueryInfo> queryInfoList)
     
    void
    beforeQuery(net.ttddyy.dsproxy.ExecutionInfo execInfo, List<net.ttddyy.dsproxy.QueryInfo> queryInfoList)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StatementLoggerQueryExecutionListener

      public StatementLoggerQueryExecutionListener()
  • Method Details

    • beforeQuery

      public void beforeQuery(net.ttddyy.dsproxy.ExecutionInfo execInfo, List<net.ttddyy.dsproxy.QueryInfo> queryInfoList)
      Specified by:
      beforeQuery in interface net.ttddyy.dsproxy.listener.QueryExecutionListener
    • afterQuery

      public void afterQuery(net.ttddyy.dsproxy.ExecutionInfo execInfo, List<net.ttddyy.dsproxy.QueryInfo> queryInfoList)
      Specified by:
      afterQuery in interface net.ttddyy.dsproxy.listener.QueryExecutionListener
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered