M - type of the mark.public class MarkPageRequest<M> extends PageRequest
MarkPage
and sent back to the caller when a page is read. The mark and navigation
is updated. The caller can use this request for subsequent paged read on
the database| Modifier and Type | Class and Description |
|---|---|
static class |
MarkPageRequest.Navigation
Page Navigation type.
|
| Constructor and Description |
|---|
MarkPageRequest(int pageSize)
Creates a request for the first page.
|
MarkPageRequest(M mark,
MarkPageRequest.Navigation navigation,
int pageSize)
Creates a request for any page.
|
| Modifier and Type | Method and Description |
|---|---|
<T> MarkPageRequest<T> |
convert(T convertedMark)
Converts the page request to use a converted mark.
|
boolean |
equals(Object obj) |
M |
getMark() |
MarkPageRequest.Navigation |
getNavigation() |
int |
hashCode() |
String |
toString() |
getPageIndex, getPageSizepublic MarkPageRequest(int pageSize)
pageSize - page size (maximum number of data items per page).public MarkPageRequest(M mark, MarkPageRequest.Navigation navigation, int pageSize)
mark - the mark to use in the subsequent requestsnavigation - the direction of read. It could be NEXT for next page
and PREVIOUS for the previous page.pageSize - the size of this page.public M getMark()
public MarkPageRequest.Navigation getNavigation()
public <T> MarkPageRequest<T> convert(T convertedMark)
convertedMark - converted mark.public int hashCode()
hashCode in class PageRequestpublic boolean equals(Object obj)
equals in class PageRequestCopyright © 2014. All Rights Reserved.