Class ApiPagedResultFactory


  • public class ApiPagedResultFactory
    extends Object
    Factory for creating PagedResults for API queries.
    Since:
    8.2.0
    Author:
    XIMA MEDIA GmbH
    • 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 a pagedd 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 a QueryCriteriaManager.
        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.