* org.zanata.search.FilterConstraints)
*/
public List<HTextFlow> getTextFlowByDocumentIdWithConstraints(
DocumentId documentId, HLocale hLocale,
FilterConstraints constraints, int firstResult, int maxResult) {
FilterConstraintToQuery constraintToQuery =
FilterConstraintToQuery.filterInSingleDocument(constraints,
documentId);
String queryString = constraintToQuery.toEntityQuery();
log.debug("\n query {}\n", queryString);
Query textFlowQuery = getSession().createQuery(queryString);
constraintToQuery.setQueryParameters(textFlowQuery, hLocale);
textFlowQuery.setFirstResult(firstResult).setMaxResults(maxResult);
textFlowQuery.setCacheable(true).setComment(
"TextFlowDAO.getTextFlowByDocumentIdWithConstraint");
@SuppressWarnings("unchecked")