public class CannedQueryPageDetails extends 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:
DEFAULT_SKIP_RESULTS
pageSize: DEFAULT_PAGE_SIZE
pageNumber: DEFAULT_PAGE_NUMBER
pageCount: DEFAULT_PAGE_COUNT
|
CannedQueryPageDetails(int skipResults,
int pageSize)
Construct with defaults
pageNumber:
DEFAULT_PAGE_NUMBER
pageCount: 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
|
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()
DEFAULT_SKIP_RESULTS
DEFAULT_PAGE_SIZE
DEFAULT_PAGE_NUMBER
DEFAULT_PAGE_COUNT
public CannedQueryPageDetails(int skipResults, int pageSize)
DEFAULT_PAGE_NUMBER
DEFAULT_PAGE_COUNT
skipResults
- results to skip before page one
(default DEFAULT_SKIP_RESULTS
)pageSize
- the size of each page
(default DEFAULT_PAGE_SIZE
)public CannedQueryPageDetails(int skipResults, int pageSize, int pageNumber, int pageCount)
skipResults
- results to skip before page one
(default DEFAULT_SKIP_RESULTS
)pageSize
- the size of each page
(default DEFAULT_PAGE_SIZE
)pageNumber
- the first page number to return
(default DEFAULT_PAGE_NUMBER
)pageCount
- the number of pages to return
(default DEFAULT_PAGE_COUNT
)public CannedQueryPageDetails(PagingRequest pagingRequest)
pagingRequest
- the paging detailspublic int getSkipResults()
public int getPageSize()
public int getPageNumber()
public int getPageCount()
public int getResultsRequiredForPaging()
Copyright © 2005–2015 Alfresco Software. All rights reserved.