public class SearchPageable extends Object
Pageable
and several properties to
encapsulate findByTaskNameContains queries.Constructor and Description |
---|
SearchPageable(org.springframework.data.domain.Pageable pageable,
String searchQuery)
Initialize a
SearchPageable . |
Modifier and Type | Method and Description |
---|---|
void |
addColumns(String... columns)
Allows you to add additional columns.
|
LinkedHashSet<String> |
getColumns() |
org.springframework.data.domain.Pageable |
getPageable() |
String |
getSearchQuery() |
public SearchPageable(org.springframework.data.domain.Pageable pageable, String searchQuery)
SearchPageable
. Must provide a Pageable
and a
searchQuery. Don't forget to also provide the column names for the findByTaskNameContains using
addColumns(String...)
.pageable
- Must not be nullsearchQuery
- Must not be emptypublic org.springframework.data.domain.Pageable getPageable()
public String getSearchQuery()
public LinkedHashSet<String> getColumns()
public void addColumns(String... columns)
columns
- Must not be null or emptyCopyright © 2021 Pivotal Software, Inc.. All rights reserved.