Package net.hasor.db.ar

Examples of net.hasor.db.ar.Paginator


* @version : 2014年10月30日
* @author 赵永春(zyc@hasor.net)
*/
public class Pages {
    public static void main(String[] args) {
        Paginator pag = new Paginator();
        pag.setTotalCount(20);
        pag.setCurrentPage(100);
        //
        System.out.println("    pageSize: " + pag.getPageSize());
        System.out.println("  totalCount: " + pag.getTotalCount());
        System.out.println(" isFirstPage: " + pag.isFirstPage());
        System.out.println(" hasPrevious: " + pag.hasPreviousPage());
        System.out.println("PreviousPage: " + pag.getPreviousPage());
        System.out.println(" CurrentPage: " + pag.getCurrentPage());
        System.out.println("    NextPage: " + pag.getNextPage());
        System.out.println(" hasNextPage: " + pag.hasNextPage());
        System.out.println("  isLastPage: " + pag.isLastPage());
        System.out.println("   totalPage: " + pag.getTotalPage());
        System.out.println("   firstItem: " + pag.getFirstItem());
        System.out.println("   lastItem : " + pag.getLastItem());
    }
View Full Code Here

TOP

Related Classes of net.hasor.db.ar.Paginator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.