java.lang.Object
com.querydsl.sql.SQLBaseListener
com.evolveum.midpoint.repo.sqlbase.querydsl.SqlLogger
All Implemented Interfaces:
com.querydsl.sql.SQLDetailedListener, com.querydsl.sql.SQLListener
Direct Known Subclasses:
SqlRecorder

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).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    SqlLogger(long sqlDurationWarningMs)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    end(com.querydsl.sql.SQLListenerContext context)
    End is the right phase common to both selects and insert/updates.
    void
    start(com.querydsl.sql.SQLListenerContext context)
     
    protected String
     

    Methods inherited from class com.querydsl.sql.SQLBaseListener

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

    Methods inherited from class java.lang.Object

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

    • BYTE_ARRAY_PREVIEW_LEN

      public static final int BYTE_ARRAY_PREVIEW_LEN
      See Also:
  • Constructor Details

    • SqlLogger

      public SqlLogger()
    • SqlLogger

      public SqlLogger(long sqlDurationWarningMs)
  • Method Details

    • start

      public void start(com.querydsl.sql.SQLListenerContext context)
      Specified by:
      start in interface com.querydsl.sql.SQLDetailedListener
      Overrides:
      start in class com.querydsl.sql.SQLBaseListener
    • 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
    • valueToString

      protected String valueToString(Object o)