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.SQLBaseListenerLogger 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 intBYTE_ARRAY_PREVIEW_LEN
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend(com.querydsl.sql.SQLListenerContext context)End is the right phase common to both selects and insert/updates.voidstart(com.querydsl.sql.SQLListenerContext context)protected StringvalueToString(Object o)
-
-
-
Field Detail
-
BYTE_ARRAY_PREVIEW_LEN
public static final int BYTE_ARRAY_PREVIEW_LEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public void start(com.querydsl.sql.SQLListenerContext context)
- Specified by:
startin interfacecom.querydsl.sql.SQLDetailedListener- Overrides:
startin classcom.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:
endin interfacecom.querydsl.sql.SQLDetailedListener- Overrides:
endin classcom.querydsl.sql.SQLBaseListener
-
-