Class MybatisLoggingInterceptor

java.lang.Object
com.gsitm.ustra.java.data.mybatis.interceptor.MybatisLoggingInterceptor
All Implemented Interfaces:
org.apache.ibatis.plugin.Interceptor

@Signature(type=org.apache.ibatis.executor.Executor.class,method="query",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class,org.apache.ibatis.session.RowBounds.class,org.apache.ibatis.session.ResultHandler.class}) @Signature(type=org.apache.ibatis.executor.Executor.class,method="query",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class,org.apache.ibatis.session.RowBounds.class,org.apache.ibatis.session.ResultHandler.class,org.apache.ibatis.cache.CacheKey.class,org.apache.ibatis.mapping.BoundSql.class}) @Signature(type=org.apache.ibatis.executor.Executor.class,method="update",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class}) public class MybatisLoggingInterceptor extends Object implements org.apache.ibatis.plugin.Interceptor
쿼리 로그를 기록하는 인터셉터
  • Constructor Summary

    Constructors
    Constructor
    Description
    MybatisLoggingInterceptor(com.gsitm.ustra.java.data.properties.UstraDataProperties ustraDataProperties, org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler loggingThreadPoolTaskScheduler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    intercept(org.apache.ibatis.plugin.Invocation invocation)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.ibatis.plugin.Interceptor

    plugin, setProperties
  • Constructor Details

    • MybatisLoggingInterceptor

      public MybatisLoggingInterceptor(com.gsitm.ustra.java.data.properties.UstraDataProperties ustraDataProperties, org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler loggingThreadPoolTaskScheduler)
  • Method Details

    • intercept

      public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
      Specified by:
      intercept in interface org.apache.ibatis.plugin.Interceptor
      Throws:
      Throwable