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

net.quanter.shield.mybatis.pagehelper.PageDTO Maven / Gradle / Ivy

Go to download

扩展mybatis的能力,包括公共分页接口,实现对cache,sqlserver数据库的分页

There is a newer version: 1.4.1
Show newest version
package net.quanter.shield.mybatis.pagehelper;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class PageDTO {

    public PageDTO(int pageSize) {
        this.pageNum = 1;
        this.pageSize = pageSize;
    }

    /**
     * 页码,从1开始
     */
    private int pageNum;
    /**
     * 页面大小
     */
    private int pageSize;
    /**
     * 起始行
     */
    private int startRow;
    /**
     * 末行
     */
    private int endRow;
    /**
     * 总数
     */
    private long total;
    /**
     * 总页数
     */
    private int pages;
    /**
     * 包含count查询
     */
    private boolean count = true;
    /**
     * 分页合理化
     */
    private Boolean reasonable;
    /**
     * 当设置为true的时候,如果pagesize设置为0(或RowBounds的limit=0),就不执行分页,返回全部结果
     */
    private Boolean pageSizeZero;
    /**
     * 进行count查询的列名
     */
    private String countColumn;
    /**
     * 排序
     */
    private String orderBy;
    /**
     * 只增加排序
     */
    private boolean orderByOnly;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy