org.apache.ibatis.plugin.Plugin Java Examples

The following examples show how to use org.apache.ibatis.plugin.Plugin. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MybatisInterceptor.java    From azeroth with Apache License 2.0 5 votes vote down vote up
@Override
public Object plugin(Object target) {
    if (target instanceof Executor) {
        return Plugin.wrap(target, this);
    } else {
        return target;
    }

}
 
Example #2
Source File: PaginationInterceptor.java    From belling-admin with Apache License 2.0 5 votes vote down vote up
/**
 * 只拦截这两种类型的 <br>
 * StatementHandler <br>
 * ResultSetHandler
 * 
 * @param target
 * @return
 */
@Override
public Object plugin(Object target) {
	if (target instanceof StatementHandler || target instanceof ResultSetHandler) {
		return Plugin.wrap(target, this);
	} else {
		return target;
	}
}
 
Example #3
Source File: RWPlugin.java    From spring-boot-mybatis-rw with Apache License 2.0 5 votes vote down vote up
public Object plugin(Object target) {
	if (target instanceof StatementHandler) {  
           return Plugin.wrap(target, this);  
       } else {  
           return target;  
       }  
}
 
Example #4
Source File: AutoMapperInterceptor.java    From mybatis.flying with Apache License 2.0 5 votes vote down vote up
@Override
public Object plugin(Object target) {
	if (target instanceof StatementHandler) {
		return Plugin.wrap(target, this);
	} else {
		return target;
	}
}
 
Example #5
Source File: PagePluging.java    From aaden-pay with Apache License 2.0 5 votes vote down vote up
public Object plugin(Object target) {
	if (target instanceof Executor) {
		return Plugin.wrap(target, this);
	} else {
		return target;
	}
}
 
Example #6
Source File: PageInterceptor.java    From Zebra with Apache License 2.0 5 votes vote down vote up
@Override
public Object plugin(Object target) {
	if (target instanceof Executor) {
		return Plugin.wrap(target, this);
	} else {
		return target;
	}
}
 
Example #7
Source File: AuditingInterceptor.java    From spring-data-mybatis with Apache License 2.0 5 votes vote down vote up
@Override
public Object plugin(Object target) {
	if (target instanceof Executor) {
		return Plugin.wrap(target, this);
	}
	return target;
}
 
Example #8
Source File: CustomPageInterceptor.java    From spring-boot-starter-dao with Apache License 2.0 5 votes vote down vote up
@Override
public Object plugin(Object target) {  
	if (target instanceof Executor) {
        return Plugin.wrap(target, this);
    } else {
        return target;
    }
}
 
Example #9
Source File: SQLRouterInterceptor.java    From dubbox with Apache License 2.0 5 votes vote down vote up
/**
 * 拦截器对应的封装原始对象的方法
 */
public Object plugin(Object arg0) {
	if (arg0 instanceof StatementHandler) {
		return Plugin.wrap(arg0, this);
	} else {
		return arg0;
	}
}
 
Example #10
Source File: EasyMybatisPaginationPlugin.java    From EasyEE with MIT License 5 votes vote down vote up
public Object plugin(Object target) {
	if (target instanceof StatementHandler) {
		return Plugin.wrap(target, this);
	} else if (target instanceof Executor) {
		return Plugin.wrap(target, this);
	} else {
		return target;
	}
}
 
Example #11
Source File: CatMybatisPlugin.java    From radar with Apache License 2.0 5 votes vote down vote up
@Override
public Object plugin(Object target) {
	if (target instanceof Executor){
		return Plugin.wrap(target, this);
	}
	return target;
}
 
Example #12
Source File: EasyMybatisPaginationPlugin.java    From EasyEE with MIT License 5 votes vote down vote up
public Object plugin(Object target) {
	if (target instanceof StatementHandler) {
		return Plugin.wrap(target, this);
	} else if (target instanceof Executor) {
		return Plugin.wrap(target, this);
	} else {
		return target;
	}
}
 
