T
- The entity type.public static interface AbstractEntityManager.SearchResponse<T>
The response values for a search operation.
Modifier and Type | Method and Description |
---|---|
int |
getPage()
The page number for the search cursor.
|
int |
getPageSize()
The number of items for each page.
|
List<T> |
getResults()
The entities resulting from the search operation.
|
String |
getSearchPattern()
The search pattern string.
|
int |
getTotal()
The total entities count.
|
boolean |
hasNextPage()
Indicates if there are more results (next pages).
|
List<T> getResults()
The entities resulting from the search operation.
int getTotal()
The total entities count.
By convention, if the service provider implementation class is not able to get the row count, this method should return -1
.
Otherwise, returns search results count for this entity type.
boolean hasNextPage()
Indicates if there are more results (next pages).
If the service provider implementation class is not able to return a value for getTotal
, this method can be used to find out if there are more pages.
String getSearchPattern()
The search pattern string.
int getPage()
The page number for the search cursor.
IMPORTANT NOTE: Page number starts with value 1
.
int getPageSize()
The number of items for each page.
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.