Java Code Examples for org.apache.ibatis.plugin.Plugin#wrap()

The following examples show how to use org.apache.ibatis.plugin.Plugin#wrap() . 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: 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 2
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 3
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 4
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 5
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 6
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 7
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 8
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 9
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 10
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 11
Source File: DataPermissionInterceptor.java    From DataPermissionHelper with Apache License 2.0 4 votes vote down vote up
@Override
public Object plugin(Object target) {
    return Plugin.wrap(target, this);
}
 
Example 12
Source File: QueryLimitPlugin.java    From blog with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public Object plugin(Object target) {
	return Plugin.wrap(target, this);
}
 
Example 13
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 14
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 15
Source File: PageInterceptor.java    From ssm-demo with Apache License 2.0 4 votes vote down vote up
/**
 * 拦截器对应的封装原始对象的方法
 */
public Object plugin(Object target) {
	return Plugin.wrap(target, this);
}
 
Example 16
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 17
Source File: PageInterceptor.java    From dubbo-mock with Apache License 2.0 4 votes vote down vote up
/**
 * 拦截器对应的封装原始对象的方法
 */
@Override
public Object plugin(Object target) {
    return Plugin.wrap(target, this);
}
 
Example 18
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 19
Source File: PaginationInterceptor.java    From joyqueue with Apache License 2.0 4 votes vote down vote up
@Override
public Object plugin(Object target) {
    return Plugin.wrap(target, this);
}
 
Example 20
Source File: MybatisInterceptor.java    From teaching with Apache License 2.0 4 votes vote down vote up
@Override
public Object plugin(Object target) {
	return Plugin.wrap(target, this);
}