Package org.codelibs.fess.app.pager
Class RelatedQueryPager
java.lang.Object
org.codelibs.fess.app.pager.RelatedQueryPager
- All Implemented Interfaces:
Serializable
Pager class for related query management functionality.
Provides pagination support for related query operations including
search, display, and navigation through related query results.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionUser who created the related query entry.Timestamp when the related query was created.static final intDefault current page number for pagination.Unique identifier for the related query.Related queries string containing associated search queries.Search term for the related query.Version number for optimistic locking. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all pager data and resets to default values.intGets the total number of pages available for pagination.intGets the total number of records in the result set.intGets the current page number being displayed.protected intGets the default current page number from system constants.protected intGets the default page size from system configuration.Gets the list of page numbers for pagination navigation.intGets the number of records to display per page.booleanChecks if a next page exists for pagination.booleanChecks if a previous page exists for pagination.voidsetAllPageCount(int allPageCount) Sets the total number of pages available for pagination.voidsetAllRecordCount(int allRecordCount) Sets the total number of records in the result set.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number being displayed.voidsetExistNextPage(boolean existNextPage) Sets the flag indicating whether a next page exists.voidsetExistPrePage(boolean existPrePage) Sets the flag indicating whether a previous page exists.voidsetPageNumberList(List<Integer> pageNumberList) Sets the list of page numbers for pagination navigation.voidsetPageSize(int pageSize) Sets the number of records to display per page.
-
Field Details
-
DEFAULT_CURRENT_PAGE_NUMBER
public static final int DEFAULT_CURRENT_PAGE_NUMBERDefault current page number for pagination.- See Also:
-
id
Unique identifier for the related query. -
term
Search term for the related query. -
queries
Related queries string containing associated search queries. -
createdBy
User who created the related query entry. -
createdTime
Timestamp when the related query was created. -
versionNo
Version number for optimistic locking.
-
-
Constructor Details
-
RelatedQueryPager
public RelatedQueryPager()Default constructor for RelatedQueryPager. Initializes a new instance with default values for pagination and related query fields.
-
-
Method Details
-
clear
public void clear()Clears all pager data and resets to default values. Resets pagination state and clears all related query fields. -
getAllRecordCount
public int getAllRecordCount()Gets the total number of records in the result set.- Returns:
- the total record count
-
setAllRecordCount
public void setAllRecordCount(int allRecordCount) Sets the total number of records in the result set.- Parameters:
allRecordCount- the total record count to set
-
getAllPageCount
public int getAllPageCount()Gets the total number of pages available for pagination.- Returns:
- the total page count
-
setAllPageCount
public void setAllPageCount(int allPageCount) Sets the total number of pages available for pagination.- Parameters:
allPageCount- the total page count to set
-
isExistPrePage
public boolean isExistPrePage()Checks if a previous page exists for pagination.- Returns:
- true if a previous page exists, false otherwise
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets the flag indicating whether a previous page exists.- Parameters:
existPrePage- true if a previous page exists, false otherwise
-
isExistNextPage
public boolean isExistNextPage()Checks if a next page exists for pagination.- Returns:
- true if a next page exists, false otherwise
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets the flag indicating whether a next page exists.- Parameters:
existNextPage- true if a next page exists, false otherwise
-
getPageSize
public int getPageSize()Gets the number of records to display per page. If not set or invalid, returns the default page size.- Returns:
- the page size
-
setPageSize
public void setPageSize(int pageSize) Sets the number of records to display per page.- Parameters:
pageSize- the page size to set
-
getCurrentPageNumber
public int getCurrentPageNumber()Gets the current page number being displayed. If not set or invalid, returns the default current page number.- Returns:
- the current page number
-
setCurrentPageNumber
public void setCurrentPageNumber(int currentPageNumber) Sets the current page number being displayed.- Parameters:
currentPageNumber- the current page number to set
-
getPageNumberList
Gets the list of page numbers for pagination navigation.- Returns:
- the list of page numbers
-
setPageNumberList
Sets the list of page numbers for pagination navigation.- Parameters:
pageNumberList- the list of page numbers to set
-
getDefaultCurrentPageNumber
protected int getDefaultCurrentPageNumber()Gets the default current page number from system constants.- Returns:
- the default current page number
-
getDefaultPageSize
protected int getDefaultPageSize()Gets the default page size from system configuration.- Returns:
- the default page size
-