List of usage examples for org.apache.ibatis.plugin Plugin wrap
public static Object wrap(Object target, Interceptor interceptor)
From source file:cn.com.bricks.mybatis.rbac.DynamicObscureInterceptor.java
@Override public Object plugin(Object target) { return Plugin.wrap(target, this); }
From source file:cn.myblog.uitl.MybatisPageHelper.PageHelper.java
License:Open Source License
/** * ?Executor/*ww w .j a v a 2 s . c o m*/ * * @param target * @return */ @Override public Object plugin(Object target) { if (target instanceof Executor) { return Plugin.wrap(target, this); } else { return target; } }
From source file:cn.org.awcp.core.mybatis.mapper.MapperInterceptor.java
License:Open Source License
@Override public Object plugin(Object target) { if (target instanceof Executor) { return Plugin.wrap(target, this); } else {/*from w ww. j av a 2 s. co m*/ return target; } }
From source file:cn.org.awcp.core.mybatis.page.PageHelper.java
License:Open Source License
/** * ?Executor//from w w w.j a v a2s .c o m * * @param target * @return */ public Object plugin(Object target) { if (target instanceof Executor) { return Plugin.wrap(target, this); } else { return target; } }
From source file:com.baomidou.mybatisplus.plugins.CachePaginationInterceptor.java
License:Apache License
public Object plugin(Object target) { if (target instanceof Executor) { return Plugin.wrap(target, this); }//from w ww. j ava 2s. com if (target instanceof StatementHandler) { return Plugin.wrap(target, this); } return target; }
From source file:com.baomidou.mybatisplus.plugins.OptimisticLockerInterceptor.java
License:Apache License
@Override public Object plugin(Object target) { if (target instanceof StatementHandler) { return Plugin.wrap(target, this); }/*w ww. j av a 2 s .c om*/ return target; }
From source file:com.baomidou.mybatisplus.plugins.PaginationInterceptor.java
License:Apache License
public Object plugin(Object target) { if (target instanceof StatementHandler) { return Plugin.wrap(target, this); }//from w w w.j av a2 s .c o m return target; }
From source file:com.baomidou.mybatisplus.plugins.SqlExplainInterceptor.java
License:Apache License
public Object plugin(Object target) { if (target instanceof Executor) { return Plugin.wrap(target, this); }/*from w w w .java 2 s . c o m*/ return target; }
From source file:com.beginner.core.page.PagePlugin.java
License:Apache License
public Object plugin(Object arg0) { return Plugin.wrap(arg0, this); }
From source file:com.chrhc.mybatis.locker.interceptor.OptimisticLocker.java
License:Apache License
@Override public Object plugin(Object target) { if (target instanceof StatementHandler || target instanceof ParameterHandler) { return Plugin.wrap(target, this); } else {//from w w w . j av a 2s .c o m return target; } }