Interface TableDataSource<T>
- Type Parameters:
T
-
public interface TableDataSource<T>
TableDataSource interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetEntries
(int first, int pageSize, String sortField, TableDataProvider.SortOrder sortOrder, Map<String, String> filters) getEntries.long
getTotalNumberOfRecords
(Map<String, String> filters) getTotalNumberOfRecords.void
resetTotalNumberOfRecords.
-
Method Details
-
getEntries
List<T> getEntries(int first, int pageSize, String sortField, TableDataProvider.SortOrder sortOrder, Map<String, String> filters) throws TableDataSourceExceptiongetEntries.
- Parameters:
first
- a int.pageSize
- a int.sortField
- aString
object.sortOrder
- aTableDataProvider.SortOrder
object.filters
- aMap
object.- Returns:
- a
List
object. - Throws:
TableDataSourceException
- if any.
-
getTotalNumberOfRecords
getTotalNumberOfRecords.
- Parameters:
filters
- aMap
object.- Returns:
- a long.
-
resetTotalNumberOfRecords
void resetTotalNumberOfRecords()resetTotalNumberOfRecords.
-