public class SimplePagingBean extends Object implements PagingBean, MapParameterBean<Object>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
_fetchNarrowing
Is fetch narrowing valid?
|
protected boolean |
_paging
Is the execution for paging(NOT count)?
|
protected boolean |
_pagingCountLater
Is the count executed later?
|
protected boolean |
_pagingReSelect
Can the paging re-select?
|
protected Map<String,Object> |
_parameterMap
The map of parameter.
|
protected int |
_safetyMaxResultSize
The max size of safety result.
|
protected SqlClause |
_sqlClause
SQL clause instance.
|
| コンストラクタと説明 |
|---|
SimplePagingBean() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addParameter(String key,
Object value)
Add the parameter to the map.
|
boolean |
canPagingCountLater()
Can the paging execute count later?
|
boolean |
canPagingReSelect()
Can the paging re-select?
|
void |
checkSafetyResult(int safetyMaxResultSize)
Check whether the result size is safety or not.
|
OrderByBean |
clearOrderBy()
Clear order-by.
|
<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 |
getFetchNarrowingLoopCount()
Get fetch size.
|
int |
getFetchNarrowingSkipStartIndex()
Get fetch start index.
|
int |
getFetchPageNumber()
Get fetch page number.
|
int |
getFetchSize()
Get fetch size of paging, also called page size.
|
int |
getFetchStartIndex()
Get fetch start index.
|
String |
getOrderByClause()
Get order-by clause.
|
OrderByClause |
getOrderByComponent()
Get the component of order-by clause.
|
int |
getPageEndIndex()
Get page end index.
|
int |
getPageStartIndex()
Get page start index.
|
Map<String,Object> |
getParameterMap()
Get the map of parameter.
|
int |
getSafetyMaxResultSize()
Get the max size of safety result.
|
SqlClause |
getSqlClause()
Get SQL clause instance.
|
protected void |
initializeParameterMapIfNeeds() |
boolean |
isFetchNarrowingEffective()
Is fetch-narrowing effective?
|
boolean |
isFetchNarrowingLoopCountEffective()
Is fetch size supported?
|
boolean |
isFetchNarrowingSkipStartIndexEffective()
Is fetch start index supported?
|
boolean |
isFetchScopeEffective()
Is fetch scope effective?
|
boolean |
isPaging()
Is the execution for paging(NOT count)?
|
protected String |
ln() |
void |
paging(int pageSize,
int pageNumber)
Set up paging resources.
|
protected void |
throwPagingPageSizeNotPlusException(int pageSize,
int pageNumber) |
void |
xdisableFetchNarrowing()
Disable fetch narrowing.
|
void |
xenableIgnoredFetchNarrowing()
Enable ignored fetch narrowing.
|
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).
|
protected final SqlClause _sqlClause
protected int _safetyMaxResultSize
protected boolean _paging
protected boolean _pagingCountLater
protected boolean _pagingReSelect
protected boolean _fetchNarrowing
public boolean isPaging()
isPaging インタフェース内 PagingBeanpublic boolean canPagingCountLater()
canPagingCountLater インタフェース内 PagingBeanpublic boolean canPagingReSelect()
canPagingReSelect インタフェース内 PagingBeanpublic 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);
paging インタフェース内 PagingBeanpageSize - 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.)protected void throwPagingPageSizeNotPlusException(int pageSize,
int pageNumber)
public void xsetPaging(boolean paging)
xsetPaging インタフェース内 PagingBeanpaging - Determination.public void enablePagingCountLater()
enablePagingCountLater インタフェース内 PagingBeanpublic void disablePagingCountLater()
disablePagingCountLater インタフェース内 PagingBeanpublic void enablePagingReSelect()
enablePagingReSelect インタフェース内 PagingBeanpublic void disablePagingReSelect()
disablePagingReSelect インタフェース内 PagingBeanpublic PagingBean fetchFirst(int fetchSize)
fetchFirst インタフェース内 PagingBeanfetchSize - The size of fetch. (NotMinus, NotZero)public PagingBean xfetchScope(int fetchStartIndex, int fetchSize)
xfetchScope インタフェース内 PagingBeanfetchStartIndex - The start index of fetch. 0 origin. (NotMinus)fetchSize - The size of fetch. (NotMinus, NotZero)public PagingBean xfetchPage(int fetchPageNumber)
xfetchPage インタフェース内 PagingBeanfetchPageNumber - The page number of fetch. 1 origin. (NotMinus, NotZero: If minus or zero, set one.)public <ENTITY> PagingInvoker<ENTITY> createPagingInvoker(String tableDbName)
createPagingInvoker インタフェース内 PagingBeanENTITY - The type of entity.tableDbName - The DB name of table. (NotNull)public int getFetchStartIndex()
getFetchStartIndex インタフェース内 PagingBeanpublic int getFetchSize()
getFetchSize インタフェース内 PagingBeanpublic int getFetchPageNumber()
getFetchPageNumber インタフェース内 PagingBeanpublic int getPageStartIndex()
getPageStartIndex インタフェース内 PagingBeanpublic int getPageEndIndex()
getPageEndIndex インタフェース内 PagingBeanpublic boolean isFetchScopeEffective()
isFetchScopeEffective インタフェース内 PagingBeanpublic int getSafetyMaxResultSize()
getSafetyMaxResultSize インタフェース内 FetchBeanpublic int getFetchNarrowingSkipStartIndex()
getFetchNarrowingSkipStartIndex インタフェース内 FetchNarrowingBeanpublic int getFetchNarrowingLoopCount()
getFetchNarrowingLoopCount インタフェース内 FetchNarrowingBeanpublic boolean isFetchNarrowingSkipStartIndexEffective()
isFetchNarrowingSkipStartIndexEffective インタフェース内 FetchNarrowingBeanpublic boolean isFetchNarrowingLoopCountEffective()
isFetchNarrowingLoopCountEffective インタフェース内 FetchNarrowingBeanpublic boolean isFetchNarrowingEffective()
isFetchNarrowingEffective インタフェース内 FetchNarrowingBeanpublic void xdisableFetchNarrowing()
xdisableFetchNarrowing インタフェース内 FetchNarrowingBeanpublic void xenableIgnoredFetchNarrowing()
xenableIgnoredFetchNarrowing インタフェース内 FetchNarrowingBeanpublic String getOrderByClause()
getOrderByClause インタフェース内 OrderByBeanpublic OrderByClause getOrderByComponent()
getOrderByComponent インタフェース内 OrderByBeanpublic OrderByBean clearOrderBy()
clearOrderBy インタフェース内 OrderByBeanpublic void checkSafetyResult(int safetyMaxResultSize)
checkSafetyResult インタフェース内 FetchBeansafetyMaxResultSize - The max size of safety result. (if zero or minus, checking is invalid)public Map<String,Object> getParameterMap()
getParameterMap インタフェース内 MapParameterBean<Object>public void addParameter(String key, Object value)
key - The key of parameter. (NotNull)value - The value of parameter. (NullAllowed)protected void initializeParameterMapIfNeeds()
protected String ln()
public SqlClause getSqlClause()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.