Class WindowedCursor
- java.lang.Object
-
- org.alfresco.repo.web.util.paging.WindowedCursor
-
- All Implemented Interfaces:
Serializable,Cursor
public class WindowedCursor extends Object implements Cursor, Serializable
Cursor implementation based on notion of a Window.- Author:
- davidc
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentPage()Gets the current page numberintgetEndRow()Gets the end row within result set for this pageintgetFirstPage()Gets the first page numberbooleangetHasFirstPage()Is there a known first page?booleangetHasLastPage()Is there a known last page?booleangetHasNextPage()Is there a known next page?booleangetHasPrevPage()Is there a known prev page?intgetLastPage()Gets the last page numberintgetNextPage()Gets the next page numberintgetPageSize()Gets the page sizeStringgetPageType()Gets the page typeintgetPrevPage()Gets the previous page numberintgetRowCount()Gets the count of rows within result set for this pageintgetStartRow()Gets the start row within result set for this pageintgetTotalPages()Gets total number of pagesintgetTotalRows()Gets total rowsbooleanisInRange()Is the page within range of the result set
-
-
-
Method Detail
-
getPageType
public String 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
-
-