@ConfigurationProperties(value="pageable")
public static class DataConfiguration.PageableConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_PAGE_SIZE |
static java.lang.String |
DEFAULT_PAGE_PARAMETER |
static java.lang.String |
DEFAULT_SIZE_PARAMETER |
static boolean |
DEFAULT_SORT_IGNORE_CASE |
static java.lang.String |
DEFAULT_SORT_PARAMETER |
static java.lang.String |
PREFIX |
Constructor and Description |
---|
PageableConfiguration() |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultPageSize() |
int |
getMaxPageSize() |
java.lang.String |
getPageParameterName() |
java.lang.String |
getSizeParameterName() |
java.util.regex.Pattern |
getSortDelimiterPattern() |
java.lang.String |
getSortParameterName() |
boolean |
isSortIgnoreCase() |
void |
setDefaultPageSize(int defaultPageSize)
Sets the default page size when binding
Pageable objects and no size
parameter is used. |
void |
setMaxPageSize(int maxPageSize)
Sets the maximum page size when binding
Pageable objects. |
void |
setPageParameterName(java.lang.String pageParameterName) |
void |
setSizeParameterName(java.lang.String sizeParameterName) |
void |
setSortDelimiter(java.lang.String sortDelimiter) |
void |
setSortIgnoreCase(boolean sortIgnoreCase) |
void |
setSortParameterName(java.lang.String sortParameterName) |
public static final int DEFAULT_MAX_PAGE_SIZE
public static final boolean DEFAULT_SORT_IGNORE_CASE
public static final java.lang.String DEFAULT_SORT_PARAMETER
public static final java.lang.String DEFAULT_SIZE_PARAMETER
public static final java.lang.String DEFAULT_PAGE_PARAMETER
public static final java.lang.String PREFIX
public boolean isSortIgnoreCase()
public void setSortIgnoreCase(boolean sortIgnoreCase)
sortIgnoreCase
- Whether sort ignores casepublic java.util.regex.Pattern getSortDelimiterPattern()
,
.public void setSortDelimiter(java.lang.String sortDelimiter)
sortDelimiter
- The delimiter to use to calculate sort order. Defaults to ,
.public int getMaxPageSize()
Pageable
objects.public void setMaxPageSize(int maxPageSize)
Pageable
objects.maxPageSize
- The max page sizepublic int getDefaultPageSize()
Pageable
objects and no size parameter is used. By default is set to the same vale as maxPageSize
public void setDefaultPageSize(int defaultPageSize)
Pageable
objects and no size
parameter is used. Should be smaller or equal than maxPageSize
.defaultPageSize
- The default page sizepublic java.lang.String getSortParameterName()
public void setSortParameterName(java.lang.String sortParameterName)
sortParameterName
- The default sort parameter namepublic java.lang.String getSizeParameterName()
public void setSizeParameterName(java.lang.String sizeParameterName)
sizeParameterName
- The default size parameter namepublic java.lang.String getPageParameterName()
public void setPageParameterName(java.lang.String pageParameterName)
pageParameterName
- Sets the default page parameter name