| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
pageNumber
The page number
|
protected int |
pageSize
The page size
|
protected SortParam[] |
sortParams
The sort params
|
| 构造器和说明 |
|---|
AbstractQuerier() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract <D extends T> |
compareByFieldName(D a,
D b,
String sortFieldName)
Compare by field name.
|
<D extends T> |
doPaging(List<D> list)
Do paging.
|
<D extends T> |
doSort(List<D> list)
Do sort.
|
int |
getFromIndex()
The starting index of the current page
|
int |
getPageNumber()
Gets page number
|
int |
getPageSize()
Gets page size
|
SortParam[] |
getSortParams()
Gets sort params.
|
int |
getToIndex(int fromIndex)
The end index of the current page
|
void |
setPageNumber(int pageNumber)
Sets page number
|
void |
setPageSize(int pageSize)
Sets page size
|
void |
setSortParams(SortParam... sortParams)
Sets sort params.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasSortParams, isNeedSortprotected SortParam[] sortParams
protected int pageNumber
protected int pageSize
public abstract <D extends T> int compareByFieldName(D a, D b, String sortFieldName)
D - the type of the object a and ba - the object ab - the object bsortFieldName - the sort field namepublic int getFromIndex()
public int getToIndex(int fromIndex)
fromIndex - 起始索引public SortParam[] getSortParams()
SortablegetSortParams 在接口中 Sortablepublic void setSortParams(SortParam... sortParams)
SortablesetSortParams 在接口中 SortablesortParams - the sort paramspublic int getPageNumber()
PageablegetPageNumber 在接口中 Pageablepublic void setPageNumber(int pageNumber)
PageablesetPageNumber 在接口中 PageablepageNumber - the page numberpublic int getPageSize()
PageablegetPageSize 在接口中 Pageablepublic void setPageSize(int pageSize)
PageablesetPageSize 在接口中 PageablepageSize - the page sizeCopyright © 2021–2024 EasyJ寮�婧愮ぞ鍖�. All rights reserved.