public class CannedQueryPageDetails
extends java.lang.Object
skipped, chopped into pages of
appropriate size before the start page
and number are returned.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PAGE_COUNT |
static int |
DEFAULT_PAGE_NUMBER |
static int |
DEFAULT_PAGE_SIZE |
static int |
DEFAULT_SKIP_RESULTS |
| Constructor and Description |
|---|
CannedQueryPageDetails()
Construct with defaults
skipResults:
CannedQueryPageDetails.DEFAULT_SKIP_RESULTS
pageSize: CannedQueryPageDetails.DEFAULT_PAGE_SIZE
pageNumber: CannedQueryPageDetails.DEFAULT_PAGE_NUMBER
pageCount: CannedQueryPageDetails.DEFAULT_PAGE_COUNT
|
CannedQueryPageDetails(int skipResults,
int pageSize)
Construct with defaults
pageNumber:
CannedQueryPageDetails.DEFAULT_PAGE_NUMBER
pageCount: CannedQueryPageDetails.DEFAULT_PAGE_COUNT
|
CannedQueryPageDetails(int skipResults,
int pageSize,
int pageNumber,
int pageCount) |
CannedQueryPageDetails(PagingRequest pagingRequest)
Helper constructor to transform a paging request into the Canned Query form.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPageCount()
Get the total number of pages to return
|
int |
getPageNumber()
Get the first page number to return
|
int |
getPageSize()
Get the size of each page
|
int |
getResultsRequiredForPaging()
Calculate the number of results that would be required to satisy this paging request.
|
int |
getSkipResults()
Get the number of query results to skip before applying further page parameters
|
java.lang.String |
toString() |
public static final int DEFAULT_SKIP_RESULTS
public static final int DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_NUMBER
public static final int DEFAULT_PAGE_COUNT
public CannedQueryPageDetails()
CannedQueryPageDetails.DEFAULT_SKIP_RESULTSCannedQueryPageDetails.DEFAULT_PAGE_SIZECannedQueryPageDetails.DEFAULT_PAGE_NUMBERCannedQueryPageDetails.DEFAULT_PAGE_COUNTpublic CannedQueryPageDetails(int skipResults,
int pageSize)
CannedQueryPageDetails.DEFAULT_PAGE_NUMBERCannedQueryPageDetails.DEFAULT_PAGE_COUNTskipResults - results to skip before page one
(default CannedQueryPageDetails.DEFAULT_SKIP_RESULTS)pageSize - the size of each page
(default CannedQueryPageDetails.DEFAULT_PAGE_SIZE)public CannedQueryPageDetails(int skipResults,
int pageSize,
int pageNumber,
int pageCount)
skipResults - results to skip before page one
(default CannedQueryPageDetails.DEFAULT_SKIP_RESULTS)pageSize - the size of each page
(default CannedQueryPageDetails.DEFAULT_PAGE_SIZE)pageNumber - the first page number to return
(default CannedQueryPageDetails.DEFAULT_PAGE_NUMBER)pageCount - the number of pages to return
(default CannedQueryPageDetails.DEFAULT_PAGE_COUNT)public CannedQueryPageDetails(PagingRequest pagingRequest)
pagingRequest - the paging detailspublic java.lang.String toString()
toString in class java.lang.Objectpublic int getSkipResults()
public int getPageSize()
public int getPageNumber()
public int getPageCount()
public int getResultsRequiredForPaging()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.