public final class ResultSetManager extends ExtensionManager
| Modifier and Type | Method and Description |
|---|---|
static <T extends ResultSetItem> |
createResultSet(ResultSetProvider<T> resultSetProvider,
ResultSetManagement resultSetManagement)
Creates a result set from a result set provider and a result set management.
|
isEnabled, setEnabledpublic static <T extends ResultSetItem> ResultSet<T> createResultSet(ResultSetProvider<T> resultSetProvider, ResultSetManagement resultSetManagement)
If the result set management asks for a limited result set (e.g. starting at a specific index and a maximum size), this method takes care, that the result set provider returns the appropriate results.
The returned result set contains the limited result set as well as a result set management, which contains the total item count and which can be used by the requester to navigate through the results, e.g. by asking for the previous or next page.
T - The type of the result set.resultSetProvider - The result set provider.resultSetManagement - The result set management.Copyright © 2014–2015 XMPP.rocks. All rights reserved.