T - The return type included by the PageList.C - The Criteria subclass used to generate/execute the query.public class CriteriaQuery<T,C extends org.rhq.core.domain.criteria.BaseCriteria> extends Object implements Iterable<T>
| Modifier and Type | Class and Description |
|---|---|
protected class |
CriteriaQuery.QueryResultsIterator |
| Constructor and Description |
|---|
CriteriaQuery(C criteria,
CriteriaQueryExecutor<T,C> queryExecutor)
It is important that the
criteria includes sorting. |
public CriteriaQuery(C criteria, CriteriaQueryExecutor<T,C> queryExecutor)
criteria includes sorting. If not then paging is nonsensical as the DB
provides no guarantee of ordering. If no sort is specified, an implicit sort on ID is added.criteria - The criteria applied to each execution of the fetch. If no sort is specified, an implicit sort on
ID is added.queryExecutor - Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.