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

com.github.freegeese.maven.plugin.autocode.demo.base.Pageable Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
package com.github.freegeese.maven.plugin.autocode.demo.base;

import java.util.List;

/**
 * 可分页的接口
 */
public interface Pageable {
    /**
     * 第几页
     *
     * @return
     */
    Integer getPageNumber();

    /**
     * 每页多少条记录
     *
     * @return
     */
    Integer getPageSize();

    /**
     * 分页起始位置
     *
     * @return
     */
    Integer getOffset();

    /**
     * 总页数
     *
     * @return
     */
    Integer getTotalPages();

    /**
     * 总记录数
     *
     * @return
     */
    Long getTotalRecords();

    /**
     * 设置分页总记录数
     *
     * @param totalRecords
     */
    void setTotalRecords(Long totalRecords);

    /**
     * 当前页数据
     *
     * @return
     */
    List getContent();

    /**
     * 设置分页数据
     *
     * @param content
     */
    void setContent(List content);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy