Package de.xima.fc.api.utils
Class ApiPagedResultFactory
- java.lang.Object
-
- de.xima.fc.api.utils.ApiPagedResultFactory
-
public class ApiPagedResultFactory extends Object
Factory for creatingPagedResult
s forAPI queries
.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <TEntity extends ITransferableEntity,TQuery extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager>
PagedResult<TEntity>forQuery(UserContext uc, AEntityAPI<TEntity> api, TQuery query)
Gets apagedd result
for the given query
-
-
-
Method Detail
-
forQuery
public static <TEntity extends ITransferableEntity,TQuery extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager> PagedResult<TEntity> forQuery(UserContext uc, AEntityAPI<TEntity> api, TQuery query)
Gets apagedd result
for the given query- Type Parameters:
TEntity
- type of object to get a paged result for.TQuery
- type of the query. Usually this is aQueryCriteriaManager
.- Parameters:
uc
- user context for database transactions.api
- to use for resolving the query.query
- to resolve as a paged result.- Returns:
- the paged result for the given query.
-
-