
com.gitee.qdbp.jdbc.utils.PagingQuery Maven / Gradle / Ivy
package com.gitee.qdbp.jdbc.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ColumnMapRowMapper;
import org.springframework.jdbc.core.RowMapper;
import com.gitee.qdbp.able.jdbc.paging.Paging;
import com.gitee.qdbp.able.jdbc.paging.PartList;
import com.gitee.qdbp.jdbc.api.SqlBufferJdbcOperations;
import com.gitee.qdbp.jdbc.plugins.SqlDialect;
import com.gitee.qdbp.jdbc.sql.SqlBuffer;
/**
* 分页查询工具类
*
* @author zhaohuihua
* @version 190607
*/
public class PagingQuery {
/**
* 分页查询
*
* @param jdbc JDBC查询接口
* @param qsb 数据查询SQL语句
* @param csb 总数统计SQL语句
* @param paging 分页条件
* @return a PartList that contains a Map per row and total rows.
* @throws DataAccessException if the query fails
*/
public static PartList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy