ENTITY - The type of entity.public class PagingInvoker<ENTITY> extends Object
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected static class |
PagingInvoker.InvocationResultResource<ENTITY> |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
_tableDbName |
| コンストラクタと説明 |
|---|
PagingInvoker(String tableDbName) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
assertObjectNotNull(String variableName,
Object value)
Assert that the object is not null.
|
protected void |
checkSafetyResultIfNeeds(int safetyMaxResultSize,
int allRecordCount)
Check whether the count of all records is safety or not if it needs.
|
protected ResultBeanBuilder<ENTITY> |
createResultBeanBuilder()
Create the builder of result bean.
|
protected int |
deriveAllRecordCountByLastPage(List<ENTITY> selectedList,
PagingBean pagingBean)
Derive all record count by last page.
|
protected PagingInvoker.InvocationResultResource<ENTITY> |
doPaging(PagingHandler<ENTITY> handler,
PagingBean pagingBean,
ResultBeanBuilder<ENTITY> builder) |
protected int |
executeCount(PagingHandler<ENTITY> handler) |
protected List<ENTITY> |
executePaging(PagingHandler<ENTITY> handler) |
PagingResultBean<ENTITY> |
invokePaging(PagingHandler<ENTITY> handler)
Invoke select-page by handler.
|
protected boolean |
isCurrentLastPage(List<ENTITY> selectedList,
PagingBean pagingBean)
Is the current page is last page?
|
protected boolean |
isNecessaryToReadPageAgain(PagingResultBean<ENTITY> rb)
Is it necessary to read page again?
|
protected boolean |
isUseManualThreadDataSource() |
protected String |
ln() |
protected PagingResultBean<ENTITY> |
reselect(PagingHandler<ENTITY> handler,
PagingBean pagingBean,
ResultBeanBuilder<ENTITY> builder,
PagingResultBean<ENTITY> rb) |
protected void |
throwPagingOverSafetySizeException(int safetyMaxResultSize,
int allRecordCount) |
protected void |
throwPagingStatusInvalidException(PagingBean pagingBean) |
protected final String _tableDbName
public PagingInvoker(String tableDbName)
public PagingResultBean<ENTITY> invokePaging(PagingHandler<ENTITY> handler)
handler - The handler of paging. (NotNull)PagingStatusInvalidException - When the paging status is invalid.PagingOverSafetySizeException - When the paging is over safety size.protected PagingInvoker.InvocationResultResource<ENTITY> doPaging(PagingHandler<ENTITY> handler, PagingBean pagingBean, ResultBeanBuilder<ENTITY> builder)
protected ResultBeanBuilder<ENTITY> createResultBeanBuilder()
protected int executeCount(PagingHandler<ENTITY> handler)
protected List<ENTITY> executePaging(PagingHandler<ENTITY> handler)
protected PagingResultBean<ENTITY> reselect(PagingHandler<ENTITY> handler, PagingBean pagingBean, ResultBeanBuilder<ENTITY> builder, PagingResultBean<ENTITY> rb)
protected boolean isCurrentLastPage(List<ENTITY> selectedList, PagingBean pagingBean)
selectedList - The selected list. (NotNull)pagingBean - The bean of paging. (NotNull)protected int deriveAllRecordCountByLastPage(List<ENTITY> selectedList, PagingBean pagingBean)
selectedList - The selected list. (NotNull)pagingBean - The bean of paging. (NotNull)protected boolean isNecessaryToReadPageAgain(PagingResultBean<ENTITY> rb)
rb - The result bean of paging. (NotNull)protected void checkSafetyResultIfNeeds(int safetyMaxResultSize,
int allRecordCount)
safetyMaxResultSize - The max size of safety result.allRecordCount - The count of all records.DangerousResultSizeException - When the count of all records is dangerous.protected boolean isUseManualThreadDataSource()
protected void throwPagingStatusInvalidException(PagingBean pagingBean)
protected void throwPagingOverSafetySizeException(int safetyMaxResultSize,
int allRecordCount)
protected String ln()
protected void assertObjectNotNull(String variableName, Object value)
variableName - The check name of variable for message. (NotNull)value - The checked value. (NotNull)IllegalArgumentException - When the argument is null.Copyright © 2014–2015 The DBFlute Project. All rights reserved.