@ConfigurationProperties(value="pageable")
public static class DataConfiguration.PageableConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PAGE_PARAMETER |
static java.lang.String |
DEFAULT_SIZE_PARAMETER |
static java.lang.String |
DEFAULT_SORT_PARAMETER |
static java.lang.String |
PREFIX |
Constructor and Description |
---|
PageableConfiguration() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxPageSize() |
java.lang.String |
getPageParameterName() |
java.lang.String |
getSizeParameterName() |
java.util.regex.Pattern |
getSortDelimiterPattern() |
java.lang.String |
getSortParameterName() |
boolean |
isSortIgnoreCase() |
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 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 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