All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloud.agileframework.mybatis.page.CustomConfiguration Maven / Gradle / Ivy

package cloud.agileframework.mybatis.page;

import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.executor.parameter.ParameterHandler;
import org.apache.ibatis.executor.resultset.ResultSetHandler;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.session.Configuration;
import org.apache.ibatis.session.ResultHandler;
import org.apache.ibatis.session.RowBounds;

/**
 * 描述:
 * 

创建时间:2018/12/14
* * @author 佟盟 * @version 1.0 * @since 1.0 */ public class CustomConfiguration extends Configuration { @Override public ResultSetHandler newResultSetHandler(Executor executor, MappedStatement mappedStatement, RowBounds rowBounds, ParameterHandler parameterHandler, ResultHandler resultHandler, BoundSql boundSql) { ResultSetHandler resultSetHandler = new CustomResultSetHandler(executor, mappedStatement, parameterHandler, resultHandler, boundSql, rowBounds); resultSetHandler = (ResultSetHandler) interceptorChain.pluginAll(resultSetHandler); return resultSetHandler; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy