public static class PagingCursor.Page extends Object
Constructor and Description |
---|
Page(long totalRows,
int rowsPerPage,
int page,
boolean zeroBasedPage,
boolean zeroBasedRow)
Create a Page based Cursor
|
Modifier and Type | Method and Description |
---|---|
int |
getCurrentPage()
Gets the current page number
|
long |
getEndRow()
Gets the end row within collection for this page
|
int |
getFirstPage()
Gets the first page number
|
int |
getLastPage()
Gets the last page number
|
int |
getNextPage()
Gets the next page number
|
int |
getPreviousPage()
Gets the previous page number
|
int |
getRowsPerPage()
Gets page size
|
long |
getStartRow()
Gets the start row within collection for this page
|
int |
getTotalPages()
Gets total number of pages
|
long |
getTotalRows()
Gets total rows
|
boolean |
isInRange()
Is the cursor within range of the total number of rows
|
public Page(long totalRows, int rowsPerPage, int page, boolean zeroBasedPage, boolean zeroBasedRow)
totalRows
- total rows in collectionrowsPerPage
- page sizepage
- page number (0 or 1 based)zeroBasedPage
- true => 0 based, false => 1 basedzeroBasedRow
- true => 0 based, false => 1 basedpublic long getTotalRows()
public int getTotalPages()
public int getRowsPerPage()
public boolean isInRange()
public int getCurrentPage()
public int getNextPage()
public int getPreviousPage()
public int getFirstPage()
public int getLastPage()
public long getStartRow()
public long getEndRow()
Copyright © 2005–2017 Alfresco Software. All rights reserved.