|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.web.util.PagingCursor.Page
public static class PagingCursor.Page
Page based Cursor
Constructor Summary | |
---|---|
PagingCursor.Page(long totalRows,
int rowsPerPage,
int page,
boolean zeroBasedPage,
boolean zeroBasedRow)
Create a Page based Cursor |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PagingCursor.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 basedMethod Detail |
---|
public 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |