Class SqlLogger
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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class com.querydsl.sql.SQLBaseListenerexception, executed, notifyDelete, notifyDeletes, notifyInsert, notifyInserts, notifyMerge, notifyMerges, notifyQuery, notifyUpdate, notifyUpdates, preExecute, prepared, prePrepare, preRender, rendered
- 
Field Details- 
BYTE_ARRAY_PREVIEW_LENpublic static final int BYTE_ARRAY_PREVIEW_LEN- See Also:
 
 
- 
- 
Constructor Details- 
SqlLoggerpublic SqlLogger()
- 
SqlLoggerpublic SqlLogger(long sqlDurationWarningMs) 
 
- 
- 
Method Details- 
startpublic void start(com.querydsl.sql.SQLListenerContext context) - Specified by:
- startin interface- com.querydsl.sql.SQLDetailedListener
- Overrides:
- startin class- com.querydsl.sql.SQLBaseListener
 
- 
endpublic 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:
- endin interface- com.querydsl.sql.SQLDetailedListener
- Overrides:
- endin class- com.querydsl.sql.SQLBaseListener
 
- 
valueToString
 
-