Class SqlLogger

  • All Implemented Interfaces:
    com.querydsl.sql.SQLDetailedListener, com.querydsl.sql.SQLListener

    public class SqlLogger
    extends com.querydsl.sql.SQLBaseListener
    Logger for Querydsl executed queries, set to DEBUG to log queries or to TRACE to log parameter values as well (this causes additional formatting overhead).
    • Constructor Summary

      Constructors 
      Constructor Description
      SqlLogger()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void end​(com.querydsl.sql.SQLListenerContext context)
      End is the right phase common to both selects and insert/updates.
      • Methods inherited from class com.querydsl.sql.SQLBaseListener

        exception, executed, notifyDelete, notifyDeletes, notifyInsert, notifyInserts, notifyMerge, notifyMerges, notifyQuery, notifyUpdate, notifyUpdates, preExecute, prepared, prePrepare, preRender, rendered, start
    • Field Detail

    • Constructor Detail

      • SqlLogger

        public SqlLogger()
    • Method Detail

      • end

        public void end​(com.querydsl.sql.SQLListenerContext context)
        End is the right phase common to both selects and insert/updates. It's called after exceptions too.
        Specified by:
        end in interface com.querydsl.sql.SQLDetailedListener
        Overrides:
        end in class com.querydsl.sql.SQLBaseListener