Package org.codelibs.fess.app.pager
Class KeyMatchPager
java.lang.Object
org.codelibs.fess.app.pager.KeyMatchPager
- All Implemented Interfaces:
Serializable
Pager for KeyMatch.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe boost of the key match.The creator of the key match.The created time of the key match.static final intThe default current page number.static final intThe default page size.The ID of the key match.The max size of the key match.The query of the key match.The term of the key match.The version number of the key match. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the pager fields.intReturns the total number of pages.intReturns the total number of records.intReturns the current page number.protected intReturns the default current page number.protected intReturns the default page size.Returns the list of page numbers.intReturns the page size.booleanReturns true if a next page exists.booleanReturns true if a previous page exists.voidsetAllPageCount(int allPageCount) Sets the total number of pages.voidsetAllRecordCount(int allRecordCount) Sets the total number of records.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number.voidsetExistNextPage(boolean existNextPage) Sets whether a next page exists.voidsetExistPrePage(boolean existPrePage) Sets whether a previous page exists.voidsetPageNumberList(List<Integer> pageNumberList) Sets the list of page numbers.voidsetPageSize(int pageSize) Sets the page size.
-
Field Details
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZEThe default page size.- See Also:
-
DEFAULT_CURRENT_PAGE_NUMBER
public static final int DEFAULT_CURRENT_PAGE_NUMBERThe default current page number.- See Also:
-
id
The ID of the key match. -
term
The term of the key match. -
query
The query of the key match. -
maxSize
The max size of the key match. -
boost
The boost of the key match. -
createdBy
The creator of the key match. -
createdTime
The created time of the key match. -
versionNo
The version number of the key match.
-
-
Constructor Details
-
KeyMatchPager
public KeyMatchPager()Default constructor.
-
-
Method Details
-
clear
public void clear()Clears the pager fields. -
getDefaultCurrentPageNumber
protected int getDefaultCurrentPageNumber()Returns the default current page number.- Returns:
- The default current page number.
-
getAllRecordCount
public int getAllRecordCount()Returns the total number of records.- Returns:
- The total number of records.
-
setAllRecordCount
public void setAllRecordCount(int allRecordCount) Sets the total number of records.- Parameters:
allRecordCount- The total number of records.
-
getAllPageCount
public int getAllPageCount()Returns the total number of pages.- Returns:
- The total number of pages.
-
setAllPageCount
public void setAllPageCount(int allPageCount) Sets the total number of pages.- Parameters:
allPageCount- The total number of pages.
-
isExistPrePage
public boolean isExistPrePage()Returns true if a previous page exists.- Returns:
- True if a previous page exists.
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets whether a previous page exists.- Parameters:
existPrePage- True if a previous page exists.
-
isExistNextPage
public boolean isExistNextPage()Returns true if a next page exists.- Returns:
- True if a next page exists.
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets whether a next page exists.- Parameters:
existNextPage- True if a next page exists.
-
getPageSize
public int getPageSize()Returns the page size.- Returns:
- The page size.
-
setPageSize
public void setPageSize(int pageSize) Sets the page size.- Parameters:
pageSize- The page size.
-
getCurrentPageNumber
public int getCurrentPageNumber()Returns the current page number.- Returns:
- The current page number.
-
setCurrentPageNumber
public void setCurrentPageNumber(int currentPageNumber) Sets the current page number.- Parameters:
currentPageNumber- The current page number.
-
getPageNumberList
Returns the list of page numbers.- Returns:
- The list of page numbers.
-
setPageNumberList
Sets the list of page numbers.- Parameters:
pageNumberList- The list of page numbers.
-
getDefaultPageSize
protected int getDefaultPageSize()Returns the default page size.- Returns:
- The default page size.
-