ENTITY - The type of entity for the element of selected list.public class PagingResultBean<ENTITY> extends ListResultBean<ENTITY>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
_currentPageNumber
The value of current page number.
|
protected int |
_pageSize
The value of page size that means record count in one page.
|
_allRecordCount, _orderByClause, _selectedList, _tableDbName| コンストラクタと説明 |
|---|
PagingResultBean() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
assertPageGroupOptionCall(PageNumberLinkOptionCall<PageGroupOption> opLambda) |
protected void |
assertPageRangeOptionCall(PageNumberLinkOptionCall<PageRangeOption> opLambda) |
protected int |
calculateAllPageCount(int allRecordCount,
int pageSize)
Calculate all page count.
|
protected int |
calculateCurrentEndRecordNumber(int currentPageNumber,
int pageSize) |
protected int |
calculateCurrentStartRecordNumber(int currentPageNumber,
int pageSize) |
protected PageGroupBean |
createPageGroupBean(PageGroupOption op) |
protected PageGroupOption |
createPageGroupOption(PageNumberLinkOptionCall<PageGroupOption> opLambda) |
protected PageRangeBean |
createPageRangeBean(PageRangeOption op) |
protected PageRangeOption |
createPageRangeOption(PageNumberLinkOptionCall<PageRangeOption> opLambda) |
boolean |
equals(Object other) |
boolean |
existsNextPage()
Does the next page exist?
|
boolean |
existsPreviousPage()
Does the previous page exist?
|
int |
getAllPageCount()
Get the value of allPageCount that is calculated.
|
int |
getAllRecordCount()
Get the value of allRecordCount when no paging.
|
int |
getCurrentEndRecordNumber()
Get the value of currentEndRecordNumber that is calculated.
|
int |
getCurrentPageNumber()
Get the value of currentPageNumber.
|
int |
getCurrentStartRecordNumber()
Get the value of currentStartRecordNumber that is calculated.
|
int |
getNextPageNumber()
Get the value of nextPageNumber that is calculated.
|
int |
getPageSize()
Get the value of pageSize that means record size in a page.
|
int |
getPrePageNumber()
非推奨です。
use getPreviousPageNumber()
|
int |
getPreviousPageNumber()
Get the value of previousPageNumber that is calculated.
|
int |
hashCode() |
boolean |
isExistNextPage()
非推奨です。
use existsNextPage()
|
boolean |
isExistPrePage()
非推奨です。
use existsPreviousPage()
|
<DTO> PagingResultBean<DTO> |
mappingList(EntityDtoMapper<ENTITY,DTO> entityDtoMapper)
Map the entity list to the list of other object.
|
protected PageGroupBean |
newPageGroupBean() |
protected PageGroupOption |
newPageGroupOption() |
protected PageRangeBean |
newPageRangeBean() |
protected PageRangeOption |
newPageRangeOption() |
PageGroupBean |
pageGroup(PageNumberLinkOptionCall<PageGroupOption> opLambda)
Get the value of pageGroupBean.
|
PageRangeBean |
pageRange(PageNumberLinkOptionCall<PageRangeOption> opLambda)
Get the value of pageRangeBean.
|
void |
setAllRecordCount(int allRecordCount)
Set the value of allRecordCount when no paging with initializing cached beans.
|
void |
setCurrentPageNumber(int currentPageNumber)
Set the value of currentPageNumber with initializing cached beans.
|
void |
setPageSize(int pageSize)
Set the value of pageSize with initializing cached beans.
|
String |
toString() |
add, add, addAll, addAll, clear, contains, containsAll, createEmptyIterator, createInheritedResultBean, extractColumnList, extractColumnSet, get, getOrderByClause, getSelectedList, getTableDbName, groupingList, groupingMap, hasWrappedListInstance, indexOf, isEmpty, isSelectedResult, iterator, lastIndexOf, listIterator, listIterator, newResultBeanBuilder, remove, remove, removeAll, retainAll, set, setOrderByClause, setSelectedList, setTableDbName, size, subList, toArray, toArrayreplaceAll, sort, spliteratorparallelStream, removeIf, streamprotected int _pageSize
protected int _currentPageNumber
public boolean existsPreviousPage()
e.g. range-size=5, current-page=8 8 / 23 pages (453 records) previous 3 4 5 6 7 8 9 10 11 12 13 next
public boolean existsNextPage()
e.g. range-size=5, current-page=8 8 / 23 pages (453 records) previous 3 4 5 6 7 8 9 10 11 12 13 next
public boolean isExistPrePage()
e.g. range-size=5, current-page=8 8 / 23 pages (453 records) previous 3 4 5 6 7 8 9 10 11 12 13 next
public boolean isExistNextPage()
e.g. range-size=5, current-page=8 8 / 23 pages (453 records) previous 3 4 5 6 7 8 9 10 11 12 13 next
public PageGroupBean pageGroup(PageNumberLinkOptionCall<PageGroupOption> opLambda)
e.g. group-size=10, current-page=8 PageGroupBean pageGroup = page.pageGroup(op -> op.groupSize(3)); List<Integer> numberList = pageGroup.createPageNumberList(); // 8 / 23 pages (453 records) // previous 1 2 3 4 5 6 7 8 9 10 next
opLambda - The callback for setting of page-group option. (NotNull)protected void assertPageGroupOptionCall(PageNumberLinkOptionCall<PageGroupOption> opLambda)
protected PageGroupOption createPageGroupOption(PageNumberLinkOptionCall<PageGroupOption> opLambda)
protected PageGroupOption newPageGroupOption()
protected PageGroupBean createPageGroupBean(PageGroupOption op)
protected PageGroupBean newPageGroupBean()
public PageRangeBean pageRange(PageNumberLinkOptionCall<PageRangeOption> opLambda)
e.g. group-size=10, current-page=8 PageRangeBean pageRange = page.pageRange(op -> op.rangeSize(3)); List<Integer> numberList = pageRange.createPageNumberList(); // 8 / 23 pages (453 records) // previous 1 2 3 4 5 6 7 8 9 10 next
opLambda - The callback for setting of page-range option. (NotNull)protected void assertPageRangeOptionCall(PageNumberLinkOptionCall<PageRangeOption> opLambda)
protected PageRangeOption createPageRangeOption(PageNumberLinkOptionCall<PageRangeOption> opLambda)
protected PageRangeOption newPageRangeOption()
protected PageRangeBean createPageRangeBean(PageRangeOption op)
protected PageRangeBean newPageRangeBean()
protected int calculateAllPageCount(int allRecordCount,
int pageSize)
allRecordCount - The record count of all records (without paging).pageSize - The record count of one page.protected int calculateCurrentStartRecordNumber(int currentPageNumber,
int pageSize)
protected int calculateCurrentEndRecordNumber(int currentPageNumber,
int pageSize)
public <DTO> PagingResultBean<DTO> mappingList(EntityDtoMapper<ENTITY,DTO> entityDtoMapper)
ListResultBeanListResultBean<MemberWebBean> beanList = memberList.mappingList(member -> { MemberWebBean bean = new MemberWebBean(); bean.setMemberId(member.getMemberId()); bean.setMemberName(member.getMemberName()); ... return bean; });
This method needs the property 'selectedList' only.
mappingList クラス内 ListResultBean<ENTITY>DTO - The type of DTO.entityDtoMapper - The callback for mapping of entity and DTO. (NotNull)public int hashCode()
hashCode インタフェース内 Collection<ENTITY>hashCode インタフェース内 List<ENTITY>hashCode クラス内 ListResultBean<ENTITY>public boolean equals(Object other)
equals インタフェース内 Collection<ENTITY>equals インタフェース内 List<ENTITY>equals クラス内 ListResultBean<ENTITY>other - Other entity. (NullAllowed)public String toString()
toString クラス内 ListResultBean<ENTITY>public int getAllRecordCount()
e.g. range-size=5, current-page=8
8 / 23 pages (453 records)
previous 3 4 5 6 7 8 9 10 11 12 13 next
getAllRecordCount クラス内 ListResultBean<ENTITY>public void setAllRecordCount(int allRecordCount)
setAllRecordCount クラス内 ListResultBean<ENTITY>allRecordCount - The count of all records without paging.public int getPageSize()
public void setPageSize(int pageSize)
pageSize - The size of one page.public int getCurrentPageNumber()
e.g. range-size=5, current-page=8
8 / 23 pages (453 records)
previous 3 4 5 6 7 8 9 10 11 12 13 next
public void setCurrentPageNumber(int currentPageNumber)
currentPageNumber - The number of current page.public int getAllPageCount()
e.g. range-size=5, current-page=8
8 / 23 pages (453 records)
previous 3 4 5 6 7 8 9 10 11 12 13 next
public int getPreviousPageNumber()
e.g. range-size=5, current-page=8 8 / 23 pages (453 records) previous 3 4 5 6 7 8 9 10 11 12 13 next
public int getNextPageNumber()
e.g. range-size=5, current-page=8 8 / 23 pages (453 records) previous 3 4 5 6 7 8 9 10 11 12 13 next
public int getPrePageNumber()
e.g. range-size=5, current-page=8 8 / 23 pages (453 records) previous 3 4 5 6 7 8 9 10 11 12 13 next
public int getCurrentStartRecordNumber()
public int getCurrentEndRecordNumber()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.