Class WindowedCursor
java.lang.Object
org.alfresco.repo.web.util.paging.WindowedCursor
- All Implemented Interfaces:
Serializable,Cursor
Cursor implementation based on notion of a Window.
- Author:
- davidc
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintGets the current page numberintGets the end row within result set for this pageintGets the first page numberbooleanIs there a known first page?booleanIs there a known last page?booleanIs there a known next page?booleanIs there a known prev page?intGets the last page numberintGets the next page numberintGets the page sizeGets the page typeintGets the previous page numberintGets the count of rows within result set for this pageintGets the start row within result set for this pageintGets total number of pagesintGets total rowsbooleanIs the page within range of the result set
-
Method Details
-
getPageType
Description copied from interface:CursorGets the page type- Specified by:
getPageTypein interfaceCursor- Returns:
- page type
-
getPageSize
public int getPageSize()Description copied from interface:CursorGets the page size- Specified by:
getPageSizein interfaceCursor- Returns:
- page size
-
getTotalPages
public int getTotalPages()Description copied from interface:CursorGets total number of pages- Specified by:
getTotalPagesin interfaceCursor- Returns:
- total number of pages
-
getTotalRows
public int getTotalRows()Description copied from interface:CursorGets total rows- Specified by:
getTotalRowsin interfaceCursor- Returns:
- total rows
-
getCurrentPage
public int getCurrentPage()Description copied from interface:CursorGets the current page number- Specified by:
getCurrentPagein interfaceCursor- Returns:
- current page number
-
getFirstPage
public int getFirstPage()Description copied from interface:CursorGets the first page number- Specified by:
getFirstPagein interfaceCursor- Returns:
- first page number
-
getLastPage
public int getLastPage()Description copied from interface:CursorGets the last page number- Specified by:
getLastPagein interfaceCursor- Returns:
- last page number
-
getNextPage
public int getNextPage()Description copied from interface:CursorGets the next page number- Specified by:
getNextPagein interfaceCursor- Returns:
- next page number (-1 if no more pages)
-
getPrevPage
public int getPrevPage()Description copied from interface:CursorGets the previous page number- Specified by:
getPrevPagein interfaceCursor- Returns:
- previous page number (-1 if no previous pages)
-
isInRange
public boolean isInRange()Description copied from interface:CursorIs the page within range of the result set -
getHasFirstPage
public boolean getHasFirstPage()Description copied from interface:CursorIs there a known first page?- Specified by:
getHasFirstPagein interfaceCursor- Returns:
- true => getFirstPage() will succeed
-
getHasLastPage
public boolean getHasLastPage()Description copied from interface:CursorIs there a known last page?- Specified by:
getHasLastPagein interfaceCursor- Returns:
- true => getLastPage() will succeed
-
getHasNextPage
public boolean getHasNextPage()Description copied from interface:CursorIs there a known next page?- Specified by:
getHasNextPagein interfaceCursor- Returns:
- true => getNextPage() will succeed
-
getHasPrevPage
public boolean getHasPrevPage()Description copied from interface:CursorIs there a known prev page?- Specified by:
getHasPrevPagein interfaceCursor- Returns:
- true => getPrevPage() will succeed
-
getStartRow
public int getStartRow()Description copied from interface:CursorGets the start row within result set for this page- Specified by:
getStartRowin interfaceCursor- Returns:
- start row index
-
getEndRow
public int getEndRow()Description copied from interface:CursorGets the end row within result set for this page -
getRowCount
public int getRowCount()Description copied from interface:CursorGets the count of rows within result set for this page- Specified by:
getRowCountin interfaceCursor- Returns:
- row count
-