org.apache.ibatis.plugin.Signature.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(156)

本文整理了Java中org.apache.ibatis.plugin.Signature.<init>()方法的一些代码示例,展示了Signature.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Signature.<init>()方法的具体详情如下:
包路径:org.apache.ibatis.plugin.Signature
类名称:Signature
方法名:<init>

Signature.<init>介绍

暂无

代码示例

代码示例来源:origin: baomidou/mybatis-plus

@Data
@Accessors(chain = true)
@Intercepts({@Signature(type = Executor.class, method = "update", args = {MappedStatement.class, Object.class})})
public class SqlExplainInterceptor extends AbstractSqlParserHandler implements Interceptor {

代码示例来源:origin: baomidou/mybatis-plus

@Signature(type = StatementHandler.class, method = "query", args = {Statement.class, ResultHandler.class}),
  @Signature(type = StatementHandler.class, method = "update", args = {Statement.class}),
  @Signature(type = StatementHandler.class, method = "batch", args = {Statement.class})
})
public class PerformanceInterceptor implements Interceptor {

代码示例来源:origin: a466350665/smart

@Intercepts({ @Signature(type = StatementHandler.class, method = "prepare", args = { Connection.class }),
    @Signature(type = ResultSetHandler.class, method = "handleResultSets", args = { Statement.class }) })
public class PaginationInterceptor implements Interceptor {

代码示例来源:origin: baomidou/mybatis-plus

@Intercepts({@Signature(type = Executor.class, method = "update", args = {MappedStatement.class, Object.class})})
public class OptimisticLockerInterceptor implements Interceptor {

代码示例来源:origin: baomidou/mybatis-plus

@Intercepts({@Signature(type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class})})
public class IllegalSQLInterceptor implements Interceptor {

代码示例来源:origin: xianrendzw/EasyReport

@Signature(
  type = Executor.class,
  method = "update",
  args = {MappedStatement.class, Object.class}),
@Signature(
  type = Executor.class,
  method = "query",

代码示例来源:origin: zhangxd1989/springboot-dubbox

@Signature(type = Executor.class, method = "update", args = {
  MappedStatement.class, Object.class}),
@Signature(type = Executor.class, method = "query", args = {
  MappedStatement.class, Object.class, RowBounds.class,
  ResultHandler.class})})

代码示例来源:origin: mybatis-book/book

@Signature(type = ResultSetHandler.class, method = "handleResultSets", args = {Statement.class})

代码示例来源:origin: mybatis-book/book

@Intercepts({
  @Signature(type = Executor.class, method = "query", args = {
      MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class
  })

代码示例来源:origin: Meituan-Dianping/Zebra

@Intercepts(@Signature(type = Executor.class, method = "query", args = { MappedStatement.class, Object.class,
    RowBounds.class, ResultHandler.class }))
public class PageInterceptor implements Interceptor {

代码示例来源:origin: com.gitee.zhaohuihua/bdp-general-web

/**
 * 权限控制切面处理的默认实现类
 *
 * @author zhaohuihua
 * @version 170612
 */
@Intercepts({
    @Signature(type = Executor.class, method = "query",
      args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class }),
    @Signature(type = Executor.class, method = "update", args = { MappedStatement.class, Object.class }) })
public class DataIsolationChooseImpl extends DataIsolationChooseControlling {

  public DataIsolationChooseImpl() {
  }

}

代码示例来源:origin: com.gitee.zhaohuihua/bdp-general-web

/**
 * 操作轨迹记录, 查找带有@OperateTraces的参数对象, 提取操作日志信息
 *
 * @author zhaohuihua
 * @version 170615
 */
@Intercepts({
    @Signature(type = Executor.class, method = "query",
      args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class }),
    @Signature(type = Executor.class, method = "update", args = { MappedStatement.class, Object.class }) })
public class OperateTracesSimpleImpl extends OperateTracesControlling {

  public OperateTracesSimpleImpl(IControllingVars vars) {
    super(vars);
  }

}

代码示例来源:origin: org.flowable/flowable-engine-common

@Signature(type = Executor.class, method = "query",
        args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class }),
    @Signature(type = Executor.class, method = "query",
        args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class, CacheKey.class, BoundSql.class }),
    @Signature(type= Executor.class, method = "update", args = { MappedStatement.class, Object.class})
})
public class LogSqlExecutionTimePlugin implements Interceptor {

代码示例来源:origin: Yirendai/cicada

@Intercepts({@Signature(type = Executor.class, method = "update", args = {MappedStatement.class, Object.class}),
  @Signature(type = Executor.class, method = "query",
    args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class})})
public class MybatisInterceptor implements Interceptor {

 public Object intercept(final Invocation invocation) throws Throwable {
  final MappedStatement mappedStatement = (MappedStatement) invocation.getArgs()[0];
  Object returnValue = null;
  final long start = System.currentTimeMillis();
  returnValue = invocation.proceed();
  final long end = System.currentTimeMillis();

  final String sqlId = mappedStatement.getId();
  final int lastIndex = sqlId.lastIndexOf('.');
  final String className = sqlId.substring(0, lastIndex);
  final String methodName = sqlId.substring(lastIndex + 1);
  Tracer.getInstance().addBinaryAnnotation(className, methodName, (int) (end - start));

  return returnValue;
 }

 public Object plugin(final Object target) {
  return Plugin.wrap(target, this);
 }

 public void setProperties(final Properties properties0) {
  //do nothing
 }
}

代码示例来源:origin: zhuzhengquan/pc5s

@Intercepts({ 
  @Signature(type = Executor.class, method = "query", args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class}),
  @Signature(type = Executor.class, method = "update", args = { MappedStatement.class, Object.class}) })
public class QueryClauseInterceptor implements Interceptor {
  Logger logger = LoggerFactory.getLogger(this.getClass());

代码示例来源:origin: io.github.itfinally/mybatis-paging

/**
 * <pre>
 * *********************************************
 * All rights reserved.
 * Description: ${类文件描述}
 * *********************************************
 *  Version       Date          Author        Desc ( 一句话描述修改 )
 *  v1.0          2018/8/17       itfinally       首次创建
 * *********************************************
 * </pre>
 */
@Component
@SuppressWarnings( "unchecked" )
@Intercepts( @Signature( type = Executor.class, method = "query", args = { MappedStatement.class, Object.class,
    RowBounds.class, ResultHandler.class, CacheKey.class, BoundSql.class } ) )
public class CacheQueryInterceptor extends AbstractPagingInterceptor {

  public CacheQueryInterceptor( MybatisPagingProperties properties ) {
    super( properties );
  }

  @Override
  protected void hook( Object[] thisArgs, MappedStatement mappedStatement, BoundSql boundSql ) {
    thisArgs[ 0 ] = mappedStatement;
    thisArgs[ 5 ] = boundSql;
  }
}

代码示例来源:origin: hatunet/spring-data-mybatis

@Intercepts({ @Signature(type = Executor.class, method = "update", args = {
    MappedStatement.class, Object.class }) })
public class AuditingInterceptor implements Interceptor {

代码示例来源:origin: com.github.drtrang/spring-boot-autoconfigure

@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class}),
@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class, CacheKey.class, BoundSql.class})

代码示例来源:origin: com.baomidou/mybatis-plus-extension

@Data
@Accessors(chain = true)
@Intercepts({@Signature(type = Executor.class, method = "update", args = {MappedStatement.class, Object.class})})
public class SqlExplainInterceptor extends AbstractSqlParserHandler implements Interceptor {

代码示例来源:origin: svili365/mybatis-jpa

@Intercepts({@Signature(type = ResultSetHandler.class, method = "handleResultSets", args = {
  Statement.class})})
public class ResultTypePlugin implements Interceptor {

相关文章