Interface PaginatedSearchFunction<E>
-
- Type Parameters:
E
- the type of the to-be-retrieved record
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PaginatedSearchFunction<E>
Interface that represents a function that retrieves a range of records given filtering, sorting and ordering parameters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<E>
apply(java.lang.String query, java.lang.String orderByField, TableRequest.Order.Direction orderDirection, int start, int count)
Retrieves a list of a defined range of all records that match the given query, sorted by the given field and ordered in the given direction.
-
-
-
Method Detail
-
apply
java.util.List<E> apply(java.lang.String query, java.lang.String orderByField, TableRequest.Order.Direction orderDirection, int start, int count)
Retrieves a list of a defined range of all records that match the given query, sorted by the given field and ordered in the given direction.- Parameters:
query
- the query stringorderByField
- field used by orderingorderDirection
- ordering direction (ascending or descending)start
- index of first recordcount
- quantity of records to be retrieved- Returns:
- the list of retrieved records
-
-