|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hdpagination.web.jsf.PaginateDefinition
public class PaginateDefinition
This class defines configuration properties which are used in pagination search under JSF environment.
| Constructor Summary | |
|---|---|
PaginateDefinition()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAttributeName4Data()
The name of attribute which holds the search result in the specified scope. |
java.lang.String |
getDataScope()
The scope where the search result is to be stored. |
java.lang.String |
getForwardPath()
Outcome of action method execute in PaginateFacesAction. |
java.lang.Integer |
getPageSize()
How many records should be displayed in one page |
QueryTemplate |
getQueryTemplate()
The query execution engine. |
ResultHandler |
getResultHandler()
Return the handler to deal with the search result. |
boolean |
isCacheRecordsCount()
Flag to indicate whether the count of total records should be cached to improve performance. |
java.lang.String |
retrievePageKey()
Return the page key, which will be used as the attribute name to save an instance of Page
in session. |
void |
setAttributeName4Data(java.lang.String attributeName4Data)
Set the name of attribute which holds the search result in the specified scope. |
void |
setBeanName(java.lang.String name)
|
void |
setCacheRecordsCount(boolean cacheRecordsCount)
Flag to indicate whether the count of total records should be cached to improve performance. |
void |
setDataScope(java.lang.String dataScope)
Set the scope where the search result is to be stored. |
void |
setForwardPath(java.lang.String forwardPath)
Set outcome of action method execute in PaginateFacesAction. |
void |
setPageSize(java.lang.Integer pageSize)
Set page size which specifies how many records should be displayed in one page. |
void |
setQueryTemplate(QueryTemplate queryTemplate)
Set the query execution engine. |
void |
setResultHandler(ResultHandler searchResultHandler)
Set the handler to deal with the search result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PaginateDefinition()
| Method Detail |
|---|
public java.lang.String retrievePageKey()
Page
in session. Related Pagination Tags rely on this instance to retrieve corresponding pagination information
(such as "number of total records", "page number of current page").
This method is only for internal use by framework.
public java.lang.Integer getPageSize()
public void setPageSize(java.lang.Integer pageSize)
pageSize - public java.lang.String getForwardPath()
execute in PaginateFacesAction.
The outcome value eventually determines the JSF navigation flow. As specified by JSF, if the value (outcome) is not defined (null),
the same page is redisplayed, which covers the majority of cases where search input shares the same page with search result.
public void setForwardPath(java.lang.String forwardPath)
execute in PaginateFacesAction.
The outcome value eventually determines the JSF navigation flow. As specified by JSF, if the value (outcome) is not defined (null),
the same page is redisplayed, which covers the majority of cases where search input shares the same page with search result.
forwardPath - public QueryTemplate getQueryTemplate()
public void setQueryTemplate(QueryTemplate queryTemplate)
queryTemplate - public java.lang.String getDataScope()
public void setDataScope(java.lang.String dataScope)
dataScope - public java.lang.String getAttributeName4Data()
Globals.QUERY_RESULT_KEY
public void setAttributeName4Data(java.lang.String attributeName4Data)
Globals.QUERY_RESULT_KEY
attributeName4Data - public void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic ResultHandler getResultHandler()
public void setResultHandler(ResultHandler searchResultHandler)
searchResultHandler - public boolean isCacheRecordsCount()
public void setCacheRecordsCount(boolean cacheRecordsCount)
cacheRecordsCount -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||