@Intercepts({@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class})}) @Component
@Intercepts(value = { @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, CacheKey.class, BoundSql.class}),
@Data @Accessors(chain = true) @Intercepts({@Signature(type = Executor.class, method = "update", args = {MappedStatement.class, Object.class})}) public class SqlExplainInterceptor extends AbstractSqlParserHandler implements Interceptor {
@Intercepts({@Signature(type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class})}) public class PaginationInterceptor extends AbstractSqlParserHandler implements Interceptor {
@Intercepts({@Signature(type = Executor.class, method = "update", args = {MappedStatement.class, Object.class})}) public class OptimisticLockerInterceptor implements Interceptor {
@Intercepts({@Signature(type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class})}) public class IllegalSQLInterceptor implements Interceptor {
@Intercepts({ @Signature(type = StatementHandler.class, method = "query", args = {Statement.class, ResultHandler.class}), @Signature(type = StatementHandler.class, method = "update", args = {Statement.class}),
@Intercepts({ @Signature(type = StatementHandler.class, method = "prepare", args = { Connection.class }), @Signature(type = ResultSetHandler.class, method = "handleResultSets", args = { Statement.class }) }) public class PaginationInterceptor implements Interceptor {
@Intercepts( @Signature( type = Executor.class,
@Intercepts({@Signature(type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class})}) public class DataScopeInterceptor extends SqlParserHandler implements Interceptor {
@Intercepts( @Signature(type = ResultSetHandler.class, method = "handleResultSets", args = {Statement.class})
@Intercepts({ @Signature(type = Executor.class, method = "query", args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class
@Intercepts(@Signature(type = Executor.class, method = "query", args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class })) public class PageInterceptor implements Interceptor {
@Intercepts({ @Signature( type = Executor.class,
@Intercepts({ @Signature(type = Executor.class, method = "update", args = { MappedStatement.class, Object.class}),
/** * <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; } }
/** * 权限控制切面处理的默认实现类 * * @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() { } }
/** * 操作轨迹记录, 查找带有@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); } }