public interface PagingBean extends FetchNarrowingBean, OrderByBean
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canPagingCountLater()
Can the paging execute count later?
|
boolean |
canPagingReSelect()
Can the paging re-select?
|
<ENTITY> PagingInvoker<ENTITY> |
createPagingInvoker(String tableDbName)
Create the invoker of paging.
|
void |
disablePagingCountLater()
Disable paging count-later that means counting after selecting.
|
void |
disablePagingReSelect()
Disable paging re-select that is executed when the page number is over page count.
|
void |
enablePagingCountLater()
Enable paging count-later that means counting after selecting.
|
void |
enablePagingReSelect()
Enable paging re-select that is executed when the page number is over page count.
|
PagingBean |
fetchFirst(int fetchSize)
Fetch first records only.
|
int |
getFetchPageNumber()
Get fetch page number.
|
int |
getFetchSize()
Get fetch size of paging, also called page size.
|
int |
getFetchStartIndex()
Get fetch start index.
|
int |
getPageEndIndex()
Get page end index.
|
int |
getPageStartIndex()
Get page start index.
|
boolean |
isFetchScopeEffective()
Is fetch scope effective?
|
boolean |
isPaging()
Is the execution for paging(NOT count)?
|
void |
paging(int pageSize,
int pageNumber)
Set up paging resources.
|
PagingBean |
xfetchPage(int fetchPageNumber)
Fetch page.
|
PagingBean |
xfetchScope(int fetchStartIndex,
int fetchSize)
Fetch records in the scope only.
|
void |
xsetPaging(boolean paging)
Set whether the execution for paging(NOT count).
|
getFetchNarrowingLoopCount, getFetchNarrowingSkipStartIndex, isFetchNarrowingEffective, isFetchNarrowingLoopCountEffective, isFetchNarrowingSkipStartIndexEffective, xdisableFetchNarrowing, xenableIgnoredFetchNarrowingcheckSafetyResult, getSafetyMaxResultSizeclearOrderBy, getOrderByClause, getOrderByComponentboolean isPaging()
boolean canPagingCountLater()
boolean canPagingReSelect()
void paging(int pageSize,
int pageNumber)
e.g. ConditionBean
MemberCB cb = new MemberCB();
cb.query().setMemberName_PrefixSearch("S");
cb.query().addOrderBy_Birthdate_Desc();
cb.paging(20, 3); // 20 records per a page and current page number is 3
PagingResultBean<Member> page = memberBhv.selectPage(cb);
pageSize - The page size per one page. (NotMinus, NotZero)pageNumber - The number of page. It's ONE origin. (NotMinus, NotZero: If it's minus or zero, it treats as one.)PagingPageSizeNotPlusException - When the page size for paging is minus or zero.void xsetPaging(boolean paging)
paging - Determination.void enablePagingCountLater()
void disablePagingCountLater()
void enablePagingReSelect()
void disablePagingReSelect()
PagingBean fetchFirst(int fetchSize)
fetchSize - The size of fetch. (NotMinus, NotZero)PagingBean xfetchScope(int fetchStartIndex, int fetchSize)
fetchStartIndex - The start index of fetch. 0 origin. (NotMinus)fetchSize - The size of fetch. (NotMinus, NotZero)PagingBean xfetchPage(int fetchPageNumber)
fetchPageNumber - The page number of fetch. 1 origin. (NotMinus, NotZero: If minus or zero, set one.)<ENTITY> PagingInvoker<ENTITY> createPagingInvoker(String tableDbName)
ENTITY - The type of entity.tableDbName - The DB name of table. (NotNull)int getFetchStartIndex()
int getFetchSize()
int getFetchPageNumber()
int getPageStartIndex()
int getPageEndIndex()
boolean isFetchScopeEffective()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.