Example #13
Source File: JeesuiteMybatisInterceptor.java    From jeesuite-libs with Apache License 2.0 5 votes vote down vote up
@Override
public Object plugin(Object target) {
	if (target instanceof Executor) {
           return Plugin.wrap(target, this);
       } else {
           return target;
       }


}
 
Example #14
Source File: DynamicDataSourcePlugin.java    From EasyReport with Apache License 2.0 5 votes vote down vote up
@Override
public Object plugin(final Object target) {
    if (target instanceof Executor) {
        return Plugin.wrap(target, this);
    }
    return target;
}
 
Example #15
Source File: PaginationPlugin.java    From easyooo-framework with Apache License 2.0 5 votes vote down vote up
@Override
public Object plugin(Object target) {
	if (target instanceof Executor) {
		return Plugin.wrap(target, this);
	}
	return target;
}
 
Example #16
Source File: PagePlugin.java    From cms with Apache License 2.0 5 votes vote down vote up
/**
 * 拦截器对应的封装原始对象的方法
 */
@Override
public Object plugin(Object target) {
	if (target instanceof StatementHandler) {
		return Plugin.wrap(target, this);
	} else {
		return target;
	}
}
 
Example #17
Source File: CatMybatisPlugin.java    From pmq with Apache License 2.0 5 votes vote down vote up
@Override
public Object plugin(Object target) {
	if (target instanceof Executor) {
		return Plugin.wrap(target, this);
	}
	return target;
}
 
Example #18
Source File: PreparePaginationInterceptor.java    From Shop-for-JavaWeb with MIT License 4 votes vote down vote up
@Override
public Object plugin(Object o) {
    return Plugin.wrap(o, this);
}
 
Example #19
Source File: MyInterceptor.java    From ExamStack with GNU General Public License v2.0 4 votes vote down vote up
public Object plugin(Object target) {
	// TODO Auto-generated method stub
	return Plugin.wrap(target, this);
}
 
Example #20
Source File: ExamplePlugin.java    From mybatis with Apache License 2.0 4 votes vote down vote up
public Object plugin(Object target) {
  return Plugin.wrap(target, this);
}
 
Example #21
Source File: LogSqlExecutionTimePlugin.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Override
public Object plugin(Object target) {
    return Plugin.wrap(target, this);
}
 
Example #22
Source File: MybatisInterceptor.java    From cicada with MIT License 4 votes vote down vote up
public Object plugin(final Object target) {
  return Plugin.wrap(target, this);
}
 
Example #23
Source File: ExamplePlugin.java    From mybaties with Apache License 2.0 4 votes vote down vote up
public Object plugin(Object target) {
  return Plugin.wrap(target, this);
}
 
Example #24
Source File: MyInterceptor.java    From ExamStack with GNU General Public License v2.0 4 votes vote down vote up
public Object plugin(Object target) {
	// TODO Auto-generated method stub
	return Plugin.wrap(target, this);
}
 
Example #25
Source File: PaginationInterceptor.java    From Mario with Apache License 2.0 4 votes vote down vote up
@Override
public Object plugin(Object target) {
    return Plugin.wrap(target, this);
}
 
Example #26
Source File: QueryLoggingInterceptor.java    From sinavi-jfw with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Object plugin(Object target) {
    return Plugin.wrap(target, this);
}
 
Example #27
Source File: BindingLogPlugin32.java    From pinpoint with Apache License 2.0 4 votes vote down vote up
@Override
public Object plugin(Object target) {
    return Plugin.wrap(target, this);
}
 
Example #28
Source File: MybatisInterceptor.java    From jeecg-boot with Apache License 2.0 4 votes vote down vote up
@Override
public Object plugin(Object target) {
	return Plugin.wrap(target, this);
}
 
Example #29
Source File: MybatisInterceptor.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public Object plugin(Object target) {
    return Plugin.wrap(target, this);
}
 
Example #30
Source File: MybatisInterceptor.java    From jeecg-boot-with-activiti with MIT License 4 votes vote down vote up
@Override
public Object plugin(Object target) {
	return Plugin.wrap(target, this);
}