Package de.xima.fc.dao.utils
Class DaoPagedResultFactory
- java.lang.Object
 - 
- de.xima.fc.dao.utils.DaoPagedResultFactory
 
 
- 
public class DaoPagedResultFactory extends Object
Factory for creatingPagedResults forDAO 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(IEntityContext ec, IGenericDao<TEntity> dao, TQuery query)Gets apagedd resultfor 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(IEntityContext ec, IGenericDao<TEntity> dao, TQuery query)
Gets apagedd resultfor the given query- Type Parameters:
 TEntity- type of the entities to get as part of the paged result.TQuery- type of the query. Usually this is aQueryCriteriaManager.- Parameters:
 ec- entity context for database transactions.dao- to use for resolving the query.query- to resolve as a paged result.- Returns:
 - the paged result for the given query.
 
 
 - 
 
 